THX to Rick164 who is helping me out getting the local Data from your Netatmo Device with building a App
The idea is to fill the data to the local weather condition file from WorldWeatherPlugin to get your own values to MP.
https://github.com/RickDB/NetAtmo.Net/tree/master/NetAtmo.NET
Attached an basic first version that tests the authentication part, according to the docs:
https://dev.netatmo.com/doc/authentication/usercred
it requires 4 authentication strings mainly ID / secret / username / password which is pretty strict as you would only expect the need for the ID/secret in most other APIs, you can test it out and see if you can get an valid result (400 means invalid auth).
The idea is to fill the data to the local weather condition file from WorldWeatherPlugin to get your own values to MP.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<data>
<provider>
<name>WorldWeather</name>
<version>1.0</version>
</provider>
<location>
<city>Munich</city>
<country>Germany</country>
<region>Bavaria</region>
<postalcode>80331</postalcode>
<longitude>11.58</longitude>
<latitude>48.15</latitude>
<altitude>500</altitude>
<unit>SI</unit>
</location>
<current>
<date>2013-01-01</date>
<temperature>16</temperature>
<temperatureFeelsLike>15</temperatureFeelsLike>
<weatherCode>26</weatherCode>
<weatherDescription>Partly Cloudy</weatherDescription>
<windSpeed>7</windSpeed>
<windDirectionDegree>280</windDirectionDegree>
<precipitation>0.0</precipitation>
<pressure>1026</pressure>
<barometricPressure>2</barometricPressure>
<humidity>68</humidity>
<visibility>0</visibility>
<cloudCoverage>10</cloudCoverage>
<uvIndex>1</uvIndex>
</current>
<forecast>
<forecastday>
<date>2013-01-02</date>
<temperatureLow>8</temperatureLow>
<temperatureHigh>20</temperatureHigh>
<weatherCode>25</weatherCode>
<weatherDescription>Mostly Cloudy</weatherDescription>
<windSpeed>7</windSpeed>
<precipitation>2.0</precipitation>
<pressure>1028</pressure>
<humidity>68</humidity>
<cloudCoverage>10</cloudCoverage>
</forecastday>
</forecast>
</data>
https://github.com/RickDB/NetAtmo.Net/tree/master/NetAtmo.NET
Attachments
Last edited: