6ab003c Log influx data to local file when POST'ing fails.
~chimo pushed to ~chimo/waveplus-reader git
Simple PHP script to GET samples from the Airthings API for a specific device.
It currently has a single endpoint, which expects a "Secrets" HTTP header:
wget -q -O- --header 'Secret: xxx' https://example.org
An Alpine Linux APKBUILD is available for it at ~chimo/apkbuilds/airthings.
See the "config.dist.php" file in the "private" folder for configuration options. Rename or copy it as "config.php" and replace the contents with your values.
{
"time": 1711489008,
"battery": 72,
"co2": 541,
"humidity": 32,
"pressure": 1004.2,
"radonShortTermAvg": 16,
"relayDeviceType": "app",
"temp": 19.1,
"voc": 170
}