Author Topic: Temperature charts  (Read 45093 times)

Broesel

  • TodayPlus Veteran
  • *****
  • Posts: 595
Temperature charts
« Reply #15 on: February 22, 2005, 03:59:49 PM »
Hey Timmy,

you named the pics for negative values t=1.png .... and so on.

I think it would be easyier to call them in the skin, if you name them
t-1.png, t-2.png ..... because if you do not so, you have to call them via
if, then ... else commands and with that name you can say t%varx%.png


Regards Broesel

Timmy

  • TodayPlus Veteran
  • *****
  • Posts: 640
Temperature charts
« Reply #16 on: February 22, 2005, 04:01:20 PM »
Quote from: "ZapMe1"
"Outstanding" Work once again Mr. TP Artist !!  
Great Job.......!


ZapMe1,

Thank you for your kind words, and specially for your nice Rembrandt van Rhijn smiley!  (Explanation: Rembrandt van Rhijn was one of our greatists painters.) I feel honnered, as you can guess...

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
Temperature charts
« Reply #17 on: February 22, 2005, 04:03:01 PM »
Timmy:

  Do you look like Rembrandt van Rhijn?   :roll:

ZapMe1

  • TodayPlus Veteran
  • *****
  • Posts: 551
Temperature charts
« Reply #18 on: February 22, 2005, 04:22:38 PM »
Timmy,

You do nice work !!  Maybe you are a distant Relative !!!  :wink:
ZapMe1

"The most knowledgable person in the world is not the one who possesses the most knowledge, but the one who surrounds themselves with the greatest number of knowledgable people"

Timmy

  • TodayPlus Veteran
  • *****
  • Posts: 640
Temperature charts
« Reply #19 on: February 22, 2005, 04:23:10 PM »
Quote from: "uk_skinner"
Timmy:

  Do you look like Rembrandt van Rhijn?   :roll:


Uk_skinner,

No, no, no ...  I don't look like Rembrandt, no, no ...   not at all...  But thanks for that nice idea... I can sleep well this night, I'm sure!
 

ZapMe1 didn't ever see me, so his imagination goes FAR ABOVE the reality...


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

Timmy

  • TodayPlus Veteran
  • *****
  • Posts: 640
Temperature charts
« Reply #20 on: February 22, 2005, 04:33:12 PM »
Quote from: "Broesel"
Hey Timmy,

you named the pics for negative values t=1.png .... and so on.

I think it would be easyier to call them in the skin, if you name them
t-1.png, t-2.png ..... because if you do not so, you have to call them via
if, then ... else commands and with that name you can say t%varx%.png


Regards Broesel


Broesel,

These are the tips I'm waiting for!  Thanks for your good suggestion! Keep in mind that I'm a real dummy (I am honnest!), so I need this kind of help! This is the solution for me:  't%varx%.png' and I'm gonna do it that way.

Tomorrow I'll change the names of the pics like you suggested, and upload them.

Thanks again!
Timmy
_________________________________
PS
Sorry Uk_skinner, by re-reading your last thread I saw you already gave that tip, too...  I didn't see it before...
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Timmy

  • TodayPlus Veteran
  • *****
  • Posts: 640
Temperature charts
« Reply #21 on: February 23, 2005, 03:19:58 PM »
@All,

I've renamed all the pic-names:
t-23.png  ...  t40.png for Celcius Temperature
f-23.png  ...  f40.png for Celcius Feels like

t-9.png  ...   t104.png for Fahrenheit Temperature
f-9.png  ...   f104.png for Fahrenheit Feels like

As you can see, I've added 'Feels like' pics. An example ànd the downloads you can find in the first post.

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
Temperature charts
« Reply #22 on: February 27, 2005, 08:23:36 AM »
Timmy:

  Please check this: http://www.tpfans.com/rss/TpTempchart.php?Citycode=NLXX0019&Para=20,20,360,150&U=C

I "stole" this concept from Weather Panel :oops:  :lol: . The idea is to generate a chart image using PHP then you can download the image using the radar.exe

This is still a "draft".  I will try to:

1)  Size adjustable. --> Done Para=x,y,width,height
2)  F or C --> Done U=C
3)  Day of week in other language
4)  Transparency background, then you lay it out on your nice background you created. --> Done
5) temp lable or not lable
6) Hourly temperature chart up to 48 hours? -->Done see below
7) Any other wish?


Yes, you still can use the temp pointers, once the size and position are determined.

Edit:  Hourly temp chart:
http://www.tpfans.com/rss/TpHourChart.php?Citycode=NLXX0019&Para=20,20,360,150&U=C

Broesel

  • TodayPlus Veteran
  • *****
  • Posts: 595
Temperature charts
« Reply #23 on: February 28, 2005, 02:04:12 AM »
Quote from: "uk_skinner"
This is still a "draft".


uk_skinner: This is not a draft, this is .......   whow ......

:D :D :D

Quote
Any other wish?


Can we have wishes after we get new things nearly every day :?: :?:

Thanks this is :P :P :P

Regards Broesel

Timmy

  • TodayPlus Veteran
  • *****
  • Posts: 640
Temperature charts
« Reply #24 on: February 28, 2005, 03:26:57 AM »
Uk_skinner,

I'm realy impressed, again...

Two month ago you started to give us a Chrismas present (EZ_download), and you did'n't stop since that time to give us new presents... Where will this stop???

Compliments!

As I said more: I see you have an inventive mind with brilliant ideas! Good, to have you here.

Thanks!!!
Timmy
________________________________
NB
•  I think this is much easier for skinners than temperatuercharts and temperature points, isn't it?
•  We don't need TpHRForecast.exe, am I right?
•  I have a special place on mu PocketPC screen where I like to have the PHP-temperaturechart. Can you PHP work with certain demensions? Or is ther only one demension?
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Broesel

  • TodayPlus Veteran
  • *****
  • Posts: 595
Temperature charts
« Reply #25 on: February 28, 2005, 04:26:38 AM »
Quote from: "Timmy"

•  I think this is much easier for skinners than temperatuercharts and temperature points, isn't it?


Yes, it is easier :D

Quote
•  We don't need TpHRForecast.exe, am I right?


We don't need id for the temperaturecharts, if you want to display the
temperatures otherwise, you still need it.

Regards Broesel

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
Temperature charts
« Reply #26 on: February 28, 2005, 06:01:30 AM »
broesel and Timmy, thanks. for the good words.  :oops:

Quote
I have a special place on mu PocketPC screen where I like to have the PHP-temperaturechart. Can you PHP work with certain demensions? Or is ther only one demension?


You can specify the dimensions using "Para=".  There are 4 numbers in it.  The first two are offsets of (x,y).  You need some space to have the "number" for the y-axis.  The default is (20,20).  The thrid and forth numbers are (width, height) of the chart.  The  example I gave you was (360x150).  The actual size will be a little biger since the space also needs for the time label at x-axis.  

The width of the chart: x_offset + width + 25 = 20+360 +25 = 405
The height of the chart:y_offset + height + 25 = 20+150+25 = 195

At this moment, the size of font was fixed.  There are only 5 different sizes available in defaul PHP.  The ones I used for "hour" t x-axis in hourly chart was the smallest one.  

To convert to C, you just need to use "U=C", otherwise the default is "F".

Let me know you wish to add other other parameters.

Quote
We don't need id for the temperaturecharts, if you want to display the
temperatures otherwise, you still need it.


broesel, again, you were right.  If you only need the chart, you only need to use radar.exe to download the image.

Edit:

In temperature chart (not hourly), you can spceify the size of the font for "Day of week".  The font size is only 1 - 5.  And the format of DOW (Day of week) can be specified as "X", "XX" or "XXX".  For example:
http://www.tpfans.com/rss/TpTempchart.php?Citycode=NLXX0015&Para=5,5,150,100&U=C&Font=1&DOW=X

Broesel

  • TodayPlus Veteran
  • *****
  • Posts: 595
Temperature charts
« Reply #27 on: February 28, 2005, 02:04:41 PM »
Quote from: "uk_skinner"
The idea is to generate a chart image using PHP then you can download the image using the radar.exe


How do we have to store it as an image  :?:  This is a point, I'm not clear
over. Could you show, how the lines have to be in the radar.txt ?

Regards Broesel

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
Temperature charts
« Reply #28 on: February 28, 2005, 02:21:18 PM »
Quote from: "Broesel"
Quote from: "uk_skinner"
The idea is to generate a chart image using PHP then you can download the image using the radar.exe


How do we have to store it as an image  :?:  This is a point, I'm not clear
over. Could you show, how the lines have to be in the radar.txt ?

Regards Broesel


Sorry, how could I forgot this important thing. :oops:  :roll:  :lol:
Here is an example:

SURL=http://tpfans.com/rss/TpHourChart.php?Citycode=GMXX0039&Para=20,20,200,120&U=C
STOR=\My Documents\Radar\r1.png
FORM=

The image format is png.  And it should have transparency background.

Timmy

  • TodayPlus Veteran
  • *****
  • Posts: 640
Temperature charts
« Reply #29 on: February 28, 2005, 02:27:29 PM »
@Uk_skinner,

I've tested every changeble item of this line:
http://www.tpfans.com/rss/TpTempchart.php?Citycode=NLXX0015&Para=5,5,150,100&U=C&Font=1&DOW=X
and saw that everything was working well!

@Broesel,

Can you check if my thoughts are right?
•  in my skintextlines I write the textlines to put down the temperaturechart-pic, downloaded by radar.
•  the inner site of my temperaturebackground-pic I make transparant
•  in my skintextlines I write the next textlines, to put down the temperaturebackground-pic
•  on my PPC-screen I see uk_skinners temperaturechart and my backgroundpic is as a painting list around it

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