https://github.com/zhoucheng133/sht-api
SHT temperature & humidity API and data storage for Raspberry Pi (NOT Pico)
https://github.com/zhoucheng133/sht-api
fastapi raspberry-pi sht3x sqlite
Last synced: 9 months ago
JSON representation
SHT temperature & humidity API and data storage for Raspberry Pi (NOT Pico)
- Host: GitHub
- URL: https://github.com/zhoucheng133/sht-api
- Owner: Zhoucheng133
- License: mit
- Created: 2025-08-17T14:33:46.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-10-08T11:40:52.000Z (9 months ago)
- Last Synced: 2025-10-08T13:31:34.670Z (9 months ago)
- Topics: fastapi, raspberry-pi, sht3x, sqlite
- Language: Python
- Homepage:
- Size: 1.72 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SHT API
针对树莓派(开发板)的SHT温度/湿度API和数据存储
SHT temperature & humidity API and data storage for Raspberry Pi (NOT Pico)
## API

获取当前温度和湿度数据
Get current temperature and humidity

?`year`&`month`&`day`
获取指定日期的所有温湿度数据
Get all temperature and humidity data for a specified date

获取最高气温的数据
Get the highest temperature data

获取最低气温的数据
Get the lowest temperature data

?`year`&`month`&`day`
获取指定日期高气温的数据
Get the highest temperature data for a specified date

?`year`&`month`&`day`
获取指定日期低气温的数据
Get the lowest temperature data for a specified date
## 响应 | Response
```json
{
"timestamp": "2025-01-01 00:00:00",
"temperature": 10,
"humidity": 60
}
```
## 前端示例 FrontEnd Example
