• 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

Timmy

Quote from: eemondTry this for a solution:

Uppercase city codes will attempt a translation (http://todayplus.jhollin1138.com/rss/forecast_yahoo_txt.php?Citycode=SWXX0010).

Lowercase city codes will return English (http://todayplus.jhollin1138.com/rss/forecast_yahoo_txt.php?Citycode=swxx0033).

Regards,
eemond

Eemond,

I've just tested your solution. The result:

marvellous ! ! !

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

Broesel

Quote from: eemondWhat about a paramter like Language=GM (or FR...). This would allow you to return SKY in the desired language and not have to change your skin (today,sky,50,66,Sky: ,,l) could remain unchanged.

Comments...

Regards,
eemond

Well, I think your solution with capital and non capital-letters is good
enough for now, but I think it would be nice, to have a Language-parameter.

Thanks Broesel  :D

Broesel

Hey eemond, just saw, that you changed the languages also for
Austria and ......  Sweden ? Please take a look at the script,
Switzerland has the Code SZXX

Greetings Broesel

thc

Quote from: eemondWhat about a paramter like Language=GM (or FR...). This would allow you to return SKY in the desired language and not have to change your skin (today,sky,50,66,Sky: ,,l) could remain unchanged.

Comments...

Regards,
eemond

hi eemond,

i think is a good idea, unless uk_skinner made TpSkyTranslate.exe for nothing...
but it will be more simple for newbie TP user.

uk_skinner

Quote from: thc
hi eedmond,

i think is a good idea, unless uk_skinner made TpSkyTranslate.exe for nothing...
but it will be more simple for newbie TP user.

thc:

  I think PHP is much better way than my fat-exe.  In fact, I am learning it right now.  The experience I got from these exe is going to help me in PHP script.   :wink:

eemond

New version uploaded try this (http://todayplus.jhollin1138.com/rss/forecast_yahoo_txt.php) to see the new parameter (Language).

Produces English w/o Language=

Only Language available is German (http://memond/rss/forecast_yahoo_txt.php?Citycode=SWXX0033&Language=GM).

Regards,
eemond

eemond

Sorry last URL is wrong memond should be todayplus.jhollin1138.com

Regards,
eemond

thc

if uk_skinner is ok, so let's go!  :wink:
eemond, what do you need for the french language?

Broesel

Quote from: eemondNew version uploaded try this (http://todayplus.jhollin1138.com/rss/forecast_yahoo_txt.php) to see the new parameter (Language).

Produces English w/o Language=

Only Language available is German (http://memond/rss/forecast_yahoo_txt.php?Citycode=SWXX0033&Language=GM).

Regards,
eemond

Yes, works fine  :D

Regards Broesel

eemond

For French I need the French version of the forecasttext.txt file.

Regards,
eemond

Timmy

Quote from: eemondFor French I need the French version of the forecasttext.txt file.

Regards,
eemond

Eemond,

And for the Netherlands we need the Dutch version of the forecasttext.txt file...

Can you, please...

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

thc

Quote from: eemondFor French I need the French version of the forecasttext.txt file.

Regards,
eemond

i've reached my upload quota but you can find french forecasttxt here

eemond

Language support for German (GM), French (FR) and the default English (US) is now available.

Regards,
eemond

thc

Quote from: eemondLanguage support for German (GM), French (FR) and the default English (US) is now available.

Regards,
eemond

thanks!
i've made a try and for sky, i have: Fog(NT)
i assume (NT) means No Traduction. and i suppose that the only way to add more traduction, is modify your php script, right?

eemond

thc,

That is correct (NT - No Translation). The way I translate SKY is to take the SKY returned to me by the weather feed and search (English) for the code (Fog=122). I then search the desired language (FR) for the code (122). If you look at the forecasttext.txt you sent me, 122 is not found.

Not all of us have the same forecasttext.txt files. If you us the PHP Script with translation and receive an English SKY with the (NT), please provide me with the language, the returned SKY value and the translation (i.e. FR - Fog(NT)  - "Fog in French"). I will correct my PHP Script and return to you the update for your local forecasttext.txt.

Thanks...

Regards,
eemond