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

WeatherDuino AQM II
#18

(19-02-2020, 03:36)Werk_AG Wrote:  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:
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 your

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:
Code:
http://YOUR WEB SERVER ADDRESS/AirQuality_Log.php?privatekey=test&DevID=MyAQMII&PM25=10&PM100=20&AQI=30&CO2=40

In 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.

Hi,  good afternoon to all, 

I tried the sample script by typing the code    "http://MY WEB SERVER ADDRESS/AirQuality_Log.php?privatekey=test&DevID=MyAQMII&PM25=10&PM100=20&AQI=30&CO2=40" in my browser and it works. In my server I find the txt file as described above. The issue is that updating the AMQ scretch with the same data,  the AirQuality_log.txt did not receive any upgrate. It is my first time with the PHP files.  What I wrong? Thank you.

I forgot to say that I have ENABLE_AQM_TO_MYSERVER to 1, wifi to 1 and RF TX to 1
Reply


Messages In This Thread
WeatherDuino AQM II - by Stefano90 - 14-02-2020, 16:02
RE: WeatherDuino AQM - by werk_ag - 14-02-2020, 19:20
RE: WeatherDuino AQM - by Stefano90 - 17-02-2020, 10:43
RE: WeatherDuino AQM - by werk_ag - 17-02-2020, 20:10
RE: WeatherDuino AQM - by Stefano90 - 18-02-2020, 09:50
RE: WeatherDuino AQM - by werk_ag - 18-02-2020, 23:45
RE: WeatherDuino AQM II - by Stefano90 - 18-02-2020, 11:19
RE: WeatherDuino AQM II - by engolling - 18-02-2020, 23:07
RE: WeatherDuino AQM II - by werk_ag - 19-02-2020, 00:09
RE: WeatherDuino AQM II - by engolling - 19-02-2020, 08:42
RE: WeatherDuino AQM II - by werk_ag - 19-02-2020, 03:36
RE: WeatherDuino AQM II - by bombenm - 26-04-2020, 13:26
RE: WeatherDuino AQM II - by werk_ag - 26-04-2020, 17:48
RE: WeatherDuino AQM II - by bombenm - 27-04-2020, 10:13
RE: WeatherDuino AQM II - by Stefano90 - 19-02-2020, 14:20
RE: WeatherDuino AQM II - by werk_ag - 19-02-2020, 22:46
RE: WeatherDuino AQM II - by Stefano90 - 17-03-2020, 18:53
RE: WeatherDuino AQM II - by werk_ag - 18-03-2020, 02:54
RE: WeatherDuino AQM II - by Stefano90 - 24-04-2020, 23:15
RE: WeatherDuino AQM II - by werk_ag - 25-04-2020, 05:51



Users browsing this thread: 2 Guest(s)