• Welcome to TodayPlus Boards v2.
 

Weather information from Weather.com

Started by uk_skinner, February 15, 2005, 07:47:30 AM

Previous topic - Next topic

Broesel

Quote from: uk_skinnerbroesel:

 Thanks.  How about wetteronline?  I did some exe beofre, I gues PHP probably is much better...

Well, the thing with the exe was really complicated, wasn't it   :?
Even the sid and all those things you did have to download first, no
things like zipcode or ac-id .....
I think, one of the problem is, that you only get a 3-day-forecast with
text, and in the trend only the icons. And there are much various
html-pages, where you have to get possible usable data from  :roll:
Don't know, if that is really good to take for cityx.txt.
Maybe use it as a rss-feed, if you can get all things, that are usefull
in the right order.

Regards Broesel

Timmy

Uk_skinner,

Here are my last checks:

Weather.com Rotterdam: 8 Mph -------- City1.txt: this.swWindS = 13 --------- c1windsd 13
Weather.com Arnhem: 3 Mph -------- City2.txt: this.swWindS = 5 --------- c2windsd 5
Weather.com Dublin: 21 Mph -------- City3.txt: this.swWindS = 34 --------- c3windsd 34
Weather.com Grenoble: Calm -------- City4.txt: this.swWindS = 2 --------- c4windsd 2
Weather.com Hannover: 6 Mph -------- City5.txt: this.swWindS = 10 --------- c5windsd 10

(Note: While testing I noticed that Grenoble didn't get a var for c4windir. Weather.com only gives the text "Wind: CALM").

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

uk_skinner

broesel:

  You were right, there are only 3 -day forecast.  The SID is not so bad, I can let PHP do all the job and just output as city.txt format.  But the only 3-day forecast is the limited.  If you can find a good source for Europe and the source of page can be extracted then I will be able to make PHP.

uk_skinner

Quote from: TimmyUk_skinner,

Here are my last checks:

Weather.com Rotterdam: 8 Mph -------- City1.txt: this.swWindS = 13 --------- c1windsd 13
Weather.com Arnhem: 3 Mph -------- City2.txt: this.swWindS = 5 --------- c2windsd 5
Weather.com Dublin: 21 Mph -------- City3.txt: this.swWindS = 34 --------- c3windsd 34
Weather.com Grenoble: Calm -------- City4.txt: this.swWindS = 2 --------- c4windsd 2
Weather.com Hannover: 6 Mph -------- City5.txt: this.swWindS = 10 --------- c5windsd 10

(Note: While testing I noticed that Grenoble didn't get a var for c4windir. Weather.com only gives the text "Wind: CALM").

Timmy

Timmy:

Ok, everything looked right except for the "Calm".  I will check PHP to make sure it output as "0".  Hwe did this happen??? :oops:  :?

Edit:  Odd, I checked the FRXX0153, and the wind speed in city.txt is '0'.  Timmy, did you update your city.txt?  Did you add TpRegistryWind.exe into TpDelay.txt?

Timmy

Quote from: uk_skinner
Quote from: Timmy
(Note: While testing I noticed that Grenoble didn't get a var for c4windir. Weather.com only gives the text "Wind: CALM").
Timmy:

Ok, everything looked right except for the "Calm".  I will check PHP to make sure it output as "0".  Hwe did this happen??? :oops:  :?

Edit:  Odd, I checked the FRXX0153, and the wind speed in city.txt is '0'.  Timmy, did you update your city.txt?  Did you add TpRegistryWind.exe into TpDelay.txt?
Uk_skinner,

I cleared the buffer and re-downloaded the forecast. And guess: now its available in the var as number 998...  The wind speed in city4.txt is '0', too. (I think it's depending on the time, what information you get. The information can change very quick, as we have seen here.)

Note:
998 is Calm
999 is Var

You gave those numbers to the winddirections, so you haven't to change things!

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

uk_skinner

Cool, let me know if you find anything is not right...

Timmy

Quote from: uk_skinnerCool, let me know if you find anything is not right...
@Uk_skinner and @Broesel,

We've all spend much time to this project today! Thank you both for your coörporation!

It's almost midnight in The Netherlands , and I'm going to sleep. Good night Broesel and good evening uk_skinner!!

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

Timmy

Quote from: uk_skinnerCool, let me know if you find anything is not right...
Uk_skinner,

Thanks, you're asking me...   :wink:  :wink:  :wink:

The weather URL is veeeeeeery slow at this moment, so I can't look for something I needed.

I'll give you the error I noticed:
Fridaynight-Text for Arnhem remains empty in the city2.txt of the buffer directory.

I saw that on the weather.com URL that there was a text for Fridaynight, but I can't look up that text now for the reason I wrote...

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

Broesel

Quote from: Timmy
The weather URL is veeeeeeery slow at this moment, so I can't look for something I needed.

It works fine for me  :?:

QuoteI'll give you the error I noticed:
Fridaynight-Text for Arnhem remains empty in the city2.txt of the buffer directory.

Friday night for Arnhem is Snow Shower, but that should be in the script ?
Saturday night is :  Clouds Early / Clearing Late   - a text I've never seen
before

Regards Broesel

uk_skinner

Timmy:

 I will take a look.

Edit: "Clouds Early / Clearing Late" is not in the forecasttext.txt, so we need to assign a code..




Can you check this?
http://www.wunderground.com/global/NL.html

broesel:

Can you check this :
http://www.wunderground.com/global/stations/10031.html

Timmy

Quote from: Broesel
Quote from: Timmy
The weather URL is veeeeeeery slow at this moment, so I can't look for something I needed.

It works fine for me  :?:

QuoteI'll give you the error I noticed:
Fridaynight-Text for Arnhem remains empty in the city2.txt of the buffer directory.

Friday night for Arnhem is Snow Shower, but that should be in the script ?
Saturday night is :  Clouds Early / Clearing Late   - a text I've never seen
before

Regards Broesel

Broesel,

I've made a mistake in my earlier post: I also ment Saterday night.
The connections with weather.com are ok here, too. And yes, I saw the same text, you wrote in your post. It's this particular text that made an empty place in the city2.txt ot the buffer.

Why???

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

Broesel

Quote from: Timmy

Broesel,

I've made a mistake in my earlier post: I also ment Saterday night.
The connections with weather.com are ok here, too. And yes, I saw the same text, you wrote in your post. It's this particular text that made an empty place in the city2.txt ot the buffer.

Why???

Because it is not in the script and then we can't get a code for the forecasttext.

You should provide such textes that not are found to uk_skinner with the
number of the corresponding text int the forecasttext.txt

Regards Broesel

uk_skinner

Guys:

 Someone needs to take in charge to assign the code to the new text then I can add it into the script.  Also the translation of different language also needed.

Broesel

Quote from: uk_skinnerGuys:

 Someone needs to take in charge to assign the code to the new text then I can add it into the script.  Also the translation of different language also needed.

In German: Früh bewölkt / Später klar   - code 42

Regards Broesel

Timmy

Quote from: uk_skinnerGuys:

 Someone needs to take in charge to assign the code to the new text then I can add it into the script.  Also the translation of different language also needed.

Uk_skinner,

Clouds Early Clearing Late

is telling exactly the same things as nr. 42 from our forecasttext.txt:


nr.42 Clouds Early/Clear Late Dutch translation: Bewolkt/later opklaringen   

Is nr. 42 to double, with two textlines for the same number?!?

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