python3 setup.py install
Requirements:
- python 3.5+
- tornado 5+
lw301_server
Default config loaded from /etc/lw301-server/config.conf
.
Config path may be overridden by environment value LW301_SERVER_CONFIG
.
Available options:
lw301_server --help
CLI options overrided config options.
Enable by --enable-influxdb
option. See --help
for all options.
Trigger send recieved values to influxdb.
Values send as soon as they recieved from the weather station.
Written data:
Measurement | Tags | Fields |
---|---|---|
temperature | mac, channel | celsius (float) |
humidity | mac, channel | relative (int) |
pressure | mac | mmhg (int), hpa (int) |
TODO
Summary:
- overwrite DNS for some domains
- proxy :80 to this app
TODO: instructions & sample configs.
Domains resolved by LW301:
static.oregonscientific.com
– some init routinesgateway.weather.oregonscientific.com
- sending datablackbox-c.infra.idtcsd.net
- ?
Note: history data lost if app stopped.
{
"history": [
{
"timestamp": 1532271317,
"utc_datetime": "2018-07-22 17:55:17",
"value": {
"celsius": 22.1,
"channel": 1,
"mac": "00001234abcd"
}
},
// ...
],
"measurement": "temperature"
}
{
"history": [
{
"timestamp": 1532271317,
"utc_datetime": "2018-07-22 17:55:17",
"value": {
"channel": 1,
"mac": "00001234abcd",
"relative": 79
}
},
// ...
],
"measurement": "humidity"
}
{
"history": [
{
"timestamp": 1532271186,
"utc_datetime": "2018-07-22 17:53:06",
"value": {
"hPa": 982,
"mac": "00001234abcd",
"mmHg": 736
}
},
// ...
],
"measurement": "pressure"
}
Apache License 2.0