{"id":21046608,"url":"https://github.com/talaxy009/rpi-thermometer","last_synced_at":"2026-04-13T18:32:49.841Z","repository":{"id":148278282,"uuid":"298029234","full_name":"Talaxy009/rpi-thermometer","owner":"Talaxy009","description":"树莓派温湿度监控系统","archived":false,"fork":false,"pushed_at":"2020-10-14T11:44:13.000Z","size":4105,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-28T06:18:52.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Talaxy009.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-09-23T16:26:39.000Z","updated_at":"2025-06-05T02:32:30.000Z","dependencies_parsed_at":"2023-04-21T00:07:13.143Z","dependency_job_id":null,"html_url":"https://github.com/Talaxy009/rpi-thermometer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Talaxy009/rpi-thermometer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talaxy009%2Frpi-thermometer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talaxy009%2Frpi-thermometer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talaxy009%2Frpi-thermometer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talaxy009%2Frpi-thermometer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Talaxy009","download_url":"https://codeload.github.com/Talaxy009/rpi-thermometer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talaxy009%2Frpi-thermometer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31766473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: 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":[],"created_at":"2024-11-19T14:31:04.231Z","updated_at":"2026-04-13T18:32:49.824Z","avatar_url":"https://github.com/Talaxy009.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 介绍\n\n这是一个树莓派实时监测温湿度的项目，可通过 LED 显示屏和网页显示实时的温湿度记录\n\n注意：本项目仍在完善中\n\n## 硬件依赖\n\n树莓派 4B | DHT11 传感器 | SH1106 显示器 | 触控传感器\n\n## 软件依赖\n\n- [luma.oled](https://github.com/rm-hull/luma.oled)\n\n- [Adafruit_Python_DHT](https://github.com/adafruit/Adafruit_Python_DHT)\n\n- [Pillow](https://github.com/python-pillow/Pillow)\n\n- [bottle](https://github.com/bottlepy/bottle)\n\n## 连接(以下接口均为 board 编号)\n\nDHT11 DATA 接 Pin 7\n\nsh1106 SCK 接 Pin 5, SDA 接 Pin 3\n\n触控传感器 SIG 接 Pin 16\n\n其余 VCC VDD GND 自行连接即可\n\n## 使用方法\n\n- 安装上述软件依赖并连接好硬件和树莓派\n\n- 克隆本仓库并 `cd ./rpi-thermometer/web`\n\n- 执行 `sudo python3 ./index.py` 启动硬件并开始自动记录数据\n\n- 执行 `sudo python3 ./web.py` 启动网页\n\n（如果一切顺利则效果应该如下“功能介绍”所示）\n\n## 功能介绍\n\n### 硬件\n\n![硬件](./images/01.jpg)\n\n启动 `index.py` 后系统会自动与授时中心同步时间，同步结束后则开始测量和记录数据\n\n默认且正常情况下每 10 秒测量一次温湿度并记录到 `data.json` 中，每 5 分钟记录一次数据到 `hour.json` 中，每 1 小时记录一次数据到  `halfDay.json` 中\n\n系统每秒会检测触碰传感器的输入信号，在输入信号为低电平时显示器进入待机状态，当输入信号为高电平时显示器会显示实时时间和最近一次的测量结果\n\n### 网页\n\n![网页](./images/02.png)\n\n网页脚本每 5 秒会读取一次 `data.json` 获取最近一次的测量结果并显示出来\n\n利用 [Chart.js](https://github.com/chartjs/Chart.js) 将记录的数据绘制成图表记录，在右上角可选择数据的范围\n\n## TODO\n\n- Debug\n\n- 扩大数据记录范围，优化图表显示逻辑\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalaxy009%2Frpi-thermometer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalaxy009%2Frpi-thermometer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalaxy009%2Frpi-thermometer/lists"}