{"id":13748569,"url":"https://github.com/pires/obd-server","last_synced_at":"2025-05-09T11:30:52.319Z","repository":{"id":13143328,"uuid":"15825681","full_name":"pires/obd-server","owner":"pires","description":"Webapp responsible for storing OBD (Android OBD Reader) readings.","archived":true,"fork":false,"pushed_at":"2015-08-03T08:48:08.000Z","size":225,"stargazers_count":69,"open_issues_count":1,"forks_count":53,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-11-15T23:30:30.477Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"bobthecow/git-flow-completion","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pires.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-11T16:20:59.000Z","updated_at":"2024-10-15T18:11:28.000Z","dependencies_parsed_at":"2022-09-14T03:01:58.495Z","dependency_job_id":null,"html_url":"https://github.com/pires/obd-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pires%2Fobd-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pires%2Fobd-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pires%2Fobd-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pires%2Fobd-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pires","download_url":"https://codeload.github.com/pires/obd-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253240350,"owners_count":21876593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T07:00:44.391Z","updated_at":"2025-05-09T11:30:52.048Z","avatar_url":"https://github.com/pires.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"# obd-server\n\nREST API for storing OBD-II readings from [Android OBD-II Reader](https://github.com/pires/android-obd-reader).\n\n**Attention**: the storage is ephemeral since it relies on an in-memory database.\nI've made this decision for the sake of deployment simplicity.\n\n## Pre-requisites\n\n1. JDK 8\n2. Maven 3.3.0 or newer\n\n## Build\n\n```\nmvn clean package\n```\n\n## Run\n\n```\nmvn spring-boot:run\n```\n\n## Test\n\n### Add records\n\n```\n$ ./tests/put_some_stuff.sh\nHTTP/1.1 200 OK\nServer: Apache-Coyote/1.1\nContent-Length: 0\nDate: Sun, 02 Aug 2015 21:07:12 GMT\n\nHTTP/1.1 200 OK\nServer: Apache-Coyote/1.1\nContent-Length: 0\nDate: Sun, 02 Aug 2015 21:07:12 GMT\n\nHTTP/1.1 200 OK\nServer: Apache-Coyote/1.1\nContent-Length: 0\nDate: Sun, 02 Aug 2015 21:07:12 GMT\n\nHTTP/1.1 200 OK\nServer: Apache-Coyote/1.1\nContent-Length: 0\nDate: Sun, 02 Aug 2015 21:07:12 GMT\n```\n\n### Read records for a certain VIN\n\nReading records is a paginated operation. Set `page` (_defaults to 0_) and `size` (_defaults to 100_) query parameters if you want to paginate.\n\n```\n./tests/read_testvin_json.sh\nHTTP/1.1 200 OK\nServer: Apache-Coyote/1.1\nContent-Type: application/json;charset=UTF-8\nTransfer-Encoding: chunked\nDate: Sun, 02 Aug 2015 21:14:14 GMT\n\n{\n  \"content\":[\n    {\n      \"id\":1,\n      \"version\":0,\n      \"latitude\":40.0,\n      \"longitude\":-8.1,\n      \"timestamp\":1234567890,\n      \"vin\":\"testvin\",\n      \"readings\":{\n        \"rpm\":\"3000\",\n        \"speed\":\"55\"\n      }\n    },\n    {\n      \"id\":2,\n      \"version\":0,\n      \"latitude\":40.1,\n      \"longitude\":-8.2,\n      \"timestamp\":1234568999,\n      \"vin\":\"testvin\",\n      \"readings\":{\n        \"rpm\":\"3200\",\n        \"speed\":\"65\"\n      }\n    },\n    {\n      \"id\":3,\n      \"version\":0,\n      \"latitude\":40.2,\n      \"longitude\":-8.3,\n      \"timestamp\":1234589999,\n      \"vin\":\"testvin\",\n      \"readings\":{\n        \"rpm\":\"4000\",\n        \"speed\":\"75\"\n      }\n    }\n  ],\n  \"last\":true,\n  \"totalPages\":1,\n  \"totalElements\":3,\n  \"size\":100,\n  \"number\":0,\n  \"sort\":null,\n  \"first\":true,\n  \"numberOfElements\":3\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpires%2Fobd-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpires%2Fobd-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpires%2Fobd-server/lists"}