{"id":25120424,"url":"https://github.com/mathcale/rpi-smart-thermometer","last_synced_at":"2026-04-12T00:40:34.485Z","repository":{"id":39670988,"uuid":"494678519","full_name":"mathcale/rpi-smart-thermometer","owner":"mathcale","description":"Smart thermometer that pushes readings from a DHT22 sensor plugged on an Raspberry Pi Zero via MQTT to a Nest.js server","archived":false,"fork":false,"pushed_at":"2023-11-19T19:12:39.000Z","size":2825,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T22:01:05.395Z","etag":null,"topics":["dht22","iot","mqtt","nestjs","nodejs","postgresql","raspberry-pi","smart-home"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/mathcale.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}},"created_at":"2022-05-21T04:21:49.000Z","updated_at":"2023-07-18T09:12:53.000Z","dependencies_parsed_at":"2023-10-12T14:21:09.438Z","dependency_job_id":null,"html_url":"https://github.com/mathcale/rpi-smart-thermometer","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/mathcale%2Frpi-smart-thermometer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathcale%2Frpi-smart-thermometer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathcale%2Frpi-smart-thermometer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathcale%2Frpi-smart-thermometer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathcale","download_url":"https://codeload.github.com/mathcale/rpi-smart-thermometer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246834217,"owners_count":20841500,"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":["dht22","iot","mqtt","nestjs","nodejs","postgresql","raspberry-pi","smart-home"],"created_at":"2025-02-08T05:29:24.253Z","updated_at":"2026-04-12T00:40:34.450Z","avatar_url":"https://github.com/mathcale.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- markdownlint-disable MD033 MD041 --\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/icon.png\" width=\"120\"\u003e\n  \u003ch1 align=\"center\"\u003eRPi Smart Thermometer\u003c/h1\u003e\n  \u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/mathcale/rpi-iot-thermometer/actions/workflows/tests.yml/badge.svg?branch=main\" alt=\"GH Actions badge\"\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n## Architecture\n\n![Architecture diagram](docs/rpi-smart-thermometer-architecture.drawio.png)\n\nEvery 30 minutes, a Node.js script reads the current temperature and humidity from the DHT22 sensor plugged to a Raspberry Pi Zero W via GPIO and then publishes this data via MQTT to the Mosquitto server.\n\nOn the server stack, a Nest.js microsservice listens to a specific topic on the Mosquitto server and, when there's a new message, it gets parsed, validated and stored on a PostgreSQL database. This stack is deployed with Docker Compose to my local Raspberry Pi 4 home server.\n\nThere's also a button that, when pressed, will fetch the latest reading from the Nest.js API and show it on the OLED display. After 20s, the display will turn off to avoid burn-in.\n\n## Schematics\n\n![Hardware schematics](docs/rpi-smart-thermometer-schematics.png)\n\n## Tech\n\n### Hardware\n\n- Raspberry Pi Zero W\n- DHT22 sensor\n- OLED display\n- Push button\n- 1K resistor\n\n### Software\n\n- Node.js 16\n- Typescript\n- Nest.js\n- Next.js\n- Docker\n- PostgreSQL\n- Mosquitto\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathcale%2Frpi-smart-thermometer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathcale%2Frpi-smart-thermometer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathcale%2Frpi-smart-thermometer/lists"}