{"id":18551040,"url":"https://github.com/bartekl1/rpi-thermometer","last_synced_at":"2026-01-03T09:42:15.510Z","repository":{"id":218569569,"uuid":"746779216","full_name":"bartekl1/rpi-thermometer","owner":"bartekl1","description":":thermometer: Raspberry Pi Thermometer","archived":false,"fork":false,"pushed_at":"2024-05-18T17:11:05.000Z","size":122,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T12:32:40.503Z","etag":null,"topics":["dht11","ds18b20","humidity","humidity-logger","humidity-monitoring","humidity-sensor","iot","raspberry-pi","raspberry-pi-projects","raspberry-pi-temperature","raspberry-pi-thermometer","raspberrypi","smart-home","smarthome","temperature","temperature-logger","temperature-monitoring","temperature-sensor","thermometer"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bartekl1.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-01-22T16:54:49.000Z","updated_at":"2024-10-16T11:48:59.000Z","dependencies_parsed_at":"2024-04-20T13:55:25.032Z","dependency_job_id":"1d3ea1f3-5fbe-41aa-833e-f5498ce2a40d","html_url":"https://github.com/bartekl1/rpi-thermometer","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"40e1ac7e175a7a80e7151903ee0766e3ac17f20d"},"previous_names":["bartekl1/rpi-thermometer"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartekl1%2Frpi-thermometer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartekl1%2Frpi-thermometer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartekl1%2Frpi-thermometer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartekl1%2Frpi-thermometer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bartekl1","download_url":"https://codeload.github.com/bartekl1/rpi-thermometer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244166677,"owners_count":20409178,"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":["dht11","ds18b20","humidity","humidity-logger","humidity-monitoring","humidity-sensor","iot","raspberry-pi","raspberry-pi-projects","raspberry-pi-temperature","raspberry-pi-thermometer","raspberrypi","smart-home","smarthome","temperature","temperature-logger","temperature-monitoring","temperature-sensor","thermometer"],"created_at":"2024-11-06T21:07:16.888Z","updated_at":"2026-01-03T09:42:15.476Z","avatar_url":"https://github.com/bartekl1.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌡 Raspberry Pi Thermometer\n\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/bartekl1/rpi-thermometer?style=flat-square)\n![GitHub Repo stars](https://img.shields.io/github/stars/bartekl1/rpi-thermometer?style=flat-square)\n![GitHub watchers](https://img.shields.io/github/watchers/bartekl1/rpi-thermometer?style=flat-square)\n![GitHub forks](https://img.shields.io/github/forks/bartekl1/rpi-thermometer?style=flat-square)\n\n[🕑 Changelog](CHANGELOG.md)\n[🎁 Acknowledgements](ACKNOWLEDGEMENTS.md)\n[🇵🇱 Polish version of README](README_PL.md)\n\n## ℹ️ About\n\n### Available sensors\n\n- DS18B20 (temperature)\n- DHT11 (humidity)\n\n### Available functions\n\n- Measure current temperature and humidity\n- Save temperature and humidity to database\n- Simple website with current readings\n\n## 👨‍💻 Installation\n\n1. Connect the DS18B20 and DHT11 sensors to the Raspberry Pi.\n2. Clone repository\n\n    ```bash\n    git clone https://github.com/bartekl1/rpi-thermometer\n    cd rpi-thermometer\n    ```\n\n3. Create database and import structure from `thermometer.sql` file.\n\n4. Create configuration file named `configs.json` with the following content.\n\n    ```json\n    {\n        \"host\": \"0.0.0.0\",\n        \"mysql_user\": \"\u003cmysql_user\u003e\",\n        \"mysql_password\": \"\u003cmysql_password\u003e\",\n        \"mysql_database\": \"\u003cmysql_database\u003e\"\n    }\n    ```\n\n    Replace `\u003cmysql_user\u003e`, `\u003cmysql_password\u003e` and `\u003cmysql_database\u003e` with correct credentials.\n\n5. Install PIP dependencies.\n\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n6. Create `/etc/systemd/system/thermometer.service` file with the following content.\n\n    ```ini\n    [Unit]\n    Description=Thermometer\n    After=network.target\n\n    [Service]\n    WorkingDirectory=\u003cPATH\u003e\n    ExecStart=/usr/bin/python3 \u003cPATH\u003e/app.py\n    Restart=always\n    User=\u003cUSERNAME\u003e\n\n    [Install]\n    WantedBy=multi-user.target\n    ```\n\n    Replace `\u003cPATH\u003e` with path to the cloned repository and `\u003cUSERNAME\u003e` with your system username.\n\n7. Start and enable created service.\n\n    ```bash\n    sudo systemctl start thermometer\n    sudo systemctl enable thermometer\n    ```\n\n8. Add following line to crontab (edit using `crontab -e`).\n\n    ```text\n    */10 * * * * cd \"\u003cPATH\u003e\" \u0026\u0026 python3 save_to_database.py\n    ```\n\n    Replace `\u003cPATH\u003e` with path to the cloned repository. You can edit cron expression to change frequency.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbartekl1%2Frpi-thermometer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbartekl1%2Frpi-thermometer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbartekl1%2Frpi-thermometer/lists"}