Announcement

Collapse
No announcement yet.

Change retrieved data in yr.no to norwegian

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Change retrieved data in yr.no to norwegian

    First off, thanks for a great plugin!

    I use it to retrieve weather data from yr.no
    I am norwegian, and so I would like to retrieve the norwegian language data instead of the english one. This is not possible, since the prefix in front of the location inputbox is hardcoded.
    Right now, it is hardcoded to "http://www.yr.no/place/" + [inputbox]
    I need to replace the "/place/" with "/sted/" to get the norwegian data.

    Could you perhaps enable this possibillity in the interface? Either that we manually insert "/place/" or "/sted/" as a part of the text in the inputbox, alternatively a drag/drop menu in front of the inputbox where we select it?
    Or even if you have some other way I can get around the problem, it would be nice!

    Sincerely regard
    Trym / Sqvirrel

    #2
    I want this too!

    Comment


      #3
      I can add this pretty easy. You will have to edit an ini file to modify the word place. I will try to work on it this weekend.
      --
      Jeff Farmer
      HS 3, HSPhone
      My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
      Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

      Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

      Comment


        #4
        Now that I looked at the code, you can override the word place already.
        Look in the HomeSeer HS3/config/weatherXML/ directory for a file named weatherInfo.ini.
        Open the file to edit it.
        Look for a section titled [yrnoCommon]
        If there isn't one then at the bottom of the file add this:
        [yrnoCommon]
        yrnoStartURL=http://www.yr.no/sted/



        This will override the coded in http://www.yr.no/place/

        --
        Jeff Farmer
        HS 3, HSPhone
        My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
        Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

        Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

        Comment


          #5
          Hi CFGuy,

          Thank you very much for your swift response!! And adding the yrnoCommon section seems to work perfectly!

          Comment

          Working...
          X