Hi All,
Questions about Netatmo VD and PHP script.
I have regular set of Netatmo sensors (indoor and outdoor). And when I install VD ver. 2.01 it works out of a box giving me results of indoor measurments, other are as false.
If I try VD of 2.3 version all measurments are false. No clue why.
I tried to check PHP script in browser and for parameters:
- /netatmo/netatmo.php?parameter=ext result is {"body":[],"status":"ok","time_exec":0.030246019363403,"time_server":1451833793}
- /netatmo/netatmo.php?parameter=int result is {"body":[{"beg_time":1451831637,"value":[[19.8,882,47,1020.4,45]]}],"status":"ok","time_exec":0.033217191696167,"time_server":1451832195}
Above would explain why version 2.01 gives me only indoor measurment.
Jsonviewer proves that all netatmo measurments are downloaded correctly. Thus, the problem is downloading values just to Fibaro.
Part of PHP script:
if ($parameter == "int") {
$url_mesures_internes = ""https://api.netatmo.net/api/getmeasure?access_token=" . $params['access_token'] . "&device_id=" . $module_interne . "&module_id=" . $module_externe . "&scale=max&type=Temperature,Humidity&date_end=last";
$mesures_externes = file_get_contents($url_mesures_externes);
echo $mesures_externes ;
}
"ext" parameters includes also "$module_interne ", is it correct?