• 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

Broesel

Quote from: eemondBroesel,

The first problem (DayIcon/NightIcon) was that a problem with this http://todayplus.jhollin1138.com/rss/forecast_yahoo_txt.php?Citycode=GMXX0039&Language=GM ?

Yes, but without translation

QuoteWhen you said weather.com, is that UK's Script?

Yes, I tried both and had the same problem


QuoteThe second problem was a visibility in Yahoo weather of "Unlimited" (first time I saw that). If Yahoo Visibiity is "Unlimited" TP is "999". Is that OK?

Yes, thats's o.k.

QuoteScript has been updated.

Thanks  :D  :D

Regards Broesel

Broesel

Quote from: uk_skinnerOk, found the problem.

In the forecasttext, there are two "Mostly Cloudy" in there, 3 and 74.  I changed the "74" to "Early Rain".  Please try again.

O.K. tried again and it works, as eemond said there is "unlimited" in your
script too, please update to "999" too,

thanks Broesel

uk_skinner


eemond

Broesel,

Translation please:

219,Starke Schneefälle

Thanks...

Regards,
eemond

uk_skinner

Wow....

"Starke Schneefälle" = "Strong Snow"

Broesel

Quote from: uk_skinnerWow....

"Starke Schneefälle" = "Strong Snow"

Thanks uk_skinner, you can do all  :D

Broesel

Timmy

Quote from: uk_skinnerWow....

"Starke Schneefälle" = "Strong Snow"

:idea:      ... or must it be 'Heavy Snow' ....      :idea:

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

uk_skinner

"Heavy Snow" is much better....I think...

Broesel

Quote from: Timmy
Quote from: uk_skinnerWow....

"Starke Schneefälle" = "Strong Snow"

:idea:      ... or must it be 'Heavy Snow' ....      :idea:

Timmy

Thanks Timmy, yes, that's better, didn't think over it right ...  :oops:

Broesel

Timmy

@ All,

I must agree with some the other members that the pics and the text of the weatherforecast too often aren't exactly the same. I'll write down my last weather report from the yahoo-rss-feed mentioned in this thread, translated into English:

•  Hannover:  picture: heavy rain  -  text: Haze
•  Rotterdam:  picture:heavy cloudy  -  text: Clear
•  Arnhem:  picture: heavy rain  -  text: Light Rain
•  Dublin:  picture: mostly cloudy  -  text: Mostly Cloudy
• Grenoble:  picture: some showers and wind  -  text: Light Rain

As you can see: four errors..... Only Grenoble combines text&pics well...

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

Broesel

Quote from: Timmy@ All,

I must agree with some the other members that the pics and the text of the weatherforecast too often aren't exactly the same. I'll write down my last weather report from the yahoo-rss-feed mentioned in this thread, translated into English:

Well, I just noticed that too, the text of current an the icon doesn't fit
every time-
In my city1.txt the text says snow, the icon says rain, city3.txt says
"sunny" with icon 11 what means rain too.

I'm attaching my wrong files in a zipfile.

Regards Broesel

uk_skinner

The number of icon was taken frm yahoo.  Maybe the number system in Yahoo is different than the ones we use in TP.  

Timmy/Broesel, how about the weather.com one you are testing?  Do you have the same problem?  If, indeed, the number system is different, it is possible to change it.

Timmy

Quote from: uk_skinnerThe number of icon was taken frm yahoo.  Maybe the number system in Yahoo is different than the ones we use in TP.  

Timmy/Broesel, how about the weather.com one you are testing?  Do you have the same problem?  If, indeed, the number system is different, it is possible to change it.

Uk_skinner,

Last year I also had sometimes differences between the pictures and the text of weather.com. But in those differencies was no permanent pattern.

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

uk_skinner

Timmy:

 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.

Broesel

Hmm, getting more problems .....

http://todayplus.jhollin1138.com/rss/forecast_yahoo_txt.php?Citycode=GMX0039

Getting wired code again ...

This code was deleted, because it was a fault in my link, sorry for the incommodity

Sorry, much stuff .....

Broesel