pinto
Weather Guru

OfflineLocation: Belgium Station Type: DAVIS VP2+ wireless (Daytime FARS)
Posts: 638 Local Time: Saturday 17:15
|
 |
« on: October 09, 2007, 06:59:13 PM » |
|
new(old)toy using (thank you brian) clientrawhour.txt
this is again some basic package (someone will turn it in to realy usable ? only metric so far)
you can see those in action at my homepage
|
|
|
« Last Edit: October 23, 2007, 06:57:18 AM by pinto »
|
Logged
|
|
|
|
Bashy
Weather Controller
   
OfflineLocation: Desborough, UK Station Type: Oregon WMR928NX, Rain Duration, Solar and UV
Posts: 5,754 Local Time: Saturday 14:15
Simon
|
 |
« Reply #1 on: October 09, 2007, 07:32:47 PM » |
|
Hi Pinto
I would like to have a play with this, are there any instructions please?
|
|
|
|
|
Logged
|
Regards Bashy 
|
|
|
pinto
Weather Guru

OfflineLocation: Belgium Station Type: DAVIS VP2+ wireless (Daytime FARS)
Posts: 638 Local Time: Saturday 17:15
|
 |
« Reply #2 on: October 09, 2007, 08:10:35 PM » |
|
Hi Pinto
I would like to have a play with this, are there any instructions please?
inside the zip you find 4 files and the library inside the 4 files you have to change the hostlocation to point to the folder where your clientraw-files are that are the basics you have to play with it to translate the titles, and some calculation function to change from c to f or hPa to inHg) like I said, this is very basic, need someone to play with it to make it really usable Jozef
|
|
|
|
|
Logged
|
|
|
|
Bashy
Weather Controller
   
OfflineLocation: Desborough, UK Station Type: Oregon WMR928NX, Rain Duration, Solar and UV
Posts: 5,754 Local Time: Saturday 14:15
Simon
|
 |
« Reply #3 on: October 09, 2007, 08:13:04 PM » |
|
I just got my temp to work, when i got the email saying you replied  Cheers m8 much appreciated http://www.bashys-place.com/weather/sparkline/temp.phpjust need to sort the others an implement, perhaps tomorrow now  Thanks again
|
|
|
|
|
Logged
|
Regards Bashy 
|
|
|
Bashy
Weather Controller
   
OfflineLocation: Desborough, UK Station Type: Oregon WMR928NX, Rain Duration, Solar and UV
Posts: 5,754 Local Time: Saturday 14:15
Simon
|
 |
« Reply #4 on: October 09, 2007, 08:31:31 PM » |
|
Just been trying to figure out how to lower the data a little as its cramped to the title. I noticed you have managed it but i cannot for the lif of me see where to change it I thought it was in the sparkline.php as theres some font and stuff in there? see my humidity please http://www.bashys-place.com/weather/sparkline/hum.php
|
|
|
|
|
Logged
|
Regards Bashy 
|
|
|
pinto
Weather Guru

OfflineLocation: Belgium Station Type: DAVIS VP2+ wireless (Daytime FARS)
Posts: 638 Local Time: Saturday 17:15
|
 |
« Reply #5 on: October 09, 2007, 08:45:32 PM » |
|
do not change anything in the library-files please, if you have to change something about the look and feel you have to do it in the 4 files themselves
$sparkline->SetPadding(5); // setpadding is additive
|
|
|
|
|
Logged
|
|
|
|
Bashy
Weather Controller
   
OfflineLocation: Desborough, UK Station Type: Oregon WMR928NX, Rain Duration, Solar and UV
Posts: 5,754 Local Time: Saturday 14:15
Simon
|
 |
« Reply #6 on: October 09, 2007, 08:47:08 PM » |
|
Ah, excellent, that makes sense, thanks a lot 
|
|
|
|
|
Logged
|
Regards Bashy 
|
|
|
pinto
Weather Guru

OfflineLocation: Belgium Station Type: DAVIS VP2+ wireless (Daytime FARS)
Posts: 638 Local Time: Saturday 17:15
|
 |
« Reply #7 on: October 09, 2007, 08:57:50 PM » |
|
if you want to know more about sparklines PHP http://sparkline.org/
|
|
|
|
|
Logged
|
|
|
|
edje1205
edje
Rain Maker
 
OfflineLocation: Zaandam Holland, the Netherlands Station Type: WS2010
Posts: 1,350 Local Time: Saturday 15:15
|
 |
« Reply #8 on: October 09, 2007, 09:24:37 PM » |
|
Got it to work  thanks Joske !
|
|
|
|
|
Logged
|
|
|
|
Bashy
Weather Controller
   
OfflineLocation: Desborough, UK Station Type: Oregon WMR928NX, Rain Duration, Solar and UV
Posts: 5,754 Local Time: Saturday 14:15
Simon
|
 |
« Reply #9 on: October 10, 2007, 07:34:28 PM » |
|
Hi pinto, finally got mine installed http://www.bashys-place.com/weather/I follow your code to implement it, i hope you dont mind Thanks again for your help, much appreciated 
|
|
|
|
|
Logged
|
Regards Bashy 
|
|
|
pinto
Weather Guru

OfflineLocation: Belgium Station Type: DAVIS VP2+ wireless (Daytime FARS)
Posts: 638 Local Time: Saturday 17:15
|
 |
« Reply #10 on: October 10, 2007, 07:51:11 PM » |
|
those lines disappearing sometimes if (isset($_GET['m']) && $_GET['m'] == '0') { f (isset($_GET['m']) && $_GE $sparkline->Render(200, 50); } else { $sparkline->SetLineSize(2); // for renderresampled, linesize is on virtual image $sparkline->RenderResampled(200, 30); }
replace with (there was still to much code from the samples in it) $sparkline->Render(200, 50);
sorry about that, I updated the zipfile in my first post and, I put it here so everybody could use it Jozef
|
|
|
|
|
Logged
|
|
|
|
Bashy
Weather Controller
   
OfflineLocation: Desborough, UK Station Type: Oregon WMR928NX, Rain Duration, Solar and UV
Posts: 5,754 Local Time: Saturday 14:15
Simon
|
 |
« Reply #11 on: October 10, 2007, 07:55:27 PM » |
|
Hi m8 Do you want me to replace all that code with your code? $sparkline->Render(200, 50);
|
|
|
|
|
Logged
|
Regards Bashy 
|
|
|
pinto
Weather Guru

OfflineLocation: Belgium Station Type: DAVIS VP2+ wireless (Daytime FARS)
Posts: 638 Local Time: Saturday 17:15
|
 |
« Reply #12 on: October 10, 2007, 07:59:50 PM » |
|
Hi m8 Do you want me to replace all that code with your code? $sparkline->Render(200, 50); maybe, download the zip in the first page again and translate the titles, then you don't have those disappearing lines anymore
|
|
|
|
|
Logged
|
|
|
|
edje1205
edje
Rain Maker
 
OfflineLocation: Zaandam Holland, the Netherlands Station Type: WS2010
Posts: 1,350 Local Time: Saturday 15:15
|
 |
« Reply #13 on: October 10, 2007, 08:51:20 PM » |
|
Hi Joske, Works fine nice gadget  Question: I try to set the background of the cell from 'white' to 'blue' or 'clouds.jpg' or 'transparent' in sparkline.php but it takes no effect what's the best manner in this case (prefere transparent) http://www.weersverwachtingen.eu/clientraw/index.phpgrtz edje
|
|
|
|
|
Logged
|
|
|
|
pinto
Weather Guru

OfflineLocation: Belgium Station Type: DAVIS VP2+ wireless (Daytime FARS)
Posts: 638 Local Time: Saturday 17:15
|
 |
« Reply #14 on: October 10, 2007, 09:11:14 PM » |
|
sorry, I don't know the answer, I am searching to change the backgroundcolor, but all I can do is make it black EDIT:just found: $sparkline->SetColorHtml('background', '#ddddff'); $sparkline->SetColorBackground('background');
don't know what they do yet, bedtime here
|
|
|
|
« Last Edit: October 10, 2007, 09:20:11 PM by pinto »
|
Logged
|
|
|
|
|