19-02-2020, 03:36
Hello again Stefano,
Regarding the PHP script, I wrote a small version to help you.
- Upload it to the root of your webserver
- In Credentials (AQMII software) use:
Reprogram you AQMII device and wait until the AQMII sends data to your web server, which happens at each 15 minutes.
You can also test the script by typing this in your browser:
In the AirQuality_Log.txt file you should get something like this:
I tested the script, so I know it is working.
Regarding the PHP script, I wrote a small version to help you.
- Upload it to the root of your webserver
- In Credentials (AQMII software) use:
Code:
// --------------------------------------------------------------------------------------
// My Server Credentials
// --------------------------------------------------------------------------------------
const char* My_Server = "YOUR WEB SERVER ADDRESS"; // Put here your server address (Example: www.myserver.com)
const char* Path_To_LogToSQL_PHPfile = "/AirQuality_Log.php"; // Name and path to AirQuality_Log.php file on My Server
#define MYSERVER_KEY "test" // Your private key for uploading AQM data to yourReprogram you AQMII device and wait until the AQMII sends data to your web server, which happens at each 15 minutes.
You can also test the script by typing this in your browser:
Code:
http://YOUR WEB SERVER ADDRESS/AirQuality_Log.php?privatekey=test&DevID=MyAQMII&PM25=10&PM100=20&AQI=30&CO2=40In the AirQuality_Log.txt file you should get something like this:
Code:
[2020-02-19 02:22:54];MyAQMII;10;20;30;40;I tested the script, so I know it is working.

