Rexxer

Some tips for me and other

Netatmo + get your values

You have to visit: https://dev.netatmo.com/doc/sdk/php , create a new application and get id and tooken from it.

Then download PHP-SDK and unpack it.

Edit config.php – add id, token, user and password for your account on Netatmo site.

You can try the example now:

php CLI_ClientCredential_Example.php

I edited this file to obtain just a string with only a string of values from my sensors (commented output and added in the end of file):

print_r($mesures[0][‘modules’][0][‘CO2’]);
echo (” “);
print_r($mesures[0][‘modules’][0][‘Noise’]);
echo (” “);
print_r($mesures[0][‘modules’][0][‘Temperature’]);
echo (” “);
print_r($mesures[0][‘modules’][0][‘Humidity’]);
echo (” “);
print_r($mesures[0][‘modules’][1][‘Temperature’]);
echo (” “);
print_r($mesures[0][‘modules’][1][‘Humidity’]);

 

Comments are currently closed.