Repositories related to Airthings devices.

New git repository added

a month ago

987849c JSON output

a month ago


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.


  • PHP APCU extension (php-pecl-apcu)
  • PHP cURL extension (php-curl)
  • PHP JSON extension (php-json)


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