Announcement

Collapse
No announcement yet.

Jon00's BBC weather V4 stopped working

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

    Jon00's BBC weather V4 stopped working

    Have had this running fine up until today. Just seems to annouce N/A. Device status data all seems there. It also now seems to annouce location as London.
    Have logged on to BBC website and checked location data is present on website, that all seems ok.

    The only thing I can think of is that when I opened up browser for BBC website it mentioned about the new Cookie law, and click if you are happy to continue. Would this affect Info being downloaded ?

    Location code is 2638714.

    Have checked ini file but not sure what data I am looking for to be honest.

    Help appreciated

    Steve
    Steve

    #2
    Not good I'm afraid. Looks like the site has been revamped again (with lots more data) which has broken much of the script.
    Jon

    Comment


      #3
      Originally posted by jon00 View Post
      Not good I'm afraid. Looks like the site has been revamped again (with lots more data) which has broken much of the script.
      Hi Jon,

      I have my own custom scripts which scrape from the BBC weather website also. I have to go through this pain each time they redesign their site and it's started to make me think about other options (don't know why it's took me this long!).

      Are you aware of any XML weather feed? This would be more consistent, hopefully.

      A quick google suggests that there are a few US based ones and the Met Office provide rss feeds, but they look like it's only for severe weather warnings and not general weather forecast information like the BBC website.

      I would sooner update my scripts to use an XML feed that I know would be unlikely to change. Have you ever looked or found any that were possibilities?

      Thanks,
      John

      Comment


        #4
        Thanks Guys

        I was begining to think I had done something wrong after spending a few hours today tweeking bits on my HS.

        I will watch this space with interest

        Thanks Steve
        Steve

        Comment


          #5
          This looks interesting:
          http://support.bbc.co.uk/platform/fe...atherFeeds.htm

          but nowhere near as much detail as the BBC weather website.

          Comment


            #6
            Shame, I am now in the same boat - the BBC weather site provided loads more forecast data than I have ever seen on any other RSS feeds.

            I think RSS may end up being the way to go eventually, whether using the HSTouch in built RSS feeds (which can work for the UK) or somewhere else.

            Comment


              #7
              The BBC XML data has been around for a few years but as Jimbob states, does not contain much data. I'm not sure what the best route is at the moment. I honestly thought with a brand new website this would be stable for at least a year or two :-(

              To make matters worse, I cannot even look at this at the moment. I have serious family health issues which is taking up most of my spare time.
              Jon

              Comment


                #8
                Originally posted by jon00 View Post
                The BBC XML data has been around for a few years but as Jimbob states, does not contain much data. I'm not sure what the best route is at the moment. I honestly thought with a brand new website this would be stable for at least a year or two :-(

                To make matters worse, I cannot even look at this at the moment. I have serious family health issues which is taking up most of my spare time.
                They are still changing the site as well! Yesterday the current day forecasts still showed the 3-hourly forecasts but today they now are hourly, with a variable number of slots - seem to finish at 5am the following day, so the later in the day we are, the fewer slots are displayed. So it might be worth waiting anyway until it has settled down.
                I will spend a little time over the next day or so anyway to see if there are any viable alternatives.

                Sorry to hear about your family issues Jon, hope they are resolved soon.

                Comment


                  #9
                  I have found an API which gives responses in either csv or xml. It looks like it gives a good amount of detail, not much less than the BBC site.

                  The only downside is that you have to register to receive an API key. This key gets used in the URL for the http requests made to the site. I tried to register to get a key but their registration form times out! This also happens on the "Contact Us" form - not too reassuring.

                  http://www.worldweatheronline.com/weather-api.aspx

                  Although they are called World Weather Online, the postal address is given as Manchester and the examples show UK towns, so promising there.

                  Anyway, I have sent them an email enquiring about registration.

                  Comment


                    #10
                    Well, I have the API key and can retrieve 5-day local weather in xml format. Looking at it a bit closer now and it is a little limited but I may still switch over to it as it means no more updates in the future when the BBC decide to change their website again.

                    For the 5-day forecast, you get MinTemp, MaxTemp, Windspeed, WindDirection, Precipitation, "Weather". One nice touch is a URL to an appropriate icon. There is more information for the "Current Observation" though i.e. humidity, visibility, pressure, cloud cover.

                    Here is a sample response from the WorldWeatherOnline site:

                    Code:
                    <data>
                    	<request>
                    		<type>Postcode</type>
                    		<query>SK7</query>
                    	</request>
                    	<current_condition>
                    		<observation_time>06:49 PM</observation_time>
                    		<temp_C>15</temp_C>
                    		<temp_F>59</temp_F>
                    		<weatherCode>296</weatherCode>
                    		<weatherIconUrl>
                    <![CDATA[http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0017_cloudy_with_light_rain.png]]>
                    </weatherIconUrl>
                    		<weatherDesc>
                    <![CDATA[Light rain]]>
                    </weatherDesc>
                    		<windspeedMiles>16</windspeedMiles>
                    		<windspeedKmph>26</windspeedKmph>
                    		<winddirDegree>110</winddirDegree>
                    		<winddir16Point>ESE</winddir16Point>
                    		<precipMM>1.3</precipMM>
                    		<humidity>63</humidity>
                    		<visibility>10</visibility>
                    		<pressure>1012</pressure>
                    		<cloudcover>25</cloudcover>
                    	</current_condition>
                    	<weather>
                    		<date>2012-06-14</date>
                    		<tempMaxC>15</tempMaxC>
                    		<tempMaxF>60</tempMaxF>
                    		<tempMinC>8</tempMinC>
                    		<tempMinF>46</tempMinF>
                    		<windspeedMiles>16</windspeedMiles>
                    		<windspeedKmph>26</windspeedKmph>
                    		<winddirection>ESE</winddirection>
                    		<winddir16Point>ESE</winddir16Point>
                    		<winddirDegree>120</winddirDegree>
                    		<weatherCode>176</weatherCode>
                    		<weatherIconUrl>
                    <![CDATA[http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0009_light_rain_showers.png]]>
                    </weatherIconUrl>
                    		<weatherDesc>
                    <![CDATA[Patchy rain nearby]]>
                    </weatherDesc>
                    		<precipMM>4.4</precipMM>
                    	</weather>
                    	<weather>
                    		<date>2012-06-15</date>
                    		<tempMaxC>14</tempMaxC>
                    		<tempMaxF>58</tempMaxF>
                    		<tempMinC>10</tempMinC>
                    		<tempMinF>50</tempMinF>
                    		<windspeedMiles>18</windspeedMiles>
                    		<windspeedKmph>29</windspeedKmph>
                    		<winddirection>S</winddirection>
                    		<winddir16Point>S</winddir16Point>
                    		<winddirDegree>179</winddirDegree>
                    		<weatherCode>353</weatherCode>
                    		<weatherIconUrl>
                    <![CDATA[http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0009_light_rain_showers.png]]>
                    </weatherIconUrl>
                    		<weatherDesc>
                    <![CDATA[Light rain shower]]>
                    </weatherDesc>
                    		<precipMM>23.7</precipMM>
                    	</weather>
                    	<weather>
                    		<date>2012-06-16</date>
                    		<tempMaxC>15</tempMaxC>
                    		<tempMaxF>59</tempMaxF>
                    		<tempMinC>9</tempMinC>
                    		<tempMinF>48</tempMinF>
                    		<windspeedMiles>16</windspeedMiles>
                    		<windspeedKmph>26</windspeedKmph>
                    		<winddirection>S</winddirection>
                    		<winddir16Point>S</winddir16Point>
                    		<winddirDegree>185</winddirDegree>
                    		<weatherCode>389</weatherCode>
                    		<weatherIconUrl>
                    <![CDATA[http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0024_thunderstorms.png]]>
                    </weatherIconUrl>
                    		<weatherDesc>
                    <![CDATA[Moderate or heavy rain in area with thunder]]>
                    </weatherDesc>
                    		<precipMM>7.9</precipMM>
                    	</weather>
                    	<weather>
                    		<date>2012-06-17</date>
                    		<tempMaxC>14</tempMaxC>
                    		<tempMaxF>57</tempMaxF>
                    		<tempMinC>1</tempMinC>
                    		<tempMinF>34</tempMinF>
                    		<windspeedMiles>13</windspeedMiles>
                    		<windspeedKmph>22</windspeedKmph>
                    		<winddirection>W</winddirection>
                    		<winddir16Point>W</winddir16Point>
                    		<winddirDegree>275</winddirDegree>
                    		<weatherCode>353</weatherCode>
                    		<weatherIconUrl>
                    <![CDATA[http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0009_light_rain_showers.png]]>
                    </weatherIconUrl>
                    		<weatherDesc>
                    <![CDATA[Light rain shower]]>
                    </weatherDesc>
                    		<precipMM>2.0</precipMM>
                    	</weather>
                    	<weather>
                    		<date>2012-06-18</date>
                    		<tempMaxC>17</tempMaxC>
                    		<tempMaxF>62</tempMaxF>
                    		<tempMinC>3</tempMinC>
                    		<tempMinF>37</tempMinF>
                    		<windspeedMiles>4</windspeedMiles>
                    		<windspeedKmph>6</windspeedKmph>
                    		<winddirection>WSW</winddirection>
                    		<winddir16Point>WSW</winddir16Point>
                    		<winddirDegree>243</winddirDegree>
                    		<weatherCode>122</weatherCode>
                    		<weatherIconUrl>
                    <![CDATA[http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0004_black_low_cloud.png]]>
                    </weatherIconUrl>
                    		<weatherDesc>
                    <![CDATA[Overcast ]]>
                    </weatherDesc>
                    		<precipMM>3.7</precipMM>
                    	</weather>
                    </data>

                    Comment


                      #11
                      Please see: http://board.homeseer.com/showpost.p...5&postcount=24
                      Jon

                      Comment


                        #12
                        Noticed BBC script is having problems again page is not fully loading.
                        Anyone else having this problem?
                        Attached Files

                        Comment


                          #13
                          Originally posted by 8r1an View Post
                          Noticed BBC script is having problems again page is not fully loading.
                          Anyone else having this problem?
                          Looks like BBC weather has a problem with my area, selected a location 10 miles away and now working again.

                          Comment


                            #14
                            Have the BBC changed their data format again?
                            Most data is coming through ok, but e.g. the temperatures aren't updating on the day x overview. I don't think I've changed anything...

                            Location code 2656334, BBC website says tomorrow's max/min temps are +2 degrees/-2 degrees, but the HS device is showing 19 degrees/15degrees.

                            It's been like it for a while, I just kept putting off investigating until now...

                            Cheers,
                            Jon.

                            Comment


                              #15
                              I had noticed this too but had not investigated either.

                              Try version 4.1.1 on my site.

                              You only need to replace the script.
                              Jon

                              Comment

                              Working...
                              X