Announcement

Collapse
No announcement yet.

3 days left of free Weather Underground

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

  • 3 days left of free Weather Underground

    Given the impending stop to free forecasts from WU, I got myself an API key from World Weather Online ("WWO") (free premium for 60 days). So I switched the WeatherXML PI's setting to WWO and entered my new key and location but I'm getting an error back:

    downloadFile: WWO Weather from: http://api.worldweatheronline.com/fr...keyhiddenXXXXX. Error: System.Net.HttpWebResponse The remote server returned an error: (403) Forbidden.

    When I copy the url it to my browser WWO it says: API key does not have access to the resource.

    So questions:
    • Has anyone gone this route with any success?
    • Does WWO work with the PI?
    • Are there any other alternatives? (I'm looking for Canadian weather).

    I figured if I waited until now someone would have found a solution I'm on the latest HS3 with the latest version of WeatherXML.

    Thanks to all and to all a Happy New Year!
    Chris
    Regards,
    Chris
    HS3 Pro 3.0.0.531 Shuttle XS36VL Atom PC - Win 7 Pro 32 / HCSII / Insteon / Z-Wave & SmartStick+ / DSC 1832 - PC5108 - IT100 / 651 devises & 154 events
    Plug-Ins: APCUPSD / BLDSC / BLiTunes / BlueIris / BLMarantz / BLShutdown / Device History / HCS2 / Insteon / Jon00 Network Monitor / Jon00 DB Charting / PHLocation2 / WeatherXML / Z-Wave

  • #2
    I have the same issue as well when trying to move to this, WWO gives a "Premium" trial it seems and that URL is different than the free.

    I get the following:

    downloadFile: WWO Weather from: http://api.worldweatheronline.com/fr...s=5&tp=12&key=[hidden]. Error: System.Net.HttpWebResponse The remote server returned an error: (403) Forbidden.

    When testing the API on their site the URL is:

    http://api.worldweatheronline.com/pr...ther.ashx?key=[hidden]&q=60543&format=json&num_of_days=5

    You can see the difference. I did find something in the forms that stated to change the ini file with the URL. SO I tried that, restart the plugin, but it did not work, still gives the wrong URL. Is something hard coded now?

    From my ini: *which i changed*.

    [wwoCommon] wwoRegister=http://www.worldweatheronline.com/register.aspx
    wwoDownloadURLCur1=http://api.worldweatheronline.com/premium/v1/weather.ashx?q=
    wwoDownloadURLC2=&format=xml&num_of_days=5&key=

    Comment


    • #3
      While just restarting the plugin itself did not seem to help, I restarted all of the HS3 application and it did pickup the changes. So I'm not sure if that will help you at all Chris.

      Comment


      • #4
        Here is how it is setup to work.

        In the ini file, the main part of the url would go in:
        PHP Code:
        wwoDownloadURLCur1=http://api.worldweatheronline.com/premium/v1/weather.ashx?q=
        wwoDownloadURLCur2=&format=xml&num_of_days=5&tp
        wwoDownloadURLCur3=&key=

        This get built into

        wwoDownloadURLCurl1 
        theLatitude "," theLongitude wwoDownloadURLCur2 "12" wwoDownloadURLCur3 APICode 
        However, I did see an error. wwoDownloadURLCur3 is not getting set correctly.
        I will fix it and post the fix tomorrow.


        --
        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
          Eureka!
          After playing around with both Hulksmack's and Jeff's suggestions and some trial and error, here is what finally worked for me:

          [wwocommon]
          wwoRegister=http://www.worldweatheronline.com/register.aspx
          wwoDownloadURLC1=http://api.worldweatheronline.com/premium/v1/weather.ashx?q=
          wwoDownloadURLC2=&format=xml&num_of_days=5&key=
          wwoDownloadURLCur1=http://api.worldweatheronline.com/premium/v1/weather.ashx?q=


          The above lines are what I had originally in the .ini file and the only change was from /free/ to /premium/ and the Cur1 line was originally v2 so I changed it to v1.

          This generated: http://api.worldweatheronline.com/premium/v1/weather.ashx?q=45.5,-73.6&format=xml&includeLocation=yes&showmap=yes&num_of_days= 5&tp=12&key=[key removed]

          Jeff, the code in your post showing &tp= after the days=5 returned the following: http://api.worldweatheronline.com/premium/v1/weather.ashx?q=45.5,-73.6&format=xml&num_of_days=5&key=12&format=xml&num_of_days= 5&key=[key removed] note how num_of_days got repeated twice.

          My only challenge now is to get the forecast in French instead of English because "Chloe", our sexy French synthesized voice really messes up some of the English words

          Thanks to both of you and here's wishing you a happy, healthy and prosperous new year guys!!!

          Chris

          PS: I kept getting download overrun warnings from WU and I'm still getting them after having removed them for over 4 days now. Either someone else was using my key or their system was wrong. I was downloading no more than 10 times per day and kept getting warnings about 501 to 509 downloads. Maybe their system wasn't counting right and they "think" people are downloading tons of data. Too late now!
          Regards,
          Chris
          HS3 Pro 3.0.0.531 Shuttle XS36VL Atom PC - Win 7 Pro 32 / HCSII / Insteon / Z-Wave & SmartStick+ / DSC 1832 - PC5108 - IT100 / 651 devises & 154 events
          Plug-Ins: APCUPSD / BLDSC / BLiTunes / BlueIris / BLMarantz / BLShutdown / Device History / HCS2 / Insteon / Jon00 Network Monitor / Jon00 DB Charting / PHLocation2 / WeatherXML / Z-Wave

          Comment


          • #6
            NOTE: I edited this post after messing around with the settings a little more.

            Hey Jeff, maybe you can help me out on this language thing:

            The WWO site says that you can define a language by adding &lang=XX in the URL string.

            So I tried a whole bunch of ways by editing the wwoDownloadURLC lines in the ini file and nothing worked. Then I had the "bright" idea of simply tacking on "&lang=fr" to the back of my key and lo and behold that worked.

            This is what I see in the log:
            Jan-01 5:43:04 PM weatherXML Downloading the WWO Weather file at http://api.worldweatheronline.com/pr...s=5&tp=12&key=[key removed]&lang=fr.
            Jan-01 5:43:04 PM weatherXML Replacement URL: http://api.worldweatheronline.com/pr...s=5&tp=12&key=[key removed]&lang=fr
            Now there seems to be difference: the top one, which I think is the URL that's actually transmitted, contains a "." at the end whereas the second one ("Replacement") doesn't. And if you send the URL with the period you don't get the 2nd language but if there's no period you get a response that includes both the English and French.

            Anyways, I managed to "translate" most of the variables into French using the Advanced/Custom settings...and I see some data now coming in French. The only thing is the forecast strings which remain completely in English.

            Any thoughts? Thanks,
            Chris
            Regards,
            Chris
            HS3 Pro 3.0.0.531 Shuttle XS36VL Atom PC - Win 7 Pro 32 / HCSII / Insteon / Z-Wave & SmartStick+ / DSC 1832 - PC5108 - IT100 / 651 devises & 154 events
            Plug-Ins: APCUPSD / BLDSC / BLiTunes / BlueIris / BLMarantz / BLShutdown / Device History / HCS2 / Insteon / Jon00 Network Monitor / Jon00 DB Charting / PHLocation2 / WeatherXML / Z-Wave

            Comment


            • #7
              Originally posted by CFGuy View Post
              Here is how it is setup to work.

              In the ini file, the main part of the url would go in:
              PHP Code:
              wwoDownloadURLCur1=http://api.worldweatheronline.com/premium/v1/weather.ashx?q=
              wwoDownloadURLCur2=&format=xml&num_of_days=5&tp=
              wwoDownloadURLCur3=&key=

              This get built into

              wwoDownloadURLCurl1 
              theLatitude "," theLongitude wwoDownloadURLCur2 "12" wwoDownloadURLCur3 APICode 
              However, I did see an error. wwoDownloadURLCur3 is not getting set correctly.
              I will fix it and post the fix tomorrow.

              I have removed all use of WU and have changed settings to only use WWO. However, I am getting the 403 access errors.

              Is this fix available yet?

              Comment


              • #8
                I did it get it fixed but didn't get a chance to post it. I get off today at 4PM and will get it packaged up and posted to the updater.
                --
                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


                • #9
                  For what it is worth, WU is still working just fine for me.

                  Comment


                  • #10
                    Originally posted by jono View Post
                    For what it is worth, WU is still working just fine for me.
                    Me too. Let's see how far!!!

                    Comment


                    • #11
                      Originally posted by jono View Post
                      For what it is worth, WU is still working just fine for me.
                      Me as well, but I do upload data to them as well. There has been no announcement yet as to what the replacement API and/or plan will look like for people that do upload data to them.
                      HS 3.0.0.548: 1976 Devices 1156 Events
                      Z-Wave 3.0.1.262: 123 Nodes on one Z-Net

                      Comment


                      • #12
                        Originally posted by sparkman View Post

                        Me as well, but I do upload data to them as well. There has been no announcement yet as to what the replacement API and/or plan will look like for people that do upload data to them.
                        Actually, there has and documentation is available. However, they don't yet have any keys for the new API, so no way to test it.

                        Comment


                        • #13
                          Originally posted by joegr View Post

                          Actually, there has and documentation is available. However, they don't yet have any keys for the new API, so no way to test it.
                          Thanks, the only emails I have received about it indicated that there would be a future announcement on it. When did they send the info on the documentation and can you share the link?

                          Thanks
                          Al
                          HS 3.0.0.548: 1976 Devices 1156 Events
                          Z-Wave 3.0.1.262: 123 Nodes on one Z-Net

                          Comment


                          • #14
                            I knew you would want that. I'm not home to find it right now. They didn't email it. Instead Victoria posted a link to it on one of the forum threads here: https://apicommunity.wunderground.com/weatherapi

                            Comment


                            • #15
                              Originally posted by joegr View Post
                              I knew you would want that. I'm not home to find it right now. They didn't email it. Instead Victoria posted a link to it on one of the forum threads here: https://apicommunity.wunderground.com/weatherapi
                              Got it, thanks! https://docs.google.com/document/d/1...qpE_gArAY/edit
                              HS 3.0.0.548: 1976 Devices 1156 Events
                              Z-Wave 3.0.1.262: 123 Nodes on one Z-Net

                              Comment

                              Working...
                              X