No description
- Python 94.2%
- Dockerfile 5.8%
|
|
||
|---|---|---|
| .forgejo | ||
| .env.example | ||
| .gitignore | ||
| docker-compose.yml | ||
| Dockerfile | ||
| download.py | ||
| main.py | ||
| Pipfile | ||
| Pipfile.lock | ||
| pyproject.toml | ||
| README.md | ||
Feinstaubalarm
Small HTTP service that receives sensor.community-style PM2.5 readings and sends Telegram alerts with a graph when the current value is above 2× the recent average.
Configuration
Copy the example environment file and fill in your Telegram credentials:
cp .env.example .env
Required variables:
TELEGRAM_BOT_TOKEN- Telegram bot token from BotFatherTELEGRAM_CHAT_ID- chat or group ID for alerts
Run with Docker Compose
docker compose pull
docker compose up -d
The service listens on port 8080.
Endpoints:
POST /- submit sensor JSON containingsensordatavalueswithSDS_P2GET /alarm- send a manual Telegram graph/check
State is stored in ./data via the compose volume mount.