• 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

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?

Timmy

Quote from: uk_skinnerTimmy:

 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
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

thc

Quote from: thc
Quote from: uk_skinnerthc:

 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?

uk_skinner

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:

thc

uk_skinner,

forget it, don't break your mind for that... :wink:

Broesel

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

uk_skinner

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>

Wichtel

I think the red word is: bewölkt. But its not clear??
Greetings Wichtel 
 

miwi-media.com | Web & Screendesign

Broesel

Quote from: uk_skinnerbroesel:

  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

QuoteAnyway, 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

uk_skinner

broesel:

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

Broesel

Quote from: uk_skinnerbroesel:

 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

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.

Broesel

Quote from: uk_skinnerWichtel, 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

Broesel

Quote from: Broesel
Quote from: uk_skinnerbroesel:

 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

uk_skinner

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

QuoteFlensburg
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]