TodayPlus Boards v2

Programming and MOD Forums => Developer's Corner Discussion => Topic started by: uk_skinner on February 03, 2005, 01:00:55 PM

Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 03, 2005, 01:00:55 PM
Thanks to eemond (King of PHP script), not only once but twice.  I only will announce this one and let ZapMe1 does the other one.

Here is the idea:  The weather information TP downloads is from MSNBC weather site.  The information was downloaded and stored as cityXX.txt (XX is city ID) in Buff folder.  As you might noticed, the information was not very updated (for my home town, it always over 2 hours late).  Just like MSNBC, Yahoo also gets weather information from weather.com and the ones on Yahoo is always updated every 60 minutes (at least true in my case).  If this is also true for you, then this PHP script will extract the most updated weather information from the Yahoo and "merge" the one from MSNBC to create a "hybrid" cityXX.txt.  At this time, no need to change or add new codes in the skin. The reason we still need MSNBC ones, becuase some of information are not provided from Yahoo.

How does this work?  

1)  Add this url address into your radar.txt, like this:  change the citycode and cityID according to your needs.

SURL=http://todayplus.jhollin1138.com/rss/forecast_yahoo_txt.php?Citycode=USMA0056
STOR=\Program Files\TodayPlus\Buffer\city1.txt
FORM


note:  if you try to do copy/paste from here, you will get the "extra space" at the end of each line.  This will cause an error in radar.exe.  

2)  Use radar.exe to download the "hybrid" cityXX.text.  The "hybrid" cityXX.text looks different from the original one but the function is the same.  
note:  The original cityXX.txt will be overwriten.  If you wish to get the original one back, just delete the "hybrid" ones and redo the "Update".

3)  By putting the radar.exe into TpDelay.txt, this "merge" action can be linked to normal update action in TP, then the "hybrid" one can be generated each time you do the updating.

Note:  This PHP script only will work for Yahoo site no other weather site.

Please see before(MSNBC) at left and after(Hybrid) at right
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 03, 2005, 02:07:02 PM
Well eemond and uk_skinner, this is really good news  :D
Thanks for giving us a second possibility to download weatherinformations.
Maybe not far away, we can get weatherinformations from German, French and other Servers  8)

Tryed this first time for my homecity, everything worked, but did not
get a weathericon. Took a look in the city1.txt and there is a line:
this.swCIcon = "52/9" , where the icon-numer should be.

Could you take a look ?

attaching my city1.txt (rename to txt from zip)

Greetings Broesel
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 03, 2005, 02:41:59 PM
Quote from: "ZapMe1"

As far as I know, this can only be used for US Zipcodes at this time !!  Maybe soon, we can find a way to expand this !!!!


Another great expansion of TodayPlus, thanks to all that helped to this,
and I hope you are able to expand this for European textes tooo ..  :D

Greetings Broesel
Title: Weather Information Extract From Yahoo
Post by: eemond on February 03, 2005, 03:09:39 PM
Broesel,

Please try again, I just uploaded an updated PHP Script.

Thanks...

Regards,
eemond
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 03, 2005, 03:19:56 PM
Quote from: "Broesel"
Quote from: "ZapMe1"

As far as I know, this can only be used for US Zipcodes at this time !!  Maybe soon, we can find a way to expand this !!!!


Another great expansion of TodayPlus, thanks to all that helped to this,
and I hope you are able to expand this for European textes tooo ..  :D

Greetings Broesel


Broesel:

  I just have a major break-through to get SID code from wetteronline.de.  If this hold, there is possibility to get forecast text from weeteronline.de  Cross your fingers.

 :lol:
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 03, 2005, 03:22:12 PM
Quote from: "eemond"
Broesel,

Please try again, I just uploaded an updated PHP Script.

Thanks...

Regards,
eemond


Yesssssss,  worked  :D

Broesel
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 03, 2005, 03:23:20 PM
Quote from: "uk_skinner"

Broesel:
I just have a major break-through to get SID code from wetteronline.de.  If this hold, there is possibility to get forecast text from weeteronline.de  Cross your fingers. :lol:


Good news, keep up the good work  :lol:  :lol:

Broesel
Title: Weather Information Extract From Yahoo
Post by: thc on February 03, 2005, 03:28:12 PM
nice work!

@eedmond and uk_skinner

do you think is it possible to make the same thing with local yahoo weather like http://fr.weather.yahoo.com//FRXX/FRXX0076/index_c.html? it would be nice to have all weather info in our language...
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 03, 2005, 03:34:43 PM
Quote from: "thc"

do you think is it possible to make the same thing with local yahoo weather like http://fr.weather.yahoo.com//FRXX/FRXX0076/index_c.html? it would be nice to have all weather info in our language...


I have an url for Germany too (but uk_skinner, wetteronline.de would be better)

http://de.weather.yahoo.com/GMXX/GMXX0039/index_c.html

Greetings Broesel
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 03, 2005, 03:55:35 PM
thc, broesel:

  I did not see any forecast details in the sites you provided.  They did have simple forecast text for each day, but didn't you get them translated into your language by using forecasttext.txt?
Title: Weather Information Extract From Yahoo
Post by: thc on February 03, 2005, 04:03:10 PM
@ uk_skinner,

i'm talking about current weather not for forecast, but if you want http://fr.weather.com/weather/local/FRXX0076?par=yahoo&site=fr.yahoo.com&promo=template are more forecast prevision and more current informations...
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 03, 2005, 04:08:14 PM
Quote from: "uk_skinner"
thc, broesel:

  I did not see any forecast details in the sites you provided.  They did have simple forecast text for each day, but didn't you get them translated into your language by using forecasttext.txt?


Well, I thought about pulling the informations from there, didn't try that
page with the php-script.

Take a look at the screenshot , should only be an example for other
weathertextes in German.

Broesel

Edit: Screenshot deletet because not enough upload-quota
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 03, 2005, 04:15:03 PM
thc:

  Ok, you want to get current weather information into city.txt, right?

broesel:

  The PHP sript looks for English key word, so it will not be able to extract the forecast from German yahoo site.
Title: Weather Information Extract From Yahoo
Post by: thc on February 03, 2005, 04:17:59 PM
Quote from: "uk_skinner"
thc:

  Ok, you want to get current weather information into city.txt, right?


that's right! if is it possible, of course!
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 03, 2005, 04:36:50 PM
Quote from: "uk_skinner"
broesel:
  The PHP sript looks for English key word, so it will not be able to extract the forecast from German yahoo site.


Sorry, I didn't make me clear, it should only be a possible url to get
weatherinformation into city.txt.  I know, it doesn't work yet. But take
your time, to test all things you need ......

Broesel
Title: Re: Weather Information Extract From Yahoo
Post by: Timmy on February 03, 2005, 04:47:50 PM
Quote from: "uk_skinner"
Thanks to eemond (King of PHP script), not only once but twice.  I only will announce this one and let ZapMe1 does the other one.
(...)

 @Uk_skinner, @Zapme1, @Eemond and @Jhollin1138,
(hope, not to forget other members...)


Thank you all very much for this new feature! I've tested it for two Dutch cities, one Irish city, one French city and one German city.

Conclusion:
this feature works very accurate and very up-to-date.  No problems met!!!

Thank you all!!!

Timmy
_____________________________________________________
PS
Question 1: does anybody knows what CET in '10:25 PM CET" means?
Question 2: this is a stupid question, but nevertheless I'm very curious about what the people in this thread have made, or have done to let this be succesfully. Is there a member who will give his time to explain this in very simple words for me?!? Would be very appreciated!!!
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 03, 2005, 10:37:11 PM
Timmy:
  Your questions were too "small" in terms of the size of the font.


Quote
Question 1: does anybody knows what CET in '10:25 PM CET" means?


I will guess "Central Europe Time" (GMT +1).

Quote
Question 2: this is a stupid question, but nevertheless I'm very curious about what the people in this thread have made, or have done to let this be succesfully. Is there a member who will give his time to explain this in very simple words for me?!? Would be very appreciated!!!


Were you asking how the PHP-script can extract the weather information?

The Yahoo weather page you read on the browers can be download as a text file.  Just go to "File" saved as ".txt".  When you open this text file under Notepad or Word, you can see all the html, or javascript codes in it.  The weather information you saw were "hidden" in there.  eemond used the PHP language to look for the Key words before and after the weather information.  For example, if you search "Currently" in the text, you will find the condition of Today is not far below.  By viewing the text, the information we wish can be "extracted" out.  That is the reason, this is really site-specific and can not be used in other language.

Once you get them out and you can arrange them into the RSS format or to put it into city.txt.  They all just different text format.

Hopefully, this is helpful.
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 03, 2005, 10:42:42 PM
Quote from: "Broesel"
Quote from: "uk_skinner"
broesel:
  The PHP sript looks for English key word, so it will not be able to extract the forecast from German yahoo site.


Sorry, I didn't make me clear, it should only be a possible url to get
weatherinformation into city.txt.  I know, it doesn't work yet. But take
your time, to test all things you need ......

Broesel


Broesel:

  Is this a good one to get the weather information out? http://www.wetteronline.de/cgi-bin/citytext?SID=10033e11c8f14a386f12a19cf5ea43000e257&WMO=10033&LANG=de&PROVIDER=anwendung
There were only 3 days forecast.  Where I can find the current weather information from wetteronline.de?
Title: Weather Information Extract From Yahoo
Post by: Timmy on February 04, 2005, 02:42:01 AM
Quote from: "uk_skinner"
Timmy:
 
Quote
Question 1: does anybody knows what CET in '10:25 PM CET" means?

I will guess "Central Europe Time" (GMT +1).

Quote
Question 2: this is a stupid question, but nevertheless I'm very curious about what the people in this thread have made, or have done to let this be succesfully. Is there a member who will give his time to explain this in very simple words for me?!? Would be very appreciated!!!


The Yahoo weather page you read on the browers can be download as a text file.  Just go to "File" saved as ".txt".  When you open this text file under Notepad or Word, you can see all the html, or javascript codes in it.  The weather information you saw were "hidden" in there.  eemond used the PHP language to look for the Key words before and after the weather information.  For example, if you search "Currently" in the text, you will find the condition of Today is not far below.  By viewing the text, the information we wish can be "extracted" out.  That is the reason, this is really site-specific and can not be used in other language.

Once you get them out and you can arrange them into the RSS format or to put it into city.txt.  They all just different text format.

Hopefully, this is helpful.


Uk_skinner,

Thanks for your patience! And thanks for your answers!

Answer 1: Of course...   :oops:  :oops:  :oops:
Answer 2: I understand it! But can you be more clear about the things eemond have done? Did he make the right rss-possibilities on this forum-url? Or did he make radar.exe ready for doing this things? I'm curious to know what happened in the background.

Thanks,
Timmy
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 04, 2005, 02:48:29 AM
Quote from: "uk_skinner"
Broesel:

  Is this a good one to get the weather information out? http://www.wetteronline.de/cgi-bin/citytext?SID=10033e11c8f14a386f12a19cf5ea43000e257&WMO=10033&LANG=de&PROVIDER=anwendung
There were only 3 days forecast.  Where I can find the current weather information from wetteronline.de?
´

Well, I took a closer look at the site, unfortunally the informations we
need are spreaded over several small other links and it seems, that we
can't get weathertextes for more then three days (for the other days
only symbols) so I think, I will look, if I find another url, that gives us
the values we need. Thanks for your affort until now.

Greetings Broesel
Title: Weather Information Extract From Yahoo
Post by: nas on February 04, 2005, 03:32:16 AM
Quote from: "Broesel"
Quote from: "uk_skinner"
Broesel:

... I will look, if I find another url, that gives us
the values we need. Thanks for your affort until now.

Greetings Broesel


May be this one?

http://de.w3.weather.com/weather/local/99423?x=0&y=0

nas
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 04, 2005, 06:10:02 AM
Timmy:

Quote
Answer 2: I understand it! But can you be more clear about the things eemond have done? Did he make the right rss-possibilities on this forum-url? Or did he make radar.exe ready for doing this things? I'm curious to know what happened in the background.


Guess what.. I think it is better let him answer the question.  My knowledge in PHP scipt is very limited. :oops:  :oops:
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 04, 2005, 06:47:50 AM
broesel & nas:

   So far, I have not figure out a way to download the information as text from de.w3.weather.com.  As far as to extract the information from multiple url, I think it is possible, at least using my "fat exe".  Give me the links and what information you wish to extract.  If you could, please give me both German and English name. :oops:  :lol:
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 04, 2005, 07:26:34 AM
Quote from: "uk_skinner"
So far, I have not figure out a way to download the information as text from de.w3.weather.com.  As far as to extract the information from multiple url, I think it is possible, at least using my "fat exe".  Give me the links and what information you wish to extract.  If you could, please give me both German and English name. :oops:  :lol:


I love your "fat exes" :)

So let's try to translate:
URL for Flensburg:
http://de.w3.weather.com/weather/local/24937?x=0&y=0

Freitag, 4. Februar 2005 12:50 -updatetime-string
6°C - actual temperature
L Regen - means light rain (don't know how to get the numbers for forecasttext ?)
Gefühlte Temp. 2°C - feels like
Wind:  aus dem Südwesten mit 21 km/h  - from Southwest with 21 km/h
Taupunkt:  6°C - dewpoint (not neccessary)
Luftfeuchtigkeit:  100 %  - humidity
Sicht:  8,0 km - visibility
Luftdruck:  1.029,1 hPa - pressure in HectoPascal
UV-Index 0 Minimal - UV-index 0 (text not neccessary)

Clicking on Heute (means today) gets the Detailscreen:
http://de.w3.weather.com/weather/tenday/24937?day=1&vert=WeatherCity&pres=Flensburg%2C+Deutschland#day

Tag  Bedeckt Max:  6°C - Day: Cloudy - maxtemp 6°C
Wind: aus dem Südwesten mit 18 km/h - like above
Niederschl. Wahrsch.: 0 % - precepitation 0 %
Durchschn. Luftfeuchtigkeit: 97 % - humidity 97%
 
Nacht  Bedeckt Min:  3°C - Night Cloudy - mintemp 3°C
Wind: aus dem Südsüdwesten mit 19 km/h - like above
Niederschl. Wahrsch.: 10 % - precepitation
Durchschn. Luftfeuchtigkeit: 97 % - humidity

The Weathericons (this.swicon) are the same as used at msnbc.com

Same for the next days ...

Hope, that helps
Broesel
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 04, 2005, 07:40:05 AM
broesel:

  Thanks.

  But I need to figure out how to download the text from http://de.w3.weather.com/weather/local/24937?x=0&y=0 first.   :wall:  :wall:  :wall:

How about sites from wetteronline?
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 04, 2005, 07:49:35 AM
Quote from: "uk_skinner"
broesel:
But I need to figure out how to download the text from http://de.w3.weather.com/weather/local/24937?x=0&y=0 first.   :wall:  :wall:  :wall:

How about sites from wetteronline?


What do we want to do ? Getting informations for the cityx.txt or
getting Textinfos for RSS-feed ? I'm a little confused at the moment ...

Broesel
Title: Weather Information Extract From Yahoo
Post by: Timmy on February 04, 2005, 08:15:33 AM
Uk_skinner,

Is this URL to catch with one of your nice big fat .exe's ?!? :D

http://www.knmi.nl/voorl/weer/reindex.html?meerdaagse.html
Zonneschijn (%) --> Sunshine (%)
Neerslagkans (%) --> Precipation (%)
Neerslaghoeveelheid (mm)  -->  Rainfall (mm)
Windkracht (bft)  --> Windspeed (Bft)

If the answer is yes, I like to have them in my registry, and not in the 'rss-feed-solution'.

Timmy
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 04, 2005, 08:33:40 AM
Quote from: "Broesel"
Quote from: "uk_skinner"
broesel:
But I need to figure out how to download the text from http://de.w3.weather.com/weather/local/24937?x=0&y=0 first.   :wall:  :wall:  :wall:

How about sites from wetteronline?


What do we want to do ? Getting informations for the cityx.txt or
getting Textinfos for RSS-feed ? I'm a little confused at the moment ...

Broesel


Broesel:

  Sorry I did not make it clear.
  Both, in short answer.  They can be done seperately.  The new information, such as details forecast or extra day forecast (6 - 10 day) probably need to be put in either RSS format or registry key.  Although, I would like to try the idea to put extra day forecast into city.txt to see TP can go beyond 5 days data.  The current information provided by MSNBC can be replaced the ones from other weather server.  
  What I am trying to say is the "extraction process" can be applied to any text file from weather servers and output can go into 3 : city.txt, rss or regsitry keys.  The TP weather codes can call the information from city.txt and RSS codes can help use to deal with the text-rich information and registry key allow us to get number into var or simple text.

 At this moment, I can work with the information from wetteronline.
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 04, 2005, 08:43:35 AM
Quote from: "Timmy"
Uk_skinner,

Is this URL to catch with one of your nice big fat .exe's ?!? :D

http://www.knmi.nl/voorl/weer/reindex.html?meerdaagse.html
Zonneschijn (%) --> Sunshine (%)
Neerslagkans (%) --> Precipation (%)
Neerslaghoeveelheid (mm)  -->  Rainfall (mm)
Windkracht (bft)  --> Windspeed (Bft)

If the answer is yes, I like to have them in my registry, and not in the 'rss-feed-solution'.

Timmy


Timmy:

Yes, you are lucky.  Looks like I can download them as text.
Some of them are not numbers, and also there is "0-2" probably need go to "text" in regsitry key.
Title: Weather Information Extract From Yahoo
Post by: Timmy on February 04, 2005, 09:00:14 AM
Quote from: "uk_skinner"
Quote from: "Timmy"
Uk_skinner,

Is this URL to catch with one of your nice big fat .exe's ?!? :D

http://www.knmi.nl/voorl/weer/reindex.html?meerdaagse.html
Zonneschijn (%) --> Sunshine (%)
Neerslagkans (%) --> Precipation (%)
Neerslaghoeveelheid (mm)  -->  Rainfall (mm)
Windkracht (bft)  --> Windspeed (Bft)

If the answer is yes, I like to have them in my registry, and not in the 'rss-feed-solution'.

Timmy


Timmy:

Yes, you are lucky.  Looks like I can download them as text.
Some of them are not numbers, and also there is "0-2" probably need go to "text" in regsitry key.


Uk_skinner,

That's good news! If you realy can fix this, than I only need:
Zonneschijn (%) --> Sunshine (%)
Neerslagkans (%) --> Precipation (%)
Neerslaghoeveelheid (mm)  -->  Rainfall (mm)
Windkracht (bft)  --> Windspeed (Bft)

For me, it can be put as text in the registry. For instance as Sun-01, Sun-02, Sun-03, Sun-04 and Sun-05. It's easy to put this text from the registry to the desired place of the screen.

Would be nice if you realy can do this!

Thanks!
Timmy
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 04, 2005, 09:07:10 AM
Timmy:

  Do you want me delete your 2nd post?

  Ok, so Sun-01, Pre-01, RF-01, and WS-01 are good for you?  This is only for one city, right?
Title: Weather Information Extract From Yahoo
Post by: Timmy on February 04, 2005, 09:32:10 AM
Quote from: "uk_skinner"
Timmy:

  Do you want me delete your 2nd post?

  Ok, so Sun-01, Pre-01, RF-01, and WS-01 are good for you?  This is only for one city, right?


Uk_skinner,

Two times: that's OK!

FYI: this URL if not for one city, but for the whole country. But,as you know, I'm living in a little/small country...

Timmy
Title: Weather Information Extract From Yahoo
Post by: thc on February 04, 2005, 02:40:07 PM
Quote from: "thc"
Quote from: "uk_skinner"
thc:

  Ok, you want to get current weather information into city.txt, right?


that's right! if is it possible, of course!


@ uk_skinner,

did you miss this post?
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 04, 2005, 02:46:26 PM
thc:

   It is on my to-do list.  But it is a long one........ :shock:  :?

  I only can do fat-exe.. Know nothing about PHP script yet. :knownot:
Title: Weather Information Extract From Yahoo
Post by: thc on February 04, 2005, 03:52:10 PM
uk_skinner,

forget it, don't break your mind for that... :wink:
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 04, 2005, 04:38:28 PM
Quote from: "uk_skinner"

   It is on my to-do list.  But it is a long one........ :shock:  :?


I know that, but maybe one of the php-experts can take a look at
this weathertext:

http://www.wetterspiegel.de/prognosetext.html?id=1

and can say, if it is possible, to get something like this in rss-format ?
If possible with keywords as a headline and text in the linked format ?

Greetings Broesel
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 04, 2005, 10:06:09 PM
broesel:

   This link looks intersting, but I need more information.  For example, what is the ID in the url?  

   Anyway, I got sucess to extract the forecast information from http://www.wetteronline.de/cgi-bin/citytext?SID=100339448775fc41075a6da7f42c7934a94f6&WMO=10033&LANG=de&PROVIDER=anwendung to RSS format feed and look like this :

  I have problem with some of German word (red label).   So if you could help me to test it.  I will prepare a package and email to you.  I will not be available whole day tomorrow.  Thanks for help.

   

Quote
<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0">
<channel>
<title>Forecast from Wetteronline.de</title>
<description>Flensburg</description>
<link>http://news.yahoo.com/</link>  <-----This is not right
   <item>
         <title> Sa, 05.02. Vormittag </title>
         <description> unterschiedlich bew&ouml;lkt  </description>
         </item>
   <item>
         <title> Sa, 05.02. Nachmittag </title>
         <description> meist sonnig  </description>
         </item>
   <item>
         <title> Sa, 05.02. Abend </title>
         <description> leicht bew&ouml;lkt  </description>
         </item>
   <item>
         <title> So, 06.02. Vormittag </title>
         <description> sonnig  </description>
         </item>
   <item>
         <title> So, 06.02. Nachmittag </title>
         <description> sonnig  </description>
         </item>
   <item>
         <title> So, 06.02. Abend </title>
         <description> leicht bew&ouml;lkt  </description>
         </item>
   <item>
         <title> Mo, 07.02. Vormittag </title>
         <description> meist sonnig  </description>
         </item>
   <item>
         <title> Mo, 07.02. Nachmittag </title>
         <description> sonnig  </description>
         </item>
   <item>
         <title> Mo, 07.02. Abend </title>
         <description> klar  </description>
         </item>
</channel>
</rss>
Title: Weather Information Extract From Yahoo
Post by: Wichtel on February 05, 2005, 03:08:54 AM
I think the red word is: bewölkt. But its not clear??
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 05, 2005, 04:07:04 AM
Quote from: "uk_skinner"
broesel:

   This link looks intersting, but I need more information.  For example, what is the ID in the url?  


The ID in the url is a country-code, We can get this forecast for every
country in Germany, 1 means Schleswig-Holstein, the country where I
live in

Quote
Anyway, I got sucess to extract the forecast information from http://www.wetteronline.de/cgi-bin/citytext?SID=100339448775fc41075a6da7f42c7934a94f6&WMO=10033&LANG=de&PROVIDER=anwendung to RSS format feed and look like this :

  I have problem with some of German word (red label).   So if you could help me to test it.  I will prepare a package and email to you.  I will not be available whole day tomorrow.


Well, the German alphapet has some letters, that are known as ä, ö, ü
and in html they are signed as &auml;, &ouml;, &uuml;. They will not be
displayed proper in xml, so what you could do, is change them to
&auml; = ae , &ouml; =oe, &uuml; = ue, that would be understand in
German.

i will take a look at your package, thanks  :D

Broesel
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 05, 2005, 05:57:59 AM
broesel:

  Ok,  how can we get the ID?  Is there a list ?
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 05, 2005, 06:00:59 AM
Quote from: "uk_skinner"
broesel:

  Ok,  how can we get the ID?  Is there a list ?


Didn't see one for now, but will take a look or post a list here.

Broesel
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 05, 2005, 06:19:09 AM
Wichtel, broesel:

  Thanks for the explaination.

   Does this happen to English OS?  If it is, then I probably don't have to worry about it as long as it shows up right in your German OS.
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 05, 2005, 07:07:43 AM
Quote from: "uk_skinner"
Wichtel, broesel:

  Thanks for the explaination.

   Does this happen to English OS?  If it is, then I probably don't have to worry about it as long as it shows up right in your German OS.


I think, it's HTML, to display it the right way, it always use the &ouml;
format, Sent you a mail with the explanations of our "special letters"

Broesel
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 05, 2005, 07:23:37 AM
Quote from: "Broesel"
Quote from: "uk_skinner"
broesel:

  Ok,  how can we get the ID?  Is there a list ?


Didn't see one for now, but will take a look or post a list here.

Broesel


Took a look, and there are many ID's  :oops:
Can be personalized by going to the Webpage and searching ones
own city, so I can't do that for every city in Germany but can give instructions
to interested users.

Broesel
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 05, 2005, 09:43:17 PM
Quote from: "Broesel"


I think, it's HTML, to display it the right way, it always use the &ouml;
format, Sent you a mail with the explanations of our "special letters"

Broesel


Broesel:

  Problem fixed.
  I need your input about:

1)  How the city name get imported to exe?  Will a configure file with the list of city and RSS number work, such as

Quote
Flensburg
21
Stuttgart
22


2)  As you know, a Index file needs to be downloaded first.  Do you want want this done in radar.txt or a part of exe?  I currently set a check point ot check the file time of this file.  It will ask users to update it if it is not create today.





Quote
<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0">
<channel>
<title>Forecast from Wetteronline.de</title>
<description>Flensburg</description>
<link>http://news.yahoo.com/</link>
   <item>
         <title> So, 06.02. Vormittag </title>
         <description> sonnig  </description>
         </item>
   <item>
         <title> So, 06.02. Nachmittag </title>
         <description> sonnig  </description>
         </item>
   <item>
         <title> So, 06.02. Abend </title>
         <description> klar  </description>
         </item>
   <item>
         <title> Mo, 07.02. Vormittag </title>
         <description> meist sonnig  </description>
         </item>
   <item>
         <title> Mo, 07.02. Nachmittag </title>
         <description> meist sonnig  </description>
         </item>
   <item>
         <title> Mo, 07.02. Abend </title>
         <description> leicht bewölkt  </description>
         </item>
   <item>
         <title> Di, 08.02. Vormittag </title>
         <description> meist sonnig  </description>
         </item>
   <item>
         <title> Di, 08.02. Nachmittag </title>
         <description> meist sonnig  </description>
         </item>
   <item>
         <title> Di, 08.02. Abend </title>
         <description> leicht bewölkt  </description>
         </item>
</channel>
</rss>
[/quote]
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 06, 2005, 05:13:19 AM
Quote from: "uk_skinner"

Broesel:

  Problem fixed.
  I need your input about:

1)  How the city name get imported to exe?  Will a configure file with the list of city and RSS number work, such as

Quote
Flensburg
21
Stuttgart
22


Well, I think that sounds good, so we can decide, what citytext goes into
what rss-number.


Quote
2)  As you know, a Index file needs to be downloaded first.  Do you want want this done in radar.txt or a part of exe?  I currently set a check point ot check the file time of this file.  It will ask users to update it if it is not create today.


I think, it would be better in one exe, so let that one download everything
we need, if that is possible. I'm already heaving problems with managing
the several radar.txt - instructions  :oops:

Broesel
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 06, 2005, 05:57:03 AM
Broesel:

  Cool, I will just make them in one folder and you just need to copy the folder in your base folder.  Eveything will be in there.
Title: Weather Information Extract From Yahoo
Post by: eemond on February 06, 2005, 08:04:02 AM
Broesel:

I am trying to translate SKY in my Yahoo Weather PHP Script and would ask if you could please share with me your translated (German) forecasttext.txt file.

Thanks...

Regards,
eemond
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 06, 2005, 08:27:42 AM
Quote from: "eemond"
Broesel:

I am trying to translate SKY in my Yahoo Weather PHP Script and would ask if you could please share with me your translated (German) forecasttext.txt file.

Thanks...

Regards,
eemond


emmond:

  This was the sky.txt I downloaded from German site.  It was used to translate the sky information into German.  Is this that you need?
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 06, 2005, 09:23:08 AM
Quote from: "eemond"
Broesel:

I am trying to translate SKY in my Yahoo Weather PHP Script and would ask if you could please share with me your translated (German) forecasttext.txt file.

Thanks...

Regards,
eemond


I think, you want the forecasttext.txt to get the numbers to the cityx.txt ,
right ?

Here is (I think so) tha latest one: (rename zip to txt)

Broesel
Title: Weather Information Extract From Yahoo
Post by: eemond on February 06, 2005, 10:17:05 AM
That is what I was looking for.

Thanks...

Regards,
eemond
Title: Weather Information Extract From Yahoo
Post by: eemond on February 06, 2005, 03:19:06 PM
New version of the PHP Script has been uploaded to do the translation of SKY in the cityx.txt (this.swConText =) to German thanks to Broesel for the German translation of forecasttext.txt). If anyone else would like me to translate to their language, just send me your language specific forecasttest.txt file.

Thanks...

Regards,
eemond
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 06, 2005, 04:29:14 PM
Quote from: "eemond"
New version of the PHP Script has been uploaded to do the translation of SKY in the cityx.txt (this.swConText =) to German thanks to Broesel for the German translation of forecasttext.txt). If anyone else would like me to translate to their language, just send me your language specific forecasttest.txt file.

Thanks...

Regards,
eemond


Does that mean, the translation is done while getting the info from yahoo ?
Sounds nice :D
If so, how do we get it into the city.txt ?

Edit: Oh, I see, you get it by the city-code :lol:
So I have another wish, can you take the german translation also for
Switzerland (SZXX...) and Austria (AUXX) because they are German speaking countries  too

Thanks Broesel :lol:
Title: Weather Information Extract From Yahoo
Post by: eemond on February 06, 2005, 04:40:41 PM
Broesel,

Yes, while getting Yahoo weather.

See UK's 1st post for the "How To".

I' look at SW and AU.

Regards,
eemond
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 06, 2005, 04:43:24 PM
Quote from: "eemond"
Broesel,

Yes, while getting Yahoo weather.

See UK's 1st post for the "How To".

I' look at SW and AU.

Regards,
eemond


Yes thanks, sorry, I know, how to get it but first later figured out,
that the text already came translated.

Regards Broesel
Title: Weather Information Extract From Yahoo
Post by: Timmy on February 07, 2005, 03:08:28 AM
@Eemond and @Broesel,

There's a new problem with the latest things that are changed. Let me explain:

I have cities of The Netherlands (of course!!), England/Ireland, France and Germany in my weaterforecast weather-regions.

I use uk_skinners sky-translate-exe in combination with the rss-feature of this thread (via radar.exe).

Problem: since the rss-feed is already translating the things, my sky-translate.txt must contain the translations of every country I wish to have in my weather-container....

For me: no translations in the rss-feeds! I prefer to have to have only English in the rss-feeds, and using uk_skinners sky-translate-exe to translate the things in the language of your wishes!!!

OR: does anybody see another solution?!?

Thanks!
Timmy
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 07, 2005, 03:17:15 AM
Quote from: "Timmy"
@Eemond and @Broesel,

There's a new problem with the latest things that are changed. Let me explain:

I have cities of The Netherlands (of course!!), England/Ireland, France and Germany in my weaterforecast weather-regions.

I use uk_skinners sky-translate-exe in combination with the rss-feature of this thread (via radar.exe).

Problem: since the rss-feed is already translating the things, my sky-translate.txt must contain the translations of every country I wish to have in my weather-container....

For me: no translations in the rss-feeds! I prefer to have to have only English in the rss-feeds, and using uk_skinners sky-translate-exe to translate the things in the language of your wishes!!!

OR: does anybody see another solution?!?

Thanks!
Timmy


Yes, think that is a problem, maybe eemond can make it possible through
a parameter in the php-script, that allows to use the original english
language, f.ex. something like translation=no and translation=yes.
Don't know, if that is possible, eemond has to answer this question.

Greetings Broesel
Title: Weather Information Extract From Yahoo
Post by: eemond on February 07, 2005, 10:35:40 AM
Try 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
Title: Weather Information Extract From Yahoo
Post by: eemond on February 07, 2005, 11:08:21 AM
What 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
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 07, 2005, 11:11:32 AM
Ed:

  That will be a great idea.

  I think if we could let PHP scripts to do the translation or even conversion and put it into city.txt.  That will be perfect.

 Anything outside of city.txt we can either do the rss or put them into registry key if you need to access the variable do some image or calculation.

 :approve:
Title: Weather Information Extract From Yahoo
Post by: Timmy on February 07, 2005, 11:49:12 AM
Quote from: "eemond"
Try 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
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 07, 2005, 11:53:02 AM
Quote from: "eemond"
What 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
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 07, 2005, 12:06:11 PM
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
Title: Weather Information Extract From Yahoo
Post by: thc on February 07, 2005, 12:23:01 PM
Quote from: "eemond"
What 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.
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 07, 2005, 12:37:17 PM
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:
Title: Weather Information Extract From Yahoo
Post by: eemond on February 07, 2005, 01:12:56 PM
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
Title: Weather Information Extract From Yahoo
Post by: eemond on February 07, 2005, 01:15:01 PM
Sorry last URL is wrong memond should be todayplus.jhollin1138.com

Regards,
eemond
Title: Weather Information Extract From Yahoo
Post by: thc on February 07, 2005, 01:44:47 PM
if uk_skinner is ok, so let's go!  :wink:
eemond, what do you need for the french language?
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 07, 2005, 01:50:43 PM
Quote from: "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


Yes, works fine  :D

Regards Broesel
Title: Weather Information Extract From Yahoo
Post by: eemond on February 07, 2005, 02:01:54 PM
For French I need the French version of the forecasttext.txt file.

Regards,
eemond
Title: Weather Information Extract From Yahoo
Post by: Timmy on February 07, 2005, 02:07:33 PM
Quote from: "eemond"
For 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
Title: Weather Information Extract From Yahoo
Post by: thc on February 07, 2005, 02:12:18 PM
Quote from: "eemond"
For 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 (http://todayplus53.free.fr/skins/forecasttext.txt)
Title: Weather Information Extract From Yahoo
Post by: eemond on February 07, 2005, 02:39:58 PM
Language support for German (GM), French (FR) and the default English (US) is now available.

Regards,
eemond
Title: Weather Information Extract From Yahoo
Post by: thc on February 08, 2005, 03:30:15 AM
Quote from: "eemond"
Language 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?
Title: Weather Information Extract From Yahoo
Post by: eemond on February 08, 2005, 07:51:42 AM
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
Title: Weather Information Extract From Yahoo
Post by: thc on February 08, 2005, 08:16:03 AM
@ eemond,

i understand.
Fog= Brouillard

thanks
Title: Weather Information Extract From Yahoo
Post by: eemond on February 08, 2005, 08:29:15 AM
thc,

Update your local Forecasttext.txt (122=Brouillard)

Thanks...

Regards,
eemond
Title: Weather Information Extract From Yahoo
Post by: eemond on February 08, 2005, 05:53:47 PM
thc,

When you have a moment, could you please translate (search the attached for (NT)) forecasttext.txt file, There are a few missing codes that I added in English.

Thanks...

Regards,
eemond
Title: Weather Information Extract From Yahoo
Post by: thc on February 08, 2005, 06:01:27 PM
Quote from: "eemond"
thc,

When you have a moment, could you please translate (search the attached for (NT)) forecasttext.txt file, There are a few missing codes that I added in English.

Thanks...

Regards,
eemond


no problem, eemond. i'll do it tomorrow afternoon (french time), now is midnight and time to going to bed...
Title: Weather Information Extract From Yahoo
Post by: thc on February 09, 2005, 05:28:11 AM
hi eemond,

all translations done, except  '121' => 'Unbekannt(NT)',
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 09, 2005, 06:38:11 AM
Quote from: "thc"
hi eemond,

all translations done, except  '121' => 'Unbekannt(NT)',



Is it "unknown" in German?  Inconnu ?
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 09, 2005, 06:45:59 AM
Quote from: "uk_skinner"
Quote from: "thc"
hi eemond,

all translations done, except  '121' => 'Unbekannt(NT)',



Is it "unknown" in German?  Inconnu ?


Well, I took a look in the German forecasttext.txt and 121 is an unknown
code; it is present but only with the text "unbekannt" what means
unknown (isn't present in the english .txt too), so we have no text for it now

Regards Broesel
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 09, 2005, 06:54:57 AM
Another question to the php-scripting and getting cityx.txt by radar.exe:

If we refresh normally by TodayPlus, another file is written for every
city and rss with the time, when it was updated. When the buffer is
cleared, all files are gone. With the downloading from other servers
we don't get the files (cityx.txt.time). Did anybody try to find out, what
format there is in those files and is it possible to create them via php,
so that we can grab it in the skinfiles ? The problem in the skins is, that
most of them are referring to the update-time and we dont't have the
data, when we are getting the files not from msnbc.com.

Regards Broesel
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 09, 2005, 07:03:31 AM
Quote from: "Broesel"
Another question to the php-scripting and getting cityx.txt by radar.exe:

If we refresh normally by TodayPlus, another file is written for every
city and rss with the time, when it was updated. When the buffer is
cleared, all files are gone. With the downloading from other servers
we don't get the files (cityx.txt.time). Did anybody try to find out, what
format there is in those files and is it possible to create them via php,
so that we can grab it in the skinfiles ? The problem in the skins is, that
most of them are referring to the update-time and we dont't have the
data, when we are getting the files not from msnbc.com.

Regards Broesel


Broesel:

  I have been thinking this question too.  I have two options:

1)  Use TpExeDelay to put radar.exe after weather information updating.  In that way, you still download the city.txt from MSNBC and city.txt.time will be updated each time.  The new city.txt generated from PHP will overwrite the MSNBC one.  Con: The updating time will increase.

2)  Skip the TP build-in weather update and use a small exe to generate the city.txt.time (a new one or copy from rss.txt.time) whenever you do a downloading weather information from PHP.  Con: You need another exe.
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 09, 2005, 07:53:06 AM
Quote from: "uk_skinner"
Broesel:

  I have been thinking this question too.  I have two options:

1)  Use TpExeDelay to put radar.exe after weather information updating.  In that way, you still download the city.txt from MSNBC and city.txt.time will be updated each time.  The new city.txt generated from PHP will overwrite the MSNBC one.  Con: The updating time will increase.

2)  Skip the TP build-in weather update and use a small exe to generate the city.txt.time (a new one or copy from rss.txt.time) whenever you do a downloading weather information from PHP.  Con: You need another exe.


Yes, I see that. And it's sure not important, to fix that, only we have
to download the weather data twice. Well, was only a thought ....

Regards Broesel
Title: Weather Information Extract From Yahoo
Post by: thc on February 09, 2005, 08:38:38 AM
@ Broesel,

you can also add a new notification event with SKTools or Memaid to launch Radar.exe when Data synchronization finished.

i use tpdelay.exe for manual synchronization and notifification when the pda is on this craddle. both works perfectly!  :wink:
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 09, 2005, 09:00:59 AM
Quote from: "thc"
@ Broesel,

you can also add a new notification event with SKTools or Memaid to launch Radar.exe when Data synchronization finished.

i use tpdelay.exe for manual synchronization and notifification when the pda is on this craddle. both works perfectly!  :wink:


Yes, thanks,
I'm using tpdelay.exe too, and was only thinking about do not double
download of weatherdata. But as you said, it works fine :lol:

Regards Broesel
Title: Weather Information Extract From Yahoo
Post by: Timmy on February 09, 2005, 09:57:11 AM
Quote from: "Broesel"
Quote from: "thc"
@ Broesel,

you can also add a new notification event with SKTools or Memaid to launch Radar.exe when Data synchronization finished.

i use tpdelay.exe for manual synchronization and notifification when the pda is on this craddle. both works perfectly!  :wink:


Yes, thanks,
I'm using tpdelay.exe too, and was only thinking about do not double
download of weatherdata. But as you said, it works fine :lol:

Regards Broesel

Broesel,

Since the time I use the exedelay in combination with radar.exe, using the yahoo-rss-feed...
... I turned off the option 'refresh on sync' in todayplus config. In my skin I've made an imagebutton/button to start the delay.exe.

So there's only ONE weathersync when putting my PPC in the craddle. And everything in my skin is working well, giving the right information.

Timmy
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 10, 2005, 03:11:09 AM
@eemond: Hi, i was getting a weatherforecast for Berlin / Germany with
some unknown codes:

Sunday 02/13 : Unknown code 157 (day)
Monday 02/14 : Unknown code 0    (day)

Going to yahoo.com shows: Sunday : Snow, Monday: Scattered Snow showers.

How do you get the numbers for the weathertextes for day- and nightforecast? I can't see any nigh-textes on yahoo.com.
So in my opinion code 157 should be snow (Schnee in German), but why do we get an unknown code 0 ?

Maybe you can answer these questions

Regards Broesel

Edit: @uk_skinner: I saw the same codes in the other script too, so maybe 0 means "not available" ?
(Screenshot deleted)
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 10, 2005, 05:50:39 AM
broesel:

   The weathertext for the night were from MSNBC since yahoo does not provide these information.  I did not find "Scattered Snow Showers" on the forecasttext.  So probably this is a new one.  
   But I can see code 157 and it should be "Snow".  Didn't you see it?
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 10, 2005, 05:58:59 AM
Quote from: "uk_skinner"
broesel:

   The weathertext for the night were from MSNBC since yahoo does not provide these information.  I did not find "Scattered Snow Showers" on the forecasttext.  So probably this is a new one.  
   But I can see code 157 and it should be "Snow".  Didn't you see it?


Yes, code 157 was not in my forecasttect.txt, went to yahoo.com and saw
it should mean snow. o.k. put it in my forecasttext.txt and shows "snow".
This code should be added to the translation in the php-script.

For the other code, I never saw a code 0 in any forecast, so I wonder
what that means (of course it showed Scattered Snow Showers on yahoo.com) ,
but not in the city.txt, There I got the code 0 (what was from msnbc.com
if I understand that right). So what shell I do with that code ? Adding it
in the forecasttext.txt with code 0,Not available (in German "nicht vorhanden") ?

Regards Broesel
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 10, 2005, 06:59:54 AM
brosesel:

  The code 157 was in the PHP script but not code 0. I guess we can put as "Not available".  This is will only for the forecast text of current condition.

 The codes you got from this.swFore in the city.txt are translated from the forecasttext.txt in your device.  So if you add the code 0 in your list that should be fine.

 As I mentioned previously, the information on Yahoo are not enough to build the complete city.txt.  So the city.txt created by eemond's script is ,in fact, from two sources: MSNBC and Yahoo.  This could cause a problem if one of them is down.  We need come out an idea to see we can prevent this happened.
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 10, 2005, 07:22:12 AM
Quote from: "uk_skinner"

As I mentioned previously, the information on Yahoo are not enough to build the complete city.txt.  So the city.txt created by eemond's script is ,in fact, from two sources: MSNBC and Yahoo.  This could cause a problem if one of them is down.  We need come out an idea to see we can prevent this happened.


Yes, that makes things clearer, because i got the same "forecast-codes"
from every source. :cool:

Thanks for the explanation :)
Broesel
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 10, 2005, 07:33:01 AM
Another suggestion:

The third post in this thread from Zapme1 is talking about the php-script
to get weather-forecast-text in rss-format.

Shouldn't we put that in an own thread, so that we can discuss the
cityx.txt-things in this thread and the rss-forecast in another one?

What do you think ?

Regards Broesel
Title: Weather Information Extract From Yahoo
Post by: eemond on February 10, 2005, 07:57:40 AM
Broesel,

The way I return codes in the city1.txt files is as follows:

AM Codes - I search the attached table in the PHP Script for the weather text (Scattered Snow Showers). The Yahoo weather feed does not have codes, only descriptions. This table was the original US Forecasttext.txt file and had a 70-Sct Snow Showers which is not equal to Scattered Snow Showers. If not found, I return a 0, as you show above. When a 0 is found, I must change the PHP Script so Scattered Snow Showers can be found.

PM Codes - Yahoo does not provide a seperate AM/PM forecast, therefore, I just extract the PM Cods from the MSNBC feed.

With this understanding, I hope you can see that a 0 says that the PHP Script needs to be changed (Sct Snow Showers -> Scattered Snow Showers) and a non zero as in 157 means a change to your local Forecasttext.txt file.

Hope this helps.

Regards,
eemond
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 10, 2005, 08:13:04 AM
Quote from: "eemond"

PM Codes - Yahoo does not provide a seperate AM/PM forecast, therefore, I just extract the PM Cods from the MSNBC feed.

With this understanding, I hope you can see that a 0 says that the PHP Script needs to be changed (Sct Snow Showers -> Scattered Snow Showers) and a non zero as in 157 means a change to your local Forecasttext.txt file.


Yes, of course I understand things better now :) Thanks for the explanation.
So, when we find a code "0", should we provide that to you ? And if so,
in what way ?

Thanks
Broesel
Title: Weather Information Extract From Yahoo
Post by: eemond on February 10, 2005, 08:25:31 AM
Broesel,

What you provoded was excellent. I need what you see in TP and what you see in Yahoo Weather.

Thanks...

Regards,
eemond

(I updated the PHP Script).
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 11, 2005, 03:34:31 AM
@eemond and uk_skinner:

Had an other small bug yesterday:

When synching at 10 pm yesterday evening (with both yahoo and weather.com)
I got a forecast, where the dayicon from the first day was no dayicon
but a nighticon. So it shows a moon as dayicon.
Extract from city1.txt:

Code: [Select]

DayIcons:    29|30|5|14|11
DayTextes:   4|4|65|98|14

NichtIcons:   11|5|14|11|11
Nighttextes:  14|65|32|13|14


The first DayIcon is 29 what means "partly cloudy" but is a nighticon.

Can you please take a look at the script ?

Thanks Broesel
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 11, 2005, 07:47:39 AM
Hmm, sorry, but there is another one :oops:

Code: [Select]

function makeWeatherObj() {



                        this.swCity = "Flensburg";

                        this.swSubDiv = "N/A";

                        this.swCountry = "Germany";

                        this.swRegion = "Europe";

                        this.swTemp = "44";

                        this.swTempCel = Math.round(5/9)*(this.swTemp-32);

                        this.swCIcon = "28";

                        this.swWindS = "11";

                        this.swWindD = "WNW";

                        this.swBaro = "29.89";

                        this.swHumid = "69";

                        this.swReal = "38";

                        this.swUV =  "0";

                        this.swVis = "Unlimited
</font></td>
<td>&nbsp;</td>
<td><font face=Arial size=2><b>Sunset:</b></font></td>
<td><font face=Arial size=2>
5:21 pm</font></td>
</tr></table>
<!--ENDMORE CC-->
<br>
<!--TEXT FORECAST HEADER-->
<a name="text"></a>
<table cellpadding=2 cellspacing=0 border=0 width=100%>
<tr valign=top><td width=49%>
<table cellpadding=2 cellspacing=0 border=0 width=100%>
<tr bgcolor=eeeeee><td><font face=Arial><b>Local Forecast</b></font> - <font size=1
 face=Arial><a href="http://help.yahoo.com/help/us/weather/weather-21.html">(How to Read This)</a></font></td></tr></table>
<p>
<!--TEXT FORECAST-->
<font face="arial">
<p>
<b>Today:</b> Sun along with patchy clouds. High 42F. Winds W at 10 to 20 mph.<p>
<b>Tonight:</b> Rain showers early with precipitation turning to a";

                        this.swLastUp = "02/11/2005  1:00 pm CET";

                        this.swConText = "Früh Regen";

                        this.swFore = "6|7|1|2|3|02/11/2005|02/12/2005|02/13/2005|02/14/2005|02/15/2005
|30|5|14|14|11|4|94|271|84|13|42|40|26|23|35|0|90|90|30|60|5|16|14|4
5|11|65|90|84|16|14|24|22|16|19|30|";



                        this.swAcid = "GMXX0039";
 }

http://todayplus.jhollin1138.com/rss/forecast_yahoo_txt.php?Citycode=GMXX0039&Language=GM

Regards Broesel

Edit: Attached the html-code from yahoo.com (rename to txt or htm from zip)
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 11, 2005, 08:55:12 AM
ok, broesel (bug-finder).

I fixed the one on my server.  Try it.
eemond should take the one on TP forum.
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 11, 2005, 09:12:13 AM
Quote from: "uk_skinner"
ok, broesel (bug-finder).

I fixed the one on my server.  Try it.
eemond should take the one on TP forum.


Don't get the error with the text that not fits into the file, but is updatet
now. Having problems with where what script gets the data from :oops:

Hmm, wich one should I trust ?

Your script says "Früh Regen" what means Early Rain, Weather.com
says: Mostly Cloudy (this.swcontext)
Without translation, the script says "Mostly Cloudy" too.

Tryed your txt2.php

Edit: Here are the differences with and without translation:

this.swWindS = "9";
this.swWindS = "14";
this.swLastUp = "Feb 11 03:00 p.m. Local Time";
this.swLastUp = "11 Februar 2005 15:00";
this.swConText = "Mostly Cloudy";
this.swConText = "Früh Regen";

Tried with my homecity: GMXX0039

Regards Broesel
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 11, 2005, 09:37:47 AM
That is odd.  The one you are testing is using information from weather.com.  If you remove the "Language=GM" from url, you will get non-translation and non-conversion city.txt.  And it said "Mostly Cloudy".  Let me check the translation in the PHP.
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 11, 2005, 09:49:53 AM
Ok, 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.
Title: Weather Information Extract From Yahoo
Post by: eemond on February 11, 2005, 09:54:18 AM
Broesel,

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

DayIcons from this Script are pulled from here http://weather.yahoo.com/forecast/GMXX0039.html

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

The 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?

Script has been updated.

Thanks...

Regards,
Ed
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 11, 2005, 10:00:53 AM
eemond:

  Yes, I took care the testing script for weather.com.

  But the two "Mostly Cloudy" are in the yahoo PHP script too.  Can you take a look?

Thanks.
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 11, 2005, 10:02:12 AM
Quote from: "eemond"
Broesel,

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

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


Yes, I tried both and had the same problem


Quote
The 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.

Quote
Script has been updated.


Thanks  :D  :D

Regards Broesel
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 11, 2005, 10:05:38 AM
Quote from: "uk_skinner"
Ok, 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
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 11, 2005, 10:20:51 AM
Ok, done "999" for "Unlimited" .
Title: Weather Information Extract From Yahoo
Post by: eemond on February 11, 2005, 10:36:54 AM
Broesel,

Translation please:

219,Starke Schneefälle

Thanks...

Regards,
eemond
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 11, 2005, 10:45:36 AM
Wow....

"Starke Schneefälle" = "Strong Snow"
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 11, 2005, 11:20:52 AM
Quote from: "uk_skinner"
Wow....

"Starke Schneefälle" = "Strong Snow"


Thanks uk_skinner, you can do all  :D

Broesel
Title: Weather Information Extract From Yahoo
Post by: Timmy on February 11, 2005, 11:25:23 AM
Quote from: "uk_skinner"
Wow....

"Starke Schneefälle" = "Strong Snow"


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

Timmy
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 11, 2005, 11:29:21 AM
"Heavy Snow" is much better....I think...
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 11, 2005, 11:30:04 AM
Quote from: "Timmy"
Quote from: "uk_skinner"
Wow....

"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
Title: Weather Information Extract From Yahoo
Post by: Timmy on February 12, 2005, 04:24:10 AM
@ 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
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 12, 2005, 05:45:17 AM
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
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 12, 2005, 06:25:07 AM
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.
Title: Weather Information Extract From Yahoo
Post by: Timmy on February 12, 2005, 06:40:29 AM
Quote from: "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.


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
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 12, 2005, 06:52:28 AM
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.
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 12, 2005, 07:39:42 AM
Hmm, getting more problems .....

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

Getting wired code again ...

Code: [Select]
This code was deleted, because it was a fault in my link, sorry for the incommodity

Sorry, much stuff .....

Broesel
Title: Weather Information Extract From Yahoo
Post by: eemond on February 12, 2005, 07:40:18 AM
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
Title: Weather Information Extract From Yahoo
Post by: eemond on February 12, 2005, 07:49:05 AM
Broesel,

Citycode=GMX0039 should be GMXX0039

Regards,
eemond
Title: Weather Information Extract From Yahoo
Post by: eemond on February 12, 2005, 08:14:39 AM
Timmy,

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

Thanks...

Regards,
eemond
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 12, 2005, 08:25:22 AM
Quote from: "eemond"
Broesel,

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
Title: Weather Information Extract From Yahoo
Post by: eemond on February 12, 2005, 08:31:08 AM
Broesel,

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

Regards,
eemond
Title: Weather Information Extract From Yahoo
Post by: Timmy on February 12, 2005, 11:28:10 AM
Quote from: "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.


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
Title: Weather Information Extract From Yahoo
Post by: eemond on February 12, 2005, 09:01:36 PM
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
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 12, 2005, 10:48:25 PM
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
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 13, 2005, 04:47:15 AM
Quote from: "eemond"
Broesel,

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
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 13, 2005, 02:18:29 PM
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
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 13, 2005, 02:47:33 PM
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?
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 13, 2005, 02:55:03 PM
Quote from: "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?


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
Title: Weather Information Extract From Yahoo
Post by: eemond on February 13, 2005, 04:01:36 PM
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
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 13, 2005, 04:09:12 PM
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:
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 13, 2005, 04:19:27 PM
Quote from: "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.


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
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 13, 2005, 05:36:00 PM
Broesel:

  It is certainly possible.  The question is when do you want to make this switch.  MSNBC switchs for us.  Since we are creating the city.txt now, we have to decide at which time point to make switch.  In de.weather.com, I believe is 4:00PM.
Title: Weather Information Extract From Yahoo
Post by: eemond on February 13, 2005, 10:07:00 PM
Broesel,

I think I understand your concern, now. Let me try to explain what I see as the problem:

MSNBC at some point during the day (probably late in the afternoon) stops showing Day1 as today and replaces it with tomorrow.

Yahoo shows Day1 as today until Midnight when the date changes.

What I will do is let MSNBC drive the Day1 change. When you sync and MSNBC has started to use Tomorrow as Day1, I will force Yahoo to use Tomorrow as Day1.

I believe MSNBC should drive the Day1 change.

What do you think?

Regards,
eemond
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 14, 2005, 02:11:25 AM
Quote from: "eemond"
What I will do is let MSNBC drive the Day1 change. When you sync and MSNBC has started to use Tomorrow as Day1, I will force Yahoo to use Tomorrow as Day1.

I believe MSNBC should drive the Day1 change.

What do you think?


Quote from: "uk_skinner"
The question is when do you want to make this switch. MSNBC switchs for us. Since we are creating the city.txt now, we have to decide at which time point to make switch. In de.weather.com, I believe is 4:00PM


Well, for me both solutions will be o.k., if you change the day, when
msnbc is switching, we'll have the same as we have now and when
we switch to the next day at 4:00 pm we can have the next day earlier,
what means, we hav a 5-day-forecast even from the late afternoon :D

Both will be fine :)

Regards Broesel
Title: Weather Information Extract From Yahoo
Post by: Timmy on February 14, 2005, 01:59:24 PM
@All,

ERROR REPOPRT

Code: [Select]

ICON.....................TEXT
Snow.....................Rain/Snow
Snow(night)..............Snow(day)
Wind.....................0
Rain/Wind................Light rainfall
Snow.....................Snow/Wind
Cloudy...................Cloudy/Windy
First Snow...............Cloudy
Sct. Showers ............Cloudy
Cloudy...................Showers
Rain/Wind ...............Showers
Rain/Wind................Sct. Showers
Snow.....................0
Mostly Cloud.............Sct. Showers



Just to let you know.

Timmy
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 14, 2005, 02:08:11 PM
Timmy:

  Which PHP script you found error from?
Title: Weather Information Extract From Yahoo
Post by: Timmy on February 14, 2005, 02:16:37 PM
Quote from: "uk_skinner"
Timmy:

  Which PHP script you found error from?



Uk_skinner,

I'm using these Radar.txt textlines for my cities:

Code: [Select]
SURL=http://todayplus.jhollin1138.com/rss/forecast_yahoo_txt.php?Citycode=NLXX0015
STOR=\Program Files\TodayPlus\Buffer\city1.txt
FORM=
SURL=http://todayplus.jhollin1138.com/rss/forecast_yahoo_txt.php?Citycode=NLXX0028
STOR=\Program Files\TodayPlus\Buffer\city2.txt
FORM=
SURL=http://todayplus.jhollin1138.com/rss/forecast_yahoo_txt.php?Citycode=EIXX0014
STOR=\Program Files\TodayPlus\Buffer\city3.txt
FORM=
SURL=http://todayplus.jhollin1138.com/rss/forecast_yahoo_txt.php?Citycode=FRXX0153
STOR=\Program Files\TodayPlus\Buffer\city4.txt
FORM=
SURL=http://todayplus.jhollin1138.com/rss/forecast_yahoo_txt.php?Citycode=GMXX0051
STOR=\Program Files\TodayPlus\Buffer\city5.txt
FORM=


Timmy
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 14, 2005, 03:43:58 PM
Quote from: "Timmy"

Code: [Select]

ICON.....................TEXT
Snow.....................Rain/Snow
Snow(night)..............Snow(day)
Wind.....................0
Rain/Wind................Light rainfall
Snow.....................Snow/Wind
Cloudy...................Cloudy/Windy
First Snow...............Cloudy
Sct. Showers ............Cloudy
Cloudy...................Showers
Rain/Wind ...............Showers
Rain/Wind................Sct. Showers
Snow.....................0
Mostly Cloud.............Sct. Showers



Timmy, I think it would be better to find, when you provide the icon-numbers
from the shown icons, so it's easier to find (can also be caused by the
weathericons, not all iconsets are in the right order).
Take ther weather.com-icons as reference. And the problem with the
nicht/dayicons is because yahoo is showing the night icon from the
late afternoon for the actual day.

Regards Broesel
Title: Weather Information Extract From Yahoo
Post by: Timmy on February 14, 2005, 03:54:02 PM
Quote from: "Broesel"
Timmy, I think it would be better to find, when you provide the icon-numbers
from the shown icons, so it's easier to find (can also be caused by the
weathericons, not all iconsets are in the right order).
Take ther weather.com-icons as reference. And the problem with the
nicht/dayicons is because yahoo is showing the night icon from the
late afternoon for the actual day.

Regards Broesel


Broesel,

•  The coming days I'll follow your tip to write down the icon numbers.

•  What I think? Yahoo is using another iconpic order... (BTW: I'm using the original Todayplus icon order= the weather.com icon order.)

Timmy
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 15, 2005, 07:29:36 AM
Thinking over the question "when should the weatherforecast change from
the actual day to the next day" I got the idea, if we can have the possibility
to choose in the php-script, what day we want to start with the forecast ?

F.ex. it's monday and I want to start my forecast with tuesday or wednesday
(a parameter like startweekday=2 or something like this)
As weather.com provides a tenday forecast maybe you can pull the
informations for the forecast ?

Regards Broesel
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 15, 2005, 07:44:05 AM
Broesel:

  Yes, it is possible.
  I am thinking to restart a new thread because we need to seperate the weather.com script from yahoo.  Otherwise, I will be more confused. :oops:   This was my fault too.
Title: Weather Information Extract From Yahoo
Post by: Timmy on February 15, 2005, 07:48:08 AM
Quote from: "uk_skinner"
Broesel:

  Yes, it is possible.
  I am thinking to restart a new thread because we need to seperate the weather.com script from yahoo.  Otherwise, I will be more confused. :oops:   This was my fault too.


Uk_skinner,

I agree with that suggestion: please, begin a clean, new thread!

Timmy
Title: Weather Information Extract From Yahoo
Post by: Broesel on February 15, 2005, 07:52:56 AM
Quote from: "uk_skinner"
Yes, it is possible.


Sounds nice :D

Quote
I am thinking to restart a new thread because we need to seperate the weather.com script from yahoo.  Otherwise, I will be more confused. :oops:


Yes, that would be better and as I mentioned before, the post with
the php-script for rss-feed (third post in this thread from zapme1)
should be in another thread too.

Regards Broesel
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on February 15, 2005, 09:23:38 AM
I have create a new thread for ZapMe1's post regrading the PHP script to download the detail forecast text as RSS-feed from Yahoo.  Please see:

http://www.jhollin1138.com/forums/viewtopic.php?t=1787
Title: °C in TP
Post by: eemond on February 16, 2005, 07:36:18 AM
I wanted to see my weather in Metric. When I clicked the Metric Unit button in Config I got the conversion (°F to °C) but the numbers did not match this ( http://weather.yahoo.com/forecast/GMXX0039_c.html?force_units=1 ). Therefore I added a parameter ( http://todayplus.jhollin1138.com/rss/forecast_yahoo_txt.php?Citycode=GMXX0039&Language=GM&Units=C ). My city1.txt is now in Metric. I have to fool TP by choosing English Units from Config so TP will not do a conversion. The number match OK.

While I'm here I have a question. I would like to expand the this.swBaro to contain text (1026 mb and falling). This text would allow me see an approaching low (and falling). This additional text may mess up some existing skins.

Comments?

Regards,
eemond
Title: Re: °C in TP
Post by: uk_skinner on February 16, 2005, 07:41:23 AM
Quote from: "eemond"
I wanted to see my weather in Metric. When I clicked the Metric Unit button in Config I got the conversion (°F to °C) but the numbers did not match this ( http://weather.yahoo.com/forecast/GMXX0039_c.html?force_units=1 ). Therefore I added a parameter ( http://todayplus.jhollin1138.com/rss/forecast_yahoo_txt.php?Citycode=GMXX0039&Language=GM&Units=C ). My city1.txt is now in Metric. I have to fool TP by choosing English Units from Config so TP will not do a conversion. The number match OK.

While I'm here I have a question. I would like to expand the this.swBaro to contain text (1026 mb and falling). This text would allow me see an approaching low (and falling). This additional text may mess up some existing skins.

Comments?

Regards,
eemond


Ed:

I believe TP also will convert swBaro when you select " Metric." in configure.  If you put the non-number in it, I don't know what will happened.
Title: Re: °C in TP
Post by: Broesel on February 16, 2005, 07:51:16 AM
Quote from: "eemond"
I wanted to see my weather in Metric. When I clicked the Metric Unit button in Config I got the conversion (°F to °C) but the numbers did not match this ( http://weather.yahoo.com/forecast/GMXX0039_c.html?force_units=1 ).


Didn't check the values with the values on the weathersource, but didn't
notice any problems, when using metric in TodayPlus and the values
seems to be o.k.

Quote
While I'm here I have a question. I would like to expand the this.swBaro to contain text (1026 mb and falling). This text would allow me see an approaching low (and falling). This additional text may mess up some existing skins.


I don't think, you would get it to display in the skin. I just changed my city1.txt

to this.swBaro = "30.08 and falling" and didnt notice any change :?:
Looks like it only takes the numeric values to convert into hPa

Regards Broesel
Title: Weather Information Extract From Yahoo
Post by: Broesel on March 19, 2005, 05:03:56 AM
One of our members in the German forum is having problems with the
script. He tries to download the weather for "Henneff" :

http://weather.yahoo.com/forecast/GMXX1840.html

and the cittyx.txt is confused. If you try to put it in the browser, same result.

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

Can anybody take a look at that ?

Regards Broesel
Title: Weather Information Extract From Yahoo
Post by: uk_skinner on March 19, 2005, 06:32:30 AM
Quote from: "Broesel"
One of our members in the German forum is having problems with the
script. He tries to download the weather for "Henneff" :

http://weather.yahoo.com/forecast/GMXX1840.html

and the cittyx.txt is confused. If you try to put it in the browser, same result.

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

Can anybody take a look at that ?

Regards Broesel


broesel:

  MSNBC does not have the weather information for GMXX1840 (http://www.msnbc.com/m/chnk/d/weather_d_src.asp?acid=GMXX1840).  Since this scripts is taking information from yahoo and MSNBC, only the ones from yahoo will work.  Looks like yahoo got weather information from other source when it is not available from weather.com.

Can he/she (sorry, could not tell from the name) use this (http://www.tpfans.com/rss/weather_test_de.php?Citycode=GMXX1840)?  The information is from de.weather.com.

Edit:  I also answered in German forum.  Please translate if it is necessary.  Thanks.
Title: Weather Information Extract From Yahoo
Post by: Broesel on March 19, 2005, 10:15:29 AM
Quote from: "uk_skinner"

MSNBC does not have the weather information for GMXX1840 (http://www.msnbc.com/m/chnk/d/weather_d_src.asp?acid=GMXX1840).  Since this scripts is taking information from yahoo and MSNBC, only the ones from yahoo will work.  Looks like yahoo got weather information from other source when it is not available from weather.com.


Yes, I saw that msnbc.com does not have that code and even on
weather.com the code does not work too.

Quote
Can he/she (sorry, could not tell from the name) use this (http://www.tpfans.com/rss/weather_test_de.php?Citycode=GMXX1840)?  The information is from de.weather.com.

Edit:  I also answered in German forum.  Please translate if it is necessary.  Thanks.


Yes, that would be an alternative (Did not test de.weather.com before). Waiting for an answer in the german forum.
Don't think, that a translation is neccessary

Thanks
Broesel