{"id":28858167,"url":"https://github.com/ryangst/sensors-queue","last_synced_at":"2026-05-07T17:40:17.137Z","repository":{"id":295512766,"uuid":"990299569","full_name":"RyanGst/sensors-queue","owner":"RyanGst","description":"PoC: DHT11, Raspberry PI 4 and rabbitmq","archived":false,"fork":false,"pushed_at":"2025-06-01T20:41:04.000Z","size":71,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-20T02:05:24.966Z","etag":null,"topics":["deno","iot","rabbitmq","raspberrypi","system-design"],"latest_commit_sha":null,"homepage":"","language":"Python","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/RyanGst.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-05-25T22:36:21.000Z","updated_at":"2025-06-02T13:38:43.000Z","dependencies_parsed_at":"2025-05-26T00:36:08.622Z","dependency_job_id":null,"html_url":"https://github.com/RyanGst/sensors-queue","commit_stats":null,"previous_names":["ryangst/sensors-queue"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RyanGst/sensors-queue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanGst%2Fsensors-queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanGst%2Fsensors-queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanGst%2Fsensors-queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanGst%2Fsensors-queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RyanGst","download_url":"https://codeload.github.com/RyanGst/sensors-queue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanGst%2Fsensors-queue/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260862913,"owners_count":23074182,"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":["deno","iot","rabbitmq","raspberrypi","system-design"],"created_at":"2025-06-20T02:05:26.272Z","updated_at":"2026-05-07T17:40:17.128Z","avatar_url":"https://github.com/RyanGst.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DHT11, Python, RabbitMQ and Deno Example\n\nThis project demonstrates a simple system for publishing and consuming sensor data (simulated temperature and humidity) using RabbitMQ as a message broker.\n\n## Demo in 🇧🇷\n\n[![DHT11 Python RabbitMQ and Deno Demo](https://img.youtube.com/vi/HlxMgqI8xFM/1.jpg)](https://www.youtube.com/watch?v=HlxMgqI8xFM)\n\nIt consists of two main components:\n\n1.  **Python Publisher (`src/app.py`):**\n    *   Simulates reading data from a sensor (e.g., a DHT11).\n    *   Publishes these readings as JSON messages to a RabbitMQ queue named `sensor_data`.\n    *   Configured to connect to a RabbitMQ instance, potentially running locally via Docker (`compose.yaml`) or a remote instance.\n\n2.  **Deno Consumer (`consumer/main.ts`):**\n    *   Connects to the same RabbitMQ instance.\n    *   Subscribes to the `sensor_data` queue.\n    *   Receives and processes the JSON messages published by the Python application. This can be extended for various purposes like logging, alerting, or data analysis.\n\n![Diagram](.github/out.png)\n\n## Technology Stack\n\n*   **Python:** For the data publishing application.\n    *   `pika`: RabbitMQ client library.\n*   **Deno:** For the data consuming application.\n    *   `amqplib`: RabbitMQ client library.\n*   **RabbitMQ:** Message broker for decoupling the publisher and consumer.\n    *   Can be run locally using the provided `compose.yaml` or connected to a remote instance.\n*   **Docker:** Used for containerizing RabbitMQ and potentially for deploying the consumer application.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryangst%2Fsensors-queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryangst%2Fsensors-queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryangst%2Fsensors-queue/lists"}