Retrieve Weather Data from Netatmo for WorldWeather Plugin xml | Page 3

Discussion in 'MediaPortal 1 Plugins' started by pur_berger, December 28, 2014.

  1. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Think so :) , in the Mediaportal Programdata folder I have the following file:

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

    With contents:

    Code (XML):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <profile>
    3.   <section name="WorldWeatherProfile0">
    4.     <entry name="City"></entry>
    5.     <entry name="CityCode"></entry>
    6.     <entry name="Country"></entry>
    7.     <entry name="TemperatureUnit">0</entry>
    8.     <entry name="WindUnit">0</entry>
    9.     <entry name="PressureUnit">0</entry>
    10.     <entry name="DistanceUnit">0</entry>
    11.     <entry name="UnitRound">yes</entry>
    12.     <entry name="Timezone"></entry>
    13.     <entry name="TimezoneLongitude"></entry>
    14.     <entry name="TimezoneLatitude"></entry>
    15.     <entry name="ClockEnabled">no</entry>
    16.     <entry name="TimezoneDaylightSavingCurrentYear">no</entry>
    17.     <entry name="ChartEnabled">no</entry>
    18.     <entry name="HourForecastEnabled">no</entry>
    19.     <entry name="HistoryEnabled">no</entry>
    20.     <entry name="WeatherImageEnabled">no</entry>
    21.     <entry name="WeatherImage0Enabled">yes</entry>
    22.     <entry name="WeatherImage0Type">0</entry>
    23.     <entry name="WeatherImage1Enabled">no</entry>
    24.     <entry name="WeatherImage1Type">1</entry>
    25.     <entry name="WeatherImage2Enabled">no</entry>
    26.     <entry name="WeatherImage2Type">2</entry>
    27.     <entry name="WeatherImage3Enabled">no</entry>
    28.     <entry name="WeatherImage3Type">3</entry>
    29.     <entry name="WeatherImage4Enabled">no</entry>
    30.     <entry name="WeatherImage4Type">4</entry>
    31.     <entry name="WeatherImage5Enabled">no</entry>
    32.     <entry name="WeatherImage5Type">5</entry>
    33.     <entry name="WeatherImage6Enabled">no</entry>
    34.     <entry name="WeatherImage6Type">6</entry>
    35.     <entry name="WeatherImage7Enabled">no</entry>
    36.     <entry name="WeatherImage7Type">7</entry>
    37.     <entry name="WeatherImage8Enabled">no</entry>
    38.     <entry name="WeatherImage8Type">8</entry>
    39.     <entry name="WeatherImage9Enabled">no</entry>
    40.     <entry name="WeatherImage9Type">9</entry>
    41.     <entry name="WeatherImage10Enabled">no</entry>
    42.     <entry name="WeatherImage10Type">10</entry>
    43.     <entry name="WeatherImage11Enabled">no</entry>
    44.     <entry name="WeatherImage11Type">10</entry>
    45.     <entry name="WeatherImage12Enabled">no</entry>
    46.     <entry name="WeatherImage12Type">10</entry>
    47.     <entry name="WeatherImage13Enabled">no</entry>
    48.     <entry name="WeatherImage13Type">10</entry>
    49.     <entry name="WeatherImage14Enabled">no</entry>
    50.     <entry name="WeatherImage14Type">10</entry>
    51.     <entry name="GeoClockEnabled">no</entry>
    52.     <entry name="GeoClockLocationDisplayEnabled">no</entry>
    53.     <entry name="GeoClockLocationDisplayType">0</entry>
    54.     <entry name="GeoClockTextSize">1</entry>
    55.     <entry name="GeoClockResolution">0</entry>
    56.     <entry name="AstronomyEnabled">no</entry>
    57.     <entry name="AstronomyZodiacEnabled">no</entry>
    58.     <entry name="AstronomyZodiacResolution">0</entry>
    59.     <entry name="AstronomyPictureOfDayEnabled">no</entry>
    60.     <entry name="AstronomyPictureOfDayDate">0</entry>
    61.     <entry name="AstronomyStarrySkyEnabled">no</entry>
    62.     <entry name="CalendarEnabled">no</entry>
    63.     <entry name="CalendarSelfDefined0Day">1</entry>
    64.     <entry name="CalendarSelfDefined0Month">1</entry>
    65.     <entry name="CalendarSelfDefined1Day">1</entry>
    66.     <entry name="CalendarSelfDefined1Month">1</entry>
    67.     <entry name="CalendarSelfDefined2Day">1</entry>
    68.     <entry name="CalendarSelfDefined2Month">1</entry>
    69.     <entry name="CalendarSelfDefined3Day">1</entry>
    70.     <entry name="CalendarSelfDefined3Month">1</entry>
    71.     <entry name="CalendarSelfDefined4Day">1</entry>
    72.     <entry name="CalendarSelfDefined4Month">1</entry>
    73.     <entry name="MapType">0</entry>
    74.     <entry name="MapContent">0</entry>
    75.     <entry name="MapZoom">10</entry>
    76.     <entry name="MapExtraCameraEnabled">no</entry>
    77.     <entry name="FeedEnabled">no</entry>
    78.     <entry name="Feed0Count">10</entry>
    79.     <entry name="Feed0SeparatorType">0</entry>
    80.     <entry name="Feed1Count">10</entry>
    81.     <entry name="Feed1SeparatorType">0</entry>
    82.     <entry name="Feed2Count">10</entry>
    83.     <entry name="Feed2SeparatorType">0</entry>
    84.   </section>
    85. </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?
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. pur_berger
    • Super User

    pur_berger Super User

    Joined:
    May 14, 2007
    Messages:
    1,679
    Likes Received:
    183
    Gender:
    Male
    Location:
    Vienna
    Ratings:
    +270 / 1
    Home Country:
    Austria Austria
    Show System Specs
    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”
    .
     
  4. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
  5. pur_berger
    • Super User

    pur_berger Super User

    Joined:
    May 14, 2007
    Messages:
    1,679
    Likes Received:
    183
    Gender:
    Male
    Location:
    Vienna
    Ratings:
    +270 / 1
    Home Country:
    Austria Austria
    Show System Specs
  6. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    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.
     

    Attached Files:

    Last edited: December 29, 2014
  7. pur_berger
    • Super User

    pur_berger Super User

    Joined:
    May 14, 2007
    Messages:
    1,679
    Likes Received:
    183
    Gender:
    Male
    Location:
    Vienna
    Ratings:
    +270 / 1
    Home Country:
    Austria Austria
    Show System Specs
    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

    ?
     
  8. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    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.
     
  9. pur_berger
    • Super User

    pur_berger Super User

    Joined:
    May 14, 2007
    Messages:
    1,679
    Likes Received:
    183
    Gender:
    Male
    Location:
    Vienna
    Ratings:
    +270 / 1
    Home Country:
    Austria Austria
    Show System Specs
    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: December 29, 2014
  10. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
  11. pur_berger
    • Super User

    pur_berger Super User

    Joined:
    May 14, 2007
    Messages:
    1,679
    Likes Received:
    183
    Gender:
    Male
    Location:
    Vienna
    Ratings:
    +270 / 1
    Home Country:
    Austria Austria
    Show System Specs
    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.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!