• Welcome to TodayPlus Boards v2.
 

Weather Information Extract From Yahoo

Started by uk_skinner, February 03, 2005, 01:00:55 PM

Previous topic - Next topic

eemond

What Weather Icons are you using? I use the yahoo folder under TP Weather Icons and they seem to match. I will pay closer attention.

Regards,
eemond

eemond

Broesel,

Citycode=GMX0039 should be GMXX0039

Regards,
eemond

eemond

Timmy,

Could you please share your Citycode with me so I can monitor your weather Icon/Text problems.

Thanks...

Regards,
eemond

Broesel

Quote from: eemondBroesel,

Citycode=GMX0039 should be GMXX0039

Regards,
eemond

Sorry, my fault  :oops:  :oops:  :oops:

But I'm a little wired with testing all the various php-scripts  :lol:

Regards Broesel

eemond

Broesel,

No problem, thanks for all you help, and patience.

Regards,
eemond

Timmy

Quote from: uk_skinnerTimmy:

 I will start pay attention to it.  In PHP we have a list to convert "forecast text" into codes.  The same thing can be doen for the current forecast.  Too convert text to image icon number.  If there is no pattern then perhaps we can have a list.  In that way, PHP can pull out the reight icon number from it and wrtite into city.txt.

 One way to start it is using the forecasttext you gave to emmond and look what icon number should be for each forecast text.

Uk_skinner,

That's a good idea! I don't know PHP, but last months I see everytime again that you, eemond and Broesel are doing good things with PHP or c++ or what name those tools/languages might have.

Note: there are much more textphrases in yahoo than in msn.com. Every new text that comes in I gather in my Dutch Sky.txt, so I hope to get a klist as complete as possible.

Timmy
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

eemond

Broesel,

This problem ("In my city1.txt the text says snow, the icon says rain, city3.txt says
"sunny" with icon 11 what means rain too.") has been resolved.

It was caused by using two weather feeds (MSNBC & Yahoo). I was pulling the Icon from Yahoo and the Context from MSNBC. I decided to pull both from Yahoo (http://weather.yahoo.com/forecast/gmxx0039.html).

Thanks...

Regards,
eemond

uk_skinner

I just had a major discovery this afternoon.  I believe we can have all weather data from weather.com.  This time not only the data in the city.txt, additional new data can also be "extracted".  

In fact, two PHP scripts for German and Frech users have been sent out for testing.  

Once this PHP available, I will post and for users to test.  At this time, I believe this one can be used if you can find your local weather information from weather.com even for other country.

:P

Broesel

Quote from: eemondBroesel,

This problem has been resolved.

It was caused by using two weather feeds (MSNBC & Yahoo). I was pulling the Icon from Yahoo and the Context from MSNBC. I decided to pull both from Yahoo (http://weather.yahoo.com/forecast/gmxx0039.html)

Thanks eemond, with my last update it worked fine and showed the right icons too  :D

Regards Broesel

Broesel

Quote from: Broesel
Quote from: eemond
Thanks eemond, with my last update it worked fine and showed the right icons too  :D

Sorry, but I'm still having the problem that the first forecasticon (not current)
shows a nighticon for the current day  :knownot: when synching after
6 pm in Germany.

Regards Broesel

uk_skinner

Ok, I have a question:

What do we supposely to see the forecast in the evening, let's say after 4PM?

Broesel, I checked the MSNBC one, the updated time of your city was at "13:00" (your time), but if you look the first day of 5-day forecast, it started tomorrow.  This makes sense since the day forecast is no longer valid.  The question is when do we wish to see the forecast starts tomorrow?

Broesel

Quote from: uk_skinnerOk, I have a question:

What do we supposely to see the forecast in the evening, let's say after 4PM?

Broesel, I checked the MSNBC one, the updated time of your city was at "13:00" (your time), but if you look the first day of 5-day forecast, it started tomorrow.  This makes sense since the day forecast is no longer valid.  The question is when do we wish to see the forecast starts tomorrow?

When you say, the updatetime from msnbc.com is 13:00, the string is
01:00 ? It is given in american time, so it is 6 hours later in Germany.
(19:00 or 7:00 pm). Synching after 6:00 pm (German time) with msnb.com gives us the
forecast for the next day (no more the current day). I didn't test, when
yahoo or weather.com changes the forecast for the current day, but should
be like at msnbc.com.

hope that helps
Broesel

eemond

Broesel,

The source of the feed for http://todayplus.jhollin1138.com/rss/forecast_yahoo_txt.php?Citycode=GMXX0039&Language=US is http://weather.yahoo.com/forecast/gmxx0039.html . When you are having problems/concerns, please check the source.

Hope this helps.

Regards,
eemond

uk_skinner

Quote from: Broesel
When you say, the updatetime from msnbc.com is 13:00, the string is
01:00 ? It is given in american time, so it is 6 hours later in Germany.
(19:00 or 7:00 pm). Synching after 6:00 pm (German time) with msnb.com gives us the
forecast for the next day (no more the current day). I didn't test, when
yahoo or weather.com changes the forecast for the current day, but should
be like at msnbc.com.

hope that helps
Broesel

Ok, I see what you meant.  
:wink:

Broesel

Quote from: eemondBroesel,

The source of the feed for http://todayplus.jhollin1138.com/rss/forecast_yahoo_txt.php?Citycode=GMXX0039&Language=US is http://weather.yahoo.com/forecast/gmxx0039.html . When you are having problems/concerns, please check the source.

Yes I checked it, and I saw the problem, in the evening yahoo shows a
nighticon for the current condition and the icon for today, there you
get the number from and it shows a nighticon for the today-forecast too :shock:

At msnbc.com in the evening the current day is no more shown, but the
next day is showing with day- and nighticon.

So I now understand that. It would be nice, like uk_skinner asked before,
if we synch at the evening, that we can get the next day to show as the
first forecastday, but I don't know, if that is possible. If not, I can live with
that.

Regards Broesel