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

WeatherDuino AQM II
#3

Hello, Thank you very much, now it works!

I saw an JSON file with all data in local IP adress.

I created a simply PHP file to test data in my server, but I saw only empty data, this is the script:
<?php
//www.mywebsite.com/dust/SQL.php?privatekey=YOURKEY&PM25=99&PM100=98.7&AQI=97&CO2=96
$pm25 = $_GET["PM25"];
$pm100 = $_GET["PM100"];
$aqi = $_GET["AQI"];
$co2 = $_GET["CO2"];
$key = $_GET["privatekey"];
$id = $_GET["DevID"];

//print $pm100."|".$pm25."|".$aqi."|".$co2;
$scrivifile=$pm100."|".$pm25."|".$aqi."|".$co2;
    $filenameserver='dati.txt';
$file =  fopen($filenameserver, "w");
 fwrite($file, $scrivifile);
 fclose($file);
?>

if I want to change read interval of the sensor, have I to change these rows?
for example:
1) const byte readInterval  = 5;
2) if (!first4readings) divider = 12;
3) if (readCount_1H == 12)
Are there others?

Thank you.
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: 1 Guest(s)