AQ_luftdaten2_c_block.php

I would like to setup AQ_luftdaten2_c_block.php but I can’t seem to find any documentation. The Luftdaten data goes off-line often so I would like to get data from the sensor instead

That script is to be used by owners of Luftdaten sensors which used an old version of a Leuven-Luftdaten script.

Their luftdaten sensors uploaded the data to their own website-template server.
The website-template contained a receive script to save / process the upload.
They also wanted to use that uploaded data in PWS_Dashboard.

I will try to add some readme on how to use the “custom-upload” of your “luftdaten-sensor” data

Best regards,

Wim

How to se “Custom upload” of your “Luftdaten-sensor” data

  1. Check your sensor number in eaysweather settings.
  2. Login to your local Luftdaten-sensor and go to “Configuration”
  3. Select “Send data to custom API”
  4. Enter server name of website, in your case weatheryyc.ca
  5. Set path to /pwsWD/others/sensorluft.php?sensordata

If you have an older sensor the https support maybe “problematic”.
If so do not use https and use port 80
You have to adjust your .htaccess to allow http traffic

Otherwise use HTTPS and set port to 443.


Modify script pwsWD/others/sensorluft.php line 4

  • remove the # on the first position
  • and set the correct timezone to your area

The “sensorluft.php” script will receive the data and build a “file” with current and 24 hour values.
After a few uploads the AQ_luftdaten2_c_block block will show valid data.

Succes,
Wim

1 Like

Seems to work OK now :grinning_face:

Wim

thanks for your help with this.