https://github.com/astef/co2bot
Telegram bot (russian) which notifies about air quality metrics (CO2 & temperature)
https://github.com/astef/co2bot
Last synced: about 1 month ago
JSON representation
Telegram bot (russian) which notifies about air quality metrics (CO2 & temperature)
- Host: GitHub
- URL: https://github.com/astef/co2bot
- Owner: astef
- License: unlicense
- Created: 2017-03-23T13:43:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-24T08:53:40.000Z (over 9 years ago)
- Last Synced: 2025-12-12T23:39:39.929Z (7 months ago)
- Language: C#
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# co2bot
Telegram bot (russian) which notifies about air quality metrics (CO2 & temperature)
Integrated with CSV files from this device:
Sends notifications via GET request to URL.
## Options
*Option* | *Description*
--- | ---
Frequency | How othen should we check input file for new values
LongRepeatDelayMin | Cooldown between repeating alarm if problem still exists. Reset if params returns to normal range. Starts after all *ShortRepeatCount* exhausted.
ShortRepeatCount | Repeat alarm
Co2DataPath | Path to zg program output dir
RedCo2 | Lower bound of critical CO2 range
YellowCo2 | Lower bound of warning CO2 range
RedTemp | Upper bound of normal temperature range in Celsuis
BlueTemp | Lower bound of normal temperature range in Celsuis
HttpUrl | HTTP URL where GET request should be send. Should be set with parameters: ```http://example.org?text="```. Useful text will be appended to the end of URL to form a proper request.
MorningTime | End of silent mode time
EveningTime | Start of silent mode time
### Example
```javascript
{
"Frequency": 60000, // in ms
"LongRepeatDelayMin": 60, // in minutes
"ShortRepeatCount": 3,
"Co2DataPath": "", // path to ZG View
"SendToConsole": false, // send to console, not HTTP (for debug)
"RedCo2": 1200,
"YellowCo2": 800,
"RedTemp": 24,
"BlueTemp": 22,
"HttpUrl": "",
"MorningTime": "07:00", // working period
"EveningTime": "23:00"
}
```