Author Topic: Hourly Forecast  (Read 13850 times)

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
Hourly Forecast
« Reply #30 on: February 21, 2005, 08:06:23 AM »
Quote
Of course the solution from uk_skinner is the best (didn't think that right over)


broesel, thanks for the compliments, :oops: It is not always true though.

Here is a weather skin I have been play around.

   Put the next 12-hour forecast in the skin.  Tap the today weather icon will show you hourly forecast, 4 at a time up to 12 or to the 11:00PM on that day. Let's if you update the weather at 6:00PM, you will see 7 - 10 PM hourly forecast, and tap the down arrow, you will get 11PM one.  Tap the tomorrow weather icon, you will see 0 - 3 AM then 4 - 6 AM.

  I was also testing the temperature chart and waiting Timmy's graphic..
 :wink:

Timmy

  • TodayPlus Veteran
  • *****
  • Posts: 640
Hourly Forecast
« Reply #31 on: February 21, 2005, 08:39:10 AM »
Quote from: "uk_skinner"


Timmy:
  We can do t%varXX%.png.  So the name of image can be t1.png, t2.png....However, two things: 1) Are you going to prepare two sets (for C and F)?  2) Also QVGA and VGA?  :wink:  :roll:

Edit:  Geezer just have the same idea as mine. :?:


@Geezer, @Uk_skinner and @Broesel,

•  As I'm not completely sure how to name the pics, and what the numbers must be, I'll wait what further discussion shall teach me.

•  When we know what names we can give, I'll make a version for VGA and a version for QVGA.

•  Depending on what the discussion of point 1 will teach us, I'll make a serie for Celsius and a serie for Fahrenheit (is this correct English?!?).

Timmy
_______________________
PS
Hello Rockville, is it possible to get the hourtemperature for 24 hours? I think that I could understand that when I saw your latest post in this thread.
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
Hourly Forecast
« Reply #32 on: February 21, 2005, 09:58:36 AM »
Quote
PS
Hello Rockville, is it possible to get the hourtemperature for 24 hours? I think that I could understand that when I saw your latest post in this thread.


Timmy:

  Almost miss your ps.

  I checked the weather.com, for your city NLXX0015, yo can have hourly forecast up to Wednesday 3:00PM.  SO there are 48 hours???? :roll:  :wink:

Timmy

  • TodayPlus Veteran
  • *****
  • Posts: 640
Hourly Forecast
« Reply #33 on: February 23, 2005, 04:49:10 AM »
Uk_skinner,

I’ve got your new HOURForecast programms you PM’d me to test. And I’ve done all the things you wrote in your ReadMe.doc that was in the package.


Test Results:
•  Hourf1.txt and hourf2.txt are placed well in the buffer directory: the right text from the rss-feed is in that files;
•  Clicking on TpHRForecast.exe gives the error report: “Could not open hourf.txt”;
•  Renaming hourf1.txt into hourf.txt gaves he same error report;
•  Putting TpHRForecast.exe in the same directory as the hourf1.txt gaves the same error report;
•  Looking in the registry under ‘var’ I see:
    f1_1   ……     f1_24
    f2_1   ……     f2_24
    t1_1   ……     t1_24
    t2_1   ……    t2_24
•  the TpHRkeyRemove does its work well: it’s giving the right information before and after its job and all the ‘TpHRForecast.exe vars’ were deleted right.


My wishes:
In Radar.txt
• For City1:
    the buffered text for Temperature is: City1HRt1.txt and City1HRt2.txt
• For City2:
    the buffered text for Temperature is: City2HRt1.txt and City2HRt2.txt
    … and so on  to City5
[/color]
Quote
SURL=http://72.9.224.178/~tpfansc/rss/weather.php?Citycode=NLXX0015&Language=NL
STOR=\Program Files\TodayPlus\Buffer\city1.txt
FORM=
SURL=http://www.tpfans.com/rss/weather2.php?Citycode=NLXX0015
STOR=\Program Files\TodayPlus\Buffer\City1HRt1.txt
FORM=
SURL=http://www.tpfans.com/rss/weather2.php?Citycode=NLXX0015
STOR=\Program Files\TodayPlus\Buffer\City1HR2.txt
FORM=
SURL=http://72.9.224.178/~tpfansc/rss/weather.php?Citycode=NLXX0028&Language=NL
STOR=\Program Files\TodayPlus\Buffer\city2.txt
FORM=
SURL=http://www.tpfans.com/rss/weather2.php?Citycode=NLXX0028
STOR=\Program Files\TodayPlus\Buffer\City2HRt1.txt
FORM=
SURL=http://www.tpfans.com/rss/weather2.php?Citycode=NLXX0028
STOR=\Program Files\TodayPlus\Buffer\City2HRt2.txt
FORM=

In the Registry under ‘var’
• For City1:
    “Temperature”:   C1t1_1   …..    C1t1_24
    “Temperature”:   C1t2_1   …..    C1t2_24
    “Feels like”:     C1f1_1   …..    C1f1_24
    “Feels like”:     C1f2_1   …..    C1f2_24
    … and so on  to City5
This are just my thoughts. Do you, or somebody else, have better/other ideas?

Uk_skinner, thanks for all your hard thinking and good ideas!!!
Timmy[/color]
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Broesel

  • TodayPlus Veteran
  • *****
  • Posts: 595
Hourly Forecast
« Reply #34 on: February 23, 2005, 05:22:35 AM »
Quote from: "Timmy"

•  Clicking on TpHRForecast.exe gives the error report: “Could not open hourf.txt”;
•  Renaming hourf1.txt into hourf.txt gaves he same error report;
•  Putting TpHRForecast.exe in the same directory as the hourf1.txt gaves the same error report;


Timmy, I think this is still a problem with your basepath.
Try to set it to Program files\TodayPlus (or your rigth path to TodayPlus)

Quote
• For City1:
    “Temperature”:   C1t1_1   …..    C1t1_24
    “Temperature”:   C1t2_1   …..    C1t2_24
    “Feels like”:     C1f1_1   …..    C1f1_24
    “Feels like”:     C1f2_1   …..    C1f2_24
    … and so on  to City5


Are your really sure, you want that for all cities ? As far as I can see,
the exe writes 12 Registry-Keys for any hour, so 24 hours would be
288 Keys and that for 5 cities would be 1440 Registry-Keys.
I only need that for my home-city, because of find an error there will be
hard to do ....

Regards Broesel

Timmy

  • TodayPlus Veteran
  • *****
  • Posts: 640
Hourly Forecast
« Reply #35 on: February 23, 2005, 06:20:07 AM »
Quote from: "Broesel"
Quote from: "Timmy"

•  Clicking on TpHRForecast.exe gives the error report: “Could not open hourf.txt”;
•  Renaming hourf1.txt into hourf.txt gaves he same error report;
•  Putting TpHRForecast.exe in the same directory as the hourf1.txt gaves the same error report;

Timmy, I think this is still a problem with your basepath.
Try to set it to Program files\TodayPlus (or your rigth path to TodayPlus)

Broesel,

My basepath is set in the config.exe as: Program files\TodayPlus, so that's not the problem. For me, I think there's an error in TpHRForecast.exe. I think this because this program does it's work by putting the different vars correctly in the Registry in the 'vars' department. Am I right?  


Quote from: "Broesel"
Quote from: "Timmy"

• For City1:
“Temperature”:   C1t1_1   …..    C1t1_24
“Temperature”:   C1t2_1   …..    C1t2_24
“Feels like”:     C1f1_1   …..    C1f1_24
“Feels like”:     C1f2_1   …..    C1f2_24
… and so on  to City5

Are your really sure, you want that for all cities ? As far as I can see,
the exe writes 12 Registry-Keys for any hour, so 24 hours would be
288 Keys and that for 5 cities would be 1440 Registry-Keys.
I only need that for my home-city, because of find an error there will be
hard to do ....


Broesel,

What my thoughts are after testing uk_skinners newest program:

•  The first day of the first city gives 24 "Temperatures" and 24 "Feels like's". Together 48 vars. I'm going to use all those vars in my skinfile.
•  The second day of the first city gives 24 "Temperatures" and 24 "Feels like's". Together 48 vars. For the moment I'm not implementing them in my skin. It's just for testing and for the fun. Maybe later I can use what I learn here.
•  I have five cities, so I'm realy using 5x48= 240 different vars (registry-keys).
•  To get the right pics on the right places I need 24 instruction-sections for 'Temperature' and 24 instruction-sections for 'Feels Like'. I use, among: 'C%var1%t1_1.png' (for the first Temperature of the first city). And I hope you or other members will help me in writing an example of those textlines..

Do I see things wrong? Please, let me know!!

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

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
Hourly Forecast
« Reply #36 on: February 23, 2005, 06:42:18 AM »
Timmy:

  I will take a look where the error message come from.

Quote
• For City1:

      the buffered text for Temperature is: City1HRt1.txt and City1HRt2.txt


Question:  Why do you need two .txt for the same city?  The PHP will give all the information from one downloaded.   It is TpHRForecast.exe to put the information you need into registry key.

Quote
For City1:

      “Temperature”: C1t1_1 ….. C1t1_24
      “Temperature”: C1t2_1 ….. C1t2_24
      “Feels like”: C1f1_1 ….. C1f1_24
      “Feels like”: C1f2_1 ….. C1f2_24
      … and so on to City5


Question:  I thought you only wish to have 24 hours, right?  Then, isn't it supposedly to be : C1t_1 - C1t_24?  for City1 temperature hour 1 - hour 24?


Also, the number is F not C and this number will not be converted into C in TP unless you have the skin codes to do the conversion.  Alternatively, I can let exe to do the conversion for you before writting them into registry.

Broesel

  • TodayPlus Veteran
  • *****
  • Posts: 595
Hourly Forecast
« Reply #37 on: February 23, 2005, 06:54:58 AM »
Quote from: "Timmy"
Broesel,

What my thoughts are after testing uk_skinners newest program:

•  The first day of the first city gives 24 "Temperatures" and 24 "Feels like's". Together 48 vars. I'm going to use all those vars in my skinfile.
•  The second day of the first city gives 24 "Temperatures" and 24 "Feels like's". Together 48 vars. For the moment I'm not implementing them in my skin. It's just for testing and for the fun. Maybe later I can use what I learn here.
•  I have five cities, so I'm realy using 5x48= 240 different vars (registry-keys).
•  To get the right pics on the right places I need 24 instruction-sections for 'Temperature' and 24 instruction-sections for 'Feels Like'. I use, among: 'C%var1%t1_1.png' (for the first Temperature of the first city).


O.K. so I tested another version from TpHour.exe :oops:

@uk_skinner:would you send me the cpp-files from the changed exes ?

Regards Broesel

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
Hourly Forecast
« Reply #38 on: February 23, 2005, 07:03:46 AM »
broesel:

   No problem, you can have any cpp.  I will send it to you after Timmy testing.

  But this one is not a "different" version, it is more like Timmy's version.  He only wished to use temperature and feel like from hourly forecast.

Broesel

  • TodayPlus Veteran
  • *****
  • Posts: 595
Hourly Forecast
« Reply #39 on: February 23, 2005, 07:07:00 AM »
Quote from: "uk_skinner"
broesel:

   No problem, you can have any cpp.  I will send it to you after Timmy testing.

  But this one is not a "different" version, it is more like Timmy's version.  He only wished to use temperature and feel like from hourly forecast.


I see, so if it works, I will give it a try and try to help Timmy to get the
codelines work.

Regards Broesel

Timmy

  • TodayPlus Veteran
  • *****
  • Posts: 640
Hourly Forecast
« Reply #40 on: February 23, 2005, 08:58:27 AM »
Quote from: "Broesel"
I see, so if it works, I will give it a try and try to help Timmy to get the codelines work.

Regards Broesel


Broesel,

That's very generous! On the forehand: thanks!

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

Timmy

  • TodayPlus Veteran
  • *****
  • Posts: 640
Hourly Forecast
« Reply #41 on: February 23, 2005, 02:14:15 PM »
Uk_skinner,

Thank you for your second version of your new program TpHRForecast.exe. In the meantime I've tested your new program.

Test results:
•  There's only one (thanks!) textline for each city in Radar.exe to get the hourly forecast text in the buffer-directory:
    SURL=http://www.tpfans.com/rss/weather2.php?Citycode=NLXX0015
    STOR=\Program Files\TodayPlus\Buffer\City1HR.txt
    FORM=
and it's doing its work perfect. The corresponding name of the buffer-directory is:  City1HR.txt. That's OK, too.
•  The TpHRForecast.exe is working very fast. In a split second the message "Done" is on my screen. So: OK!!
•  The vars of the 24 hours of every city are in the registry, 'for 'Temperature'as well as for 'Feel like'. Also: OK!

One wish remains:
•  The vars for City1 are all OK:  C1t1_1  ...  C1t1_24. But the other cities have a part in the vars from which  I wish they could be changed:
    the vars in city2 are now C2t21_1 and they must be  C2t
1_1
the vars in city3 are now C3t31_1 and they must be  C3t1_1
the vars in city4 are now C4t41_1 and they must be  C4t1_1
the vars in city5 are now C5t51_1 and they must be  C5t1_1[/list]That number '1' represents the first 24 hours. In the future (not now!!) I think I also shall use the second 24 hours, and in that case the '1' will be a '2', representing the second 24 hours.

Thanks, Uk_skinner!
Timmy[/color]
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
Hourly Forecast
« Reply #42 on: February 23, 2005, 02:25:11 PM »
Quote
• The vars for City1 are all OK: C1t1_1 ... C1t1_24. But the other cities have a part in the vars from which I wish they could be changed:

      the vars in city2 are now C2t21_1 and they must be C2t1_1
      the vars in city3 are now C3t31_1 and they must be C3t1_1
      the vars in city4 are now C4t41_1 and they must be C4t1_1
      the vars in city5 are now C5t51_1 and they must be C5t1_1



Ok, I see.....

I can do that.  But oftenly,  the hourly forecast were not up to full 48 hours.

Timmy

  • TodayPlus Veteran
  • *****
  • Posts: 640
Hourly Forecast
« Reply #43 on: February 23, 2005, 02:31:22 PM »
Quote from: "uk_skinner"
......  But oftenly,  the hourly forecast were not up to full 48 hours.

Uk_skinner,

That's right. The last four or five hours of the 48 hours serie are missing. But that's no problem for this moment, because for now I'm happy with the coming 24 hours!!!

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

Timmy

  • TodayPlus Veteran
  • *****
  • Posts: 640
Hourly Forecast
« Reply #44 on: February 23, 2005, 04:14:18 PM »
Uk_skinner,

I've just tested the third version of your new program, called TpHRForecast.exe.

Test results:
•  It's working realy fine now. I've met no problems at all. So it's OK now!!
• Your program called TpHRFkey is still working well. No problems.

Wishes:
•  NO MORE WISHES! THANKS!!!

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