{"id":29407188,"url":"https://github.com/alokkusingh/iot-telemetry-service","last_synced_at":"2025-07-11T00:41:12.129Z","repository":{"id":299166879,"uuid":"1002223537","full_name":"alokkusingh/iot-telemetry-service","owner":"alokkusingh","description":"Home Telemetry Service","archived":false,"fork":false,"pushed_at":"2025-06-24T15:25:00.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-24T15:35:57.048Z","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":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alokkusingh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-15T01:42:49.000Z","updated_at":"2025-06-24T15:25:04.000Z","dependencies_parsed_at":"2025-06-15T04:33:29.185Z","dependency_job_id":"36cfaa4f-3fff-4154-8d47-d65d3873eff1","html_url":"https://github.com/alokkusingh/iot-telemetry-service","commit_stats":null,"previous_names":["alokkusingh/iot-telemetry-service"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alokkusingh/iot-telemetry-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokkusingh%2Fiot-telemetry-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokkusingh%2Fiot-telemetry-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokkusingh%2Fiot-telemetry-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokkusingh%2Fiot-telemetry-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alokkusingh","download_url":"https://codeload.github.com/alokkusingh/iot-telemetry-service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokkusingh%2Fiot-telemetry-service/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264697569,"owners_count":23650955,"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":"2025-07-11T00:41:11.355Z","updated_at":"2025-07-11T00:41:12.106Z","avatar_url":"https://github.com/alokkusingh.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Home Telemetry Service\n\nHome Stack Telemetry Service, which is a microservice that collects data from various sensors by listening MQTT Topics and processes it and transmits command to a sensor by publishing to a MQTT Topic.\n## MQTT Topics\n### Subscription Topics\n- `home/alok/status/\u003c\u003cdeviceId\u003e\u003e`\n- `home/alok/telemetry/temperature/\u003c\u003cdeviceId\u003e\u003e`\n- `home/alok/telemetry/humidity/\u003c\u003cdeviceId\u003e\u003e`\n## MQTT Payloads\n### Temperature Payload\n```json\n{\n  \"deviceId\": \"esp32-general-purpose-1\", \n   \"epochTime\": 1696156800,\n  \"temperature\": 25.5,\n  \"unit\": \"Celsius\"\n}\n```\n### Humidity Payload\n```json\n{\n  \"deviceId\": \"esp32-general-purpose-1\",\n   \"epochTime\": 1696156800,\n  \"humidity\": 60,\n  \"unit\": \"%\"\n}\n```\n### Device Status Payload\n#### Online Status\n```json\n{\n  \"deviceId\": \"esp32-general-purpose-1\",\n  \"status\": \"online\",\n   \"epochTime\": 1696156800,\n  \"ipAddress\": \"192.168.1.6\"\n}\n```\n#### Offline Status\n```json\n{\n  \"deviceId\": \"esp32-general-purpose-1\",\n  \"status\": \"offline\",\n   \"epochTime\": 1696156800\n}\n```\n### Command Payload\n```json\n{\n  \"deviceId\": \"esp32-general-purpose-1\",\n  \"command\": \"turn_on_fan\"\n}\n```\n### Publish Topics\n- `home/alok/command/\u003c\u003cdeviceId\u003e\u003e`\n\n1. Maven Package\n   ```shell\n   mvn clean package -DskipTests\n   ```\n2. Docker Build, Push \u0026 Run\n   ```shell\n   docker build -t alokkusingh/iot-telemetry-service:latest -t alokkusingh/iot-telemetry-service:1.0.0 --build-arg JAR_FILE=target/iot-telemetry-service-1.0.0.jar .\n   ```\n   ```shell\n   docker push alokkusingh/iot-telemetry-service:latest\n   ```\n   ```shell\n   docker push alokkusingh/iot-telemetry-service:1.0.0\n   ```\n   ```shell\n   docker run -p 8081:8081 --rm --name iot-telemetry-service alokkusingh/iot-telemetry-service\n   ```\n### Manual commands - go inside and run binary manually\n```shell\ndocker run -it --entrypoint /bin/bash -p 8081:8081 --rm --name iot-telemetry-service alokkusingh/iot-telemetry-service\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falokkusingh%2Fiot-telemetry-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falokkusingh%2Fiot-telemetry-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falokkusingh%2Fiot-telemetry-service/lists"}