It is currently September 8th, 2024, 2:49 am
Rain.ini no longer working - no Precip in Yahoo response
-
- Posts: 7
- Joined: January 14th, 2010, 2:40 pm
Rain.ini no longer working - no Precip in Yahoo response
I noticed recently that Rain.ini no longer displays the chance of precipitation although MoxaWeather.ini works fine. I grabbed the response from the Yahoo weather server and there's no Precipitation value included. Is there a different URL other than http://weather.yahooapis.com/forecastrss?p=#WeatherCode# that has this?
-
- Posts: 2
- Joined: January 19th, 2010, 9:28 pm
Re: Rain.ini no longer working - no Precip in Yahoo response
You might want to try and change the following entries in the rain.ini file
No guarantees, but it works for me (and for now).
Code: Select all
;; Original:
;Url=http://www.weather.com/outlook/travel/businesstraveler/local/#WeatherCode#
;RegExp="(?siU)Precip:.*align=\"left\">(.*)%"
;; new: works as of jan 19, 2010
Url=http://xhtml.weather.com/xhtml/hbhf/#WeatherCode#
RegExp="Precip:[\n\s]*([0-9]*.*)%"
-
- Posts: 7
- Joined: January 14th, 2010, 2:40 pm
Re: Rain.ini no longer working - no Precip in Yahoo response
That works for me, too! Thanks. I guess there's always some risk in scraping a website versus a real API.
-
- Posts: 2
- Joined: March 30th, 2010, 12:36 pm
Re: Rain.ini no longer working - no Precip in Yahoo response
This fix works great! Thanks!
-
- Posts: 5
- Joined: April 1st, 2010, 11:41 am
Re: Rain.ini no longer working - no Precip in Yahoo response
i done this and it worked last night, woke up this morning and it doesnt, same with the weather in tranquil, got me puzzled
-
- Posts: 1
- Joined: July 27th, 2010, 1:16 am
Re: Rain.ini no longer working - no Precip in Yahoo response
instead of rainfall probability in percentage, how would you write a regexp to extract the rainfall in inches?
for instance, Past 24-hr: Precip: 0.## in (est.) on this url
http://www.weather.com/weather/today/Spicewood+TX+USTX1288
i'm a newbie and can't seem to figure it out. thanks
for instance, Past 24-hr: Precip: 0.## in (est.) on this url
http://www.weather.com/weather/today/Spicewood+TX+USTX1288
i'm a newbie and can't seem to figure it out. thanks
-
- Moderator
- Posts: 995
- Joined: June 10th, 2009, 12:44 pm
- Location: Sweden
Re: Rain.ini no longer working - no Precip in Yahoo response
If you can find anywhere where they would post that information, it might be parsed.ticotexas wrote:instead of rainfall probability in percentage, how would you write a regexp to extract the rainfall in inches?
for instance, Past 24-hr: Precip: 0.## in (est.) on this url
http://www.weather.com/weather/today/Spicewood+TX+USTX1288
i'm a newbie and can't seem to figure it out. thanks
But as far as I can see, they don't.
I don't think, therefore I'm not.