This new feature will be done by the combination of PHP script, radar.exe and small exe.
Here is the idea and process.
1) Use PHP script to extract the hourly forecast information from weather.com (http://www.weather.com/activities/other/other/weather/fcst-hrly.html?locid=20850)
2) Use radar.exe to download a text format file (hfore.txt) to the Buffer folder.
3) Use a small exe (TpHourFore.exe) to get all the information into either "HKEY_CURRENT_USER,L"Software\\SRSSoft\\TodayPlus\\var" or "HKEY_CURRENT_USER,L"Software\\SRSSoft\\TodayPlus\\text"
4) In the TP skin, then you can use "text" code to display "text" information and for weather icon, use "calcvar" to retrieve the icon number then display in TP.
Here is an example, and the rest is up to skinner to "expand it".
Alternatively, all information also can be download as RSS format and skinner can use RSS to display text information.
Quote from: uk_skinnerThis new feature will be done by the combination of PHP script, radar.exe and small exe.
Whow, I'll love it :D
Very nice work again .... (When can we test it :oops: :?: )
Regards Broesel :lol:
Broesel:
I just finished the "proof of concept". The PHP, exe were made and I will try to make the whole thing together.
Quote from: uk_skinnerBroesel:
I just finished the "proof of concept". The PHP, exe were made and I will try to make the whole thing together.
Sorry, I understood it was ready for use :oops:
Regards Broesel
Broesel:
No problem at all.
There are some details I need to pin down.
For example:
You guys like the 24 hour time format and USA users prefer 12-hour (AM/PM) format. Also I need to try to see I can do it from de.weather or fr.weather sites then I don't need do the conversion/translation. If that is not possible then I have to do the conversion/translation.
I was too exciting that another new feature is possible. . :oops: So I decided to post the concept first. I guess this hourly forecast can go very further, perhpas at least 24 hours.
broesel, is this the hourly page for your city:
http://de.weather.com/weather/hourbyhour/GMXX0039
This is different from the one I did but it should not be a probelm.
Quote from: uk_skinner
I was too exciting that another new feature is possible. . :oops: So I decided to post the concept first. I guess this hourly forecast can go very further, perhpas at least 24 hours.
Well it is a really good idea again and you know how I love to try your
very good products, so I think, it was me, that was too early.
24 hours would be nice ....
And if you need soemthing, you know my address ...
Regards Broesel
Edit:
Quotebroesel, is this the hourly page for your city:
http://de.weather.com/weather/hourbyhour/GMXX0039
Oh, well, that was what I tried first when I read your post ...
Yes, that is the forecast for my city
I almost complete the package for getting hourly forecast from weather.com and you can see from : http://www.jhollin1138.com/forums/viewtopic.php?p=13100#13100.
Broesel also is testing the one for German. The source is from de.weather.com.
To order being called within TP, all the information are required to be written into registry key. At this point, there are about 10 items for each hour. The total numbers will be up to 120 items.
So if you would like to have this feature, please let me know. I will email you or PM you the whole package. I even have a small exe to help you to remove the registry key you put in for hourly forecast if you decide not to use them later. A friendly remindar: please be aware of the risk when you work with registry key and back up your PPC before you try it.
Quote from: uk_skinnerI almost complete the package for getting hourly forecast from weather.com and you can see from : http://www.jhollin1138.com/forums/viewtopic.php?p=13100#13100.
Broesel also is testing the one for German. The source is from de.weather.com.
To order being called within TP, all the information are required to be written into registry key. At this point, there are about 10 items for each hour. The total numbers will be up to 120 items.
So if you would like to have this feature, please let me know. I will email you or PM you the whole package. I even have a small exe to help you to remove the registry key you put in for hourly forecast if you decide not to use them later. A friendly remindar: please be aware of the risk when you work with registry key and back up your PPC before you try it.
I'm in. :D Can you email me the package? Thanks..
da Geeze..
Another craze idea......12 hourly forecast temperature chart...
Quote from: uk_skinnerAnother craze idea......12 hourly forecast temperature chart...
Well, we can get nearly everything, when we get it from the registry, can't we :?: :lol: :lol: :lol:
Regards Broesel
UK, That Rocks!!! I definately want to explore this.... as soon as I finish this other project that's staring me in the face. :lol:
Quote from: uk_skinnerAnother craze idea......12 hourly forecast temperature chart...
Uk_skinner,
I like that idea!
I think I can make a new little pic with the temperatures in it. Something like I've done with the compass. For this reason, the temperatures must be put in the 'var' directory of the registry and must have names like t1, t2 ... t12 (or something like that). Is this possible for you? Or do you have better ideas? Please, let me know, before I begin with drawing the temperature chart.
@Broesel: What dimensions (in pixels) do you prefer?
There are so many new things at the moment, so, can you, please, make a new thread with the title 'Temperature'? Just to not confuse me and all the newbe-guestst who are watching/visiting this forum.
Timmy
Quote from: Timmy
@Broesel: What dimensions (in pixels) do you prefer?
Thanks for asking me, but I don't have any preferences (still under
cunstruction with all new things :wink: )
So do what you like, I think everybody will love, what you do :D
Regards Broesel
QuoteI think I can make a new little pic with the temperatures in it. Something like I've done with the compass. For this reason, the temperatures must be put in the 'var' directory of the registry and must have names like t1, t2 ... t12 (or something like that). Is this possible for you? Or do you have better ideas? Please, let me know, before I begin with drawing the temperature chart.
Timmy:
The temperatures are in var directory of registry key. The name is h1temp, h2temp.....h12temp.
Quote from: uk_skinnerQuoteI think I can make a new little pic with the temperatures in it. Something like I've done with the compass. For this reason, the temperatures must be put in the 'var' directory of the registry and must have names like t1, t2 ... t12 (or something like that). Is this possible for you? Or do you have better ideas? Please, let me know, before I begin with drawing the temperature chart.
Timmy:
The temperatures are in var directory of registry key. The name is h1temp, h2temp.....h12temp.
Uk_skinner,
Aha... so it's possible to do something with a temperature chart! I'll see what I can do.
Uk-skinner, I suppose that the temperatures are h1temp
xx, h2temp
xx and so on. What are you putting int the 'xx'? And what do you put in the 'xx' when the temperature is negative?
BTW: Is this the most easy way for us to put the
vars in our skinfiles? I'm not a good textline writer, so I like to know if the things are possible to do...
Timmy
____________________________________
PS:
Uk_skinner, can you split your thread in a new one?
QuoteUk-skinner, I suppose that the temperatures are h1tempxx h2tempxx and so on. What are you putting int the 'xx'? And what do you put in the 'xx' when the temperature is negative?
Don't get it.
The "h1temp" is the name of the kwy and the temperature is the value of the key. See capture. Use "calcvar" you can get the number out. If it is negative, it will be negative.
Quote from: uk_skinnerQuoteUk-skinner, I suppose that the temperatures are h1tempxx h2tempxx and so on. What are you putting int the 'xx'? And what do you put in the 'xx' when the temperature is negative?
Don't get it.
The "h1temp" is the name of the kwy and the temperature is the value of the key. See capture. Use "calcvar" you can get the number out. If it is negative, it will be negative.
Uk_skinner,
All wright, I got it!!
I think I'm doing the next thing:
• there's an unchanging border-pic
• in that pic are 12 lillte/small pics (points),each representing the temperature.
• the 12 little small pics are called from the vars that are put in the registry
Do I forget something? Is this possible?
Timmy
Timmy:
Yes, a fixed border image of chart would be nice. If you can have 12 tickers at x-axis then time point can be writen under the ticker. Y-axis is not easy because each time the range will be different. The maximum and minimum can be displayed.
What kind of image you have in mind? The number of temperature can be displayed jsut use text code, since you can assign a var to the temperature. The position of the image also was calculated within TP. What happened was the range (maximum and minimum of temp) also were writen into registry key. So I could call them out and calculate the position for each temp. For each one I just use one image to represent it.
Quote from: uk_skinnerTimmy:
Yes, a fixed border image of chart would be nice. If you can have 12 tickers at x-axis then time point can be writen under the ticker. Y-axis is not easy because each time the range will be different. The maximum and minimum can be displayed.
@
Uk_skinner and
all the other members,
My intention is to make some different thermo-backgrounds, and this is my first try-out.
=> The dots I made later, but ther aren't in the pic.
=>The line is within the thermo-background.
(http://todayplus.jhollin1138.com/files/timmy/Thermo-back.jpg)
Every temperature has it's own little pic.
(http://todayplus.jhollin1138.com/files/timmy/Th-15.jpg) This is the example pic for -15° C
If you have wishes or good tips, please give them!Timmy
Timmy:
Creative, brilliant idea!!!! :clap: :approve:
I assumed the line represented frozen point, right? How about in summer? Or some area that never reach forzen point, such as Hawaii??? :lol:
Quote from: uk_skinnerTimmy:
Creative, brilliant idea!!!! :clap: :approve:
I assumed the line represented frozen point, right? How about in summer? Or some area that never reach forzen point, such as Hawaii??? :lol:
@Timmy: Nice start, colors and scale representing the temperatures seems
to look good for me.
@uk_skinner: also in summer ther are some areas, that have temperatures
near or under the frozen point. What about the northpole ? :lol: :lol: :lol:
Regards Broesel
You got that right...... :oops: 8) :?
Quote from: uk_skinnerTimmy:
Creative, brilliant idea!!!! :clap: :approve:
I assumed the line represented frozen point, right? How about in summer? Or some area that never reach forzen point, such as Hawaii??? :lol:
Uk_skinner,
Don't talk about Hawaii or other beautifull and warm countries... That gave me some jealous feelings... We had two mostly water-cold and light freezing days here in the Neherlands, and I wish the summer was back here...
Timmy
Quote from: Timmy
Don't talk about Hawaii or other beautifull and warm countries... That gave me some jealous feelings... We had two mostly water-cold and light freezing days here in the Neherlands, and I wish the sumeer was back here...
Me too, having snow and cold weather this and next week, uk_skinner,
can you change the weathericons and the temperature in the php-script
to sunny and warm, please :wink: :wink:
Regards Broesel
broesel:
Compare to your places, mine is a little bit better but it is far from warm..
I can do it if you fell better... :lol: :lol:
Quote from: Broesel@Timmy: Nice start, colors and scale representing the temperatures seems to look good for me.
Regards Broesel
@
Broesel and @
uk_skinner,
Thank you for your response. Now I know I can begin the job.
Timmy
@ALL,
Again I need somebodies help.
What names must I give to the different temperature pics?
1.png, 2.png end so on...
... is no longuer possible, cause that are the names of the winddirection pics.
Anybody a good suggestion?!?
Timmy
Why not t1.png and t2.png and so forth..??
Quote from: Timmy@ALL,
Again I need somebodies help.
What names must I give to the different temperature pics?
1.png, 2.png end so on...
... is no longuer possible, cause that are the names of the winddirection pics.
Anybody a good suggestion?!?
Timmy
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. :?:
Quote from: Timmy@ALL,
Again I need somebodies help.
What names must I give to the different temperature pics?
1.png, 2.png end so on...
... is no longuer possible, cause that are the names of the winddirection pics.
Anybody a good suggestion?!?
That's right, you cannot use that numbers. And another problem is,
you cannot use names like -10.png (for the negative temperatures in
Celsius). So what can we do ?
I had a similar problem with the barmeter-temperature i'm playing with.
The barmeter does not show a bar, if the temperature is negative.
So I did a calculation for that case, assuming values from -40 to +40 °C.
I added 40 to every temperature-value so I got values from 0 to 80
representing the temperatures. If you did that, that would not fit again.
So what if you added 460 to the value, you would get names from
500 to 580 (that are values, that are not crossing the winddir-names).
Only an idea, let's hear, what uk_skinner thinks of this problem.
Regards Broesel
Edit: o.K. was too slow :oops:
Of course the solution from uk_skinner is the best (didn't think that right over)
QuoteOf 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:
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.
QuotePS
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:
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]
QuoteSURL=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]
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
Quote from: BroeselQuote 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: BroeselQuote 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
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.
QuoteFor 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.
Quote from: TimmyBroesel,
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
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.
Quote from: uk_skinnerbroesel:
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
Quote from: BroeselI 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
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 C3t
1_1
the vars in city4 are now C4t41_1 and they must be C4t
1_1
the vars in city5 are now C5t51_1 and they must be C5t
1_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]
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.
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
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