{"id":29117383,"url":"https://github.com/leonardomottadev/tms-iot","last_synced_at":"2026-04-12T07:37:15.804Z","repository":{"id":299534523,"uuid":"1003332814","full_name":"leonardomottadev/tms-iot","owner":"leonardomottadev","description":"Temperature Monitoring System (IoT)","archived":false,"fork":false,"pushed_at":"2025-08-16T22:10:32.000Z","size":412,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-12T07:36:53.969Z","etag":null,"topics":["iot","mqtt","spring-boot"],"latest_commit_sha":null,"homepage":"","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/leonardomottadev.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-17T01:52:16.000Z","updated_at":"2025-08-16T22:10:35.000Z","dependencies_parsed_at":"2025-08-17T00:09:41.887Z","dependency_job_id":null,"html_url":"https://github.com/leonardomottadev/tms-iot","commit_stats":null,"previous_names":["leonardomottadev/tms-iot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leonardomottadev/tms-iot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardomottadev%2Ftms-iot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardomottadev%2Ftms-iot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardomottadev%2Ftms-iot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardomottadev%2Ftms-iot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leonardomottadev","download_url":"https://codeload.github.com/leonardomottadev/tms-iot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardomottadev%2Ftms-iot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31707953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T06:22:27.080Z","status":"ssl_error","status_checked_at":"2026-04-12T06:21:52.710Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["iot","mqtt","spring-boot"],"created_at":"2025-06-29T12:00:50.752Z","updated_at":"2026-04-12T07:37:15.795Z","avatar_url":"https://github.com/leonardomottadev.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tms-iot\n\n### **TMS-IOT – Temperature Monitoring System using IoT Architecture**\n\nThe **TMS-IOT** system is designed to monitor temperature data using an end-to-end IoT pipeline. Here's how the system works:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Assets/app_diagram.jpg\" width=\"500\" /\u003e\n\u003c/p\u003e\n\n1. **Arduino with Temperature Sensor**\n   A temperature sensor connected to an Arduino collects real-time environmental data. The Arduino transmits this data via a **serial connection** to a local application.\n\n2. **Console Application (.NET C#)**\n   A C# console application reads the serial data from the Arduino. It processes and forwards the readings to an **MQTT Broker** using a public topic.\n\n3. **MQTT Broker**\n   The MQTT Broker acts as a lightweight messaging intermediary. It publishes the temperature data, making it available to any subscribed services.\n\n4. **Spring Application (Java)**\n   A Spring Boot application subscribes to the MQTT topic, receives the temperature data, and processes it in real-time. Only user registration information is persistently stored in a PostgreSQL database. The application also exposes RESTful endpoints for accessing both user and sensor-related data.\n\n5. **PostgreSQL Database**\n   This relational database stores only user registration information, such as names, emails, and credentials. It is used for authentication, authorization, and user profile management.\n\n6. **Web Dashboard (Angular)**\n   The Angular frontend consumes data from the Spring Application via HTTP requests. It displays the temperature information in a user-friendly interface with real-time updates and visual charts.\n## TMS Data Service - REST API Documentation\n### REST API Overview\n\n- **`POST /users`**: Register a new user (public)\n- **`POST /auth`**: Obtain JWT using Basic Auth (email \u0026 password)\n- **`GET /users/me`**: Get current user info (requires JWT)\n- **`PUT /users/{id}` / `DELETE /users/{id}`**: Update/delete user (JWT required)\n- **`GET /sensor`**: Retrieve the latest temperature/humidity data\n\nInclude the JWT in requests to protected endpoints:\n```\nAuthorization: Bearer \u003ctoken\u003e\n```\n\n### Swagger UI\n\nInteractive API documentation is available at:\n```\nhttp://localhost:9090/swagger-ui/index.html\n```\n\n## Build and Run\n\nTo build and run the full stack using Docker Compose:\n\n**Build:**\n```\ndocker compose build\n```\n\n**Run:**\n```\ndocker compose up -d\n```\nThis will start all required services in detached mode.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonardomottadev%2Ftms-iot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonardomottadev%2Ftms-iot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonardomottadev%2Ftms-iot/lists"}