Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

"Palmy Weather" Goes live with Air Quality Monitor
#11

(26-06-2019, 00:05)Werk_AG Wrote:  Hi Andy,

Cumulus will not upload the AQM data, since the Davis protocol doesn't have any fields for this kind of data.
Display the AQM data on web weather pages involves some extra procedures. I'm not sure, but I think they are described somewhere on the forum.

First step is enabling sending the AQM data to your server:

// --------------------------------------------------------------------------------------
// Air Quality Monitor - Upload and insert data in a SQL table at your own server ----
// Be sure you have already created the database and table. See AirQuality_LogToSQL.php script for info
// --------------------------------------------------------------------------------------
#define ENABLE_AQM_TO_MYSERVER 0 // 1= Enable, 0= Disable

and install on your server the php script that is included in the software package. This script will insert the AQM data on a DB (you should first create it) and also creates an AirQuality_Log.txt file which contain the latest AQM data. Then is just a matter of retrieving the latest data from the db or from the text file.

Thanks, found the info I needed here..

https://www.meteocercal.info/forum/Threa...gToSQL.php
Reply




Users browsing this thread: 1 Guest(s)