Retrieve Weather Data from Netatmo for WorldWeather Plugin xml (1 Viewer)

Rick164

MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Think so :) , in the Mediaportal Programdata folder I have the following file:

    C:\ProgramData\Team MediaPortal\MediaPortal\WorldWeather.xml

    With contents:

    XML:
    <?xml version="1.0" encoding="utf-8"?>
    <profile>
      <section name="WorldWeatherProfile0">
        <entry name="City"></entry>
        <entry name="CityCode"></entry>
        <entry name="Country"></entry>
        <entry name="TemperatureUnit">0</entry>
        <entry name="WindUnit">0</entry>
        <entry name="PressureUnit">0</entry>
        <entry name="DistanceUnit">0</entry>
        <entry name="UnitRound">yes</entry>
        <entry name="Timezone"></entry>
        <entry name="TimezoneLongitude"></entry>
        <entry name="TimezoneLatitude"></entry>
        <entry name="ClockEnabled">no</entry>
        <entry name="TimezoneDaylightSavingCurrentYear">no</entry>
        <entry name="ChartEnabled">no</entry>
        <entry name="HourForecastEnabled">no</entry>
        <entry name="HistoryEnabled">no</entry>
        <entry name="WeatherImageEnabled">no</entry>
        <entry name="WeatherImage0Enabled">yes</entry>
        <entry name="WeatherImage0Type">0</entry>
        <entry name="WeatherImage1Enabled">no</entry>
        <entry name="WeatherImage1Type">1</entry>
        <entry name="WeatherImage2Enabled">no</entry>
        <entry name="WeatherImage2Type">2</entry>
        <entry name="WeatherImage3Enabled">no</entry>
        <entry name="WeatherImage3Type">3</entry>
        <entry name="WeatherImage4Enabled">no</entry>
        <entry name="WeatherImage4Type">4</entry>
        <entry name="WeatherImage5Enabled">no</entry>
        <entry name="WeatherImage5Type">5</entry>
        <entry name="WeatherImage6Enabled">no</entry>
        <entry name="WeatherImage6Type">6</entry>
        <entry name="WeatherImage7Enabled">no</entry>
        <entry name="WeatherImage7Type">7</entry>
        <entry name="WeatherImage8Enabled">no</entry>
        <entry name="WeatherImage8Type">8</entry>
        <entry name="WeatherImage9Enabled">no</entry>
        <entry name="WeatherImage9Type">9</entry>
        <entry name="WeatherImage10Enabled">no</entry>
        <entry name="WeatherImage10Type">10</entry>
        <entry name="WeatherImage11Enabled">no</entry>
        <entry name="WeatherImage11Type">10</entry>
        <entry name="WeatherImage12Enabled">no</entry>
        <entry name="WeatherImage12Type">10</entry>
        <entry name="WeatherImage13Enabled">no</entry>
        <entry name="WeatherImage13Type">10</entry>
        <entry name="WeatherImage14Enabled">no</entry>
        <entry name="WeatherImage14Type">10</entry>
        <entry name="GeoClockEnabled">no</entry>
        <entry name="GeoClockLocationDisplayEnabled">no</entry>
        <entry name="GeoClockLocationDisplayType">0</entry>
        <entry name="GeoClockTextSize">1</entry>
        <entry name="GeoClockResolution">0</entry>
        <entry name="AstronomyEnabled">no</entry>
        <entry name="AstronomyZodiacEnabled">no</entry>
        <entry name="AstronomyZodiacResolution">0</entry>
        <entry name="AstronomyPictureOfDayEnabled">no</entry>
        <entry name="AstronomyPictureOfDayDate">0</entry>
        <entry name="AstronomyStarrySkyEnabled">no</entry>
        <entry name="CalendarEnabled">no</entry>
        <entry name="CalendarSelfDefined0Day">1</entry>
        <entry name="CalendarSelfDefined0Month">1</entry>
        <entry name="CalendarSelfDefined1Day">1</entry>
        <entry name="CalendarSelfDefined1Month">1</entry>
        <entry name="CalendarSelfDefined2Day">1</entry>
        <entry name="CalendarSelfDefined2Month">1</entry>
        <entry name="CalendarSelfDefined3Day">1</entry>
        <entry name="CalendarSelfDefined3Month">1</entry>
        <entry name="CalendarSelfDefined4Day">1</entry>
        <entry name="CalendarSelfDefined4Month">1</entry>
        <entry name="MapType">0</entry>
        <entry name="MapContent">0</entry>
        <entry name="MapZoom">10</entry>
        <entry name="MapExtraCameraEnabled">no</entry>
        <entry name="FeedEnabled">no</entry>
        <entry name="Feed0Count">10</entry>
        <entry name="Feed0SeparatorType">0</entry>
        <entry name="Feed1Count">10</entry>
        <entry name="Feed1SeparatorType">0</entry>
        <entry name="Feed2Count">10</entry>
        <entry name="Feed2SeparatorType">0</entry>
      </section>
    </profile>

    However no idea how I could insert actual data in there since I can't find any sample or documentation for it, also it looks that is only an configuration file (profile mappings) and not so much a weather data file.
    Looked in this topic:

    https://forum.team-mediaportal.com/...-6-5-for-mediaportal-1-3-0-and-higher.102775/

    It mentions "additionally local XML files are supported" however can't find any explanation on how to use it, in its configuration windows (MePo) you can select local XML file as a source but not the location of the actual file anywhere else.
    So would need to know where to put the actual XML output before it can be used, maybe the developer of the plugin can put up some short doc explaining this local XML support?
     

    pur_berger

    Super User
  • Team MediaPortal
  • Super User
  • May 14, 2007
    1,679
    309
    51
    Vienna
    Home Country
    Austria Austria
    Ja - that's correct - but to use teh local condition it states:

    Local weather condition file
    As an additional feature, WorldWeather is able to load and display local weather condition files. To use this, the appropriate file must be saved in the MediaPortal configuration directory and must have the name “WorldWeatherData.xml”
    .
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Ah right, do they have a sample file for that as the format from the first post is slightly different (no profiles etc..)?
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Used chapter 13.1 as the example and attached new version that exports the XML formatted exactly like that, all the required fields get filled (city/temp etc..) but it still reports an error in the WorldWeather plugin when loading just unsure why as it should work this way according to the pdf.

    /edit: best to re-run "Get Device ID" manually as the long/lat was reversed in one of the previous versions.
     

    Attachments

    • NetAtmoNET 016.zip
      312.5 KB
    • NetAtmoNET 017.zip
      312.5 KB
    Last edited:

    pur_berger

    Super User
  • Team MediaPortal
  • Super User
  • May 14, 2007
    1,679
    309
    51
    Vienna
    Home Country
    Austria Austria
    Can't test it wit MP - machine still dead :(.

    What I see is that it states in Filelocation
    C:\ProgramData\Team MediaPortal\MediaPortal\WorldWeather.xml

    where it should be C:\ProgramData\Team MediaPortal\MediaPortal\WorldWeatherData.xml

    ?
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Getting the same error if I save under that filename :( , might be that the plugin needs more data in the XML but this all the location data the NetAtmo API can supply.
     

    pur_berger

    Super User
  • Team MediaPortal
  • Super User
  • May 14, 2007
    1,679
    309
    51
    Vienna
    Home Country
    Austria Austria
    What I wonder - do you have a copletet output what values you get from teh devices. I've seen in a google chache for examle one called "feel_like" but on the page itself no refference ...

    Also - the question is what syntax is required - in teh sample it reads "Germany" but we would get DE. The date reads 2013-01-01 but we write it 01.01.2013
     
    Last edited:

    pur_berger

    Super User
  • Team MediaPortal
  • Super User
  • May 14, 2007
    1,679
    309
    51
    Vienna
    Home Country
    Austria Austria
    As there is a already working solution for this the tool development is on hold. To get your netatmo data in your Worldweather you first need to find your station on Weather Underground (Netatmo has a cooperation with Weather Underground) - I did it via the map. When you have it you take your station ID and fill it to the WorldWeather Setup (station id). Note that you also need an Weather Underground Key (you can get this for free on their website) to retrieve the station Data.
     

    Users who are viewing this thread

    Top Bottom