{"id":668,"date":"2015-03-13T12:44:47","date_gmt":"2015-03-13T10:44:47","guid":{"rendered":"http:\/\/dety.net.ua\/?p=668"},"modified":"2015-03-13T12:44:47","modified_gmt":"2015-03-13T10:44:47","slug":"netatmo-get-your-values","status":"publish","type":"post","link":"https:\/\/dety.net.ua\/?p=668","title":{"rendered":"Netatmo + get your values"},"content":{"rendered":"<p>You have to visit: <a href=\"https:\/\/dev.netatmo.com\/doc\/sdk\/php\" target=\"_blank\">https:\/\/dev.netatmo.com\/doc\/sdk\/php <\/a>, create a new application and get id and tooken from it.<\/p>\n<p>Then download PHP-SDK and unpack it.<\/p>\n<p>Edit config.php &#8211; add id, token, user and password for your account on Netatmo site.<\/p>\n<p>You can try the example now:<\/p>\n<blockquote><p>php CLI_ClientCredential_Example.php<\/p><\/blockquote>\n<p>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):<\/p>\n<blockquote><p>print_r($mesures[0][&#8216;modules&#8217;][0][&#8216;CO2&#8217;]);<br \/>\necho (&#8221; &#8220;);<br \/>\nprint_r($mesures[0][&#8216;modules&#8217;][0][&#8216;Noise&#8217;]);<br \/>\necho (&#8221; &#8220;);<br \/>\nprint_r($mesures[0][&#8216;modules&#8217;][0][&#8216;Temperature&#8217;]);<br \/>\necho (&#8221; &#8220;);<br \/>\nprint_r($mesures[0][&#8216;modules&#8217;][0][&#8216;Humidity&#8217;]);<br \/>\necho (&#8221; &#8220;);<br \/>\nprint_r($mesures[0][&#8216;modules&#8217;][1][&#8216;Temperature&#8217;]);<br \/>\necho (&#8221; &#8220;);<br \/>\nprint_r($mesures[0][&#8216;modules&#8217;][1][&#8216;Humidity&#8217;]);<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8211; 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,13],"tags":[],"class_list":["post-668","post","type-post","status-publish","format-standard","hentry","category-gadgets","category-novosti"],"_links":{"self":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=668"}],"version-history":[{"count":1,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/668\/revisions"}],"predecessor-version":[{"id":669,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/668\/revisions\/669"}],"wp:attachment":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}