cloudy

Author Topic: clientrawdriven page  (Read 10482 times)

0 Members and 1 Guest are viewing this topic.

Offline carterlake

  • Tom Chaplin
  • Posts: 2,273
  • Carter Lake, Iowa USA
    • Carter Lake, Iowa Weather
Re: clientrawdriven page
« Reply #45 on: May 23, 2006, 05:54:25 PM »
I'd missed that bit of the thread and I hadn't seen that style of JPGraph used before. I've been playing with JPGraph on another project, but more to plot data from MySQL rather than trying to get stunning looking graphs.

JPgraph does all the work... it's suprisingly little code.

WD; Davis VP2 6153; Quickcam for Notebooks Pro; Boltek w/ Nexstorm; GRLevel3; Live NOAA radio

Offline administrator

  • Administrator
  • Posts: 10,230
  • Get answers to your questions - use Forum SEARCH!
  • Blackpool, UK
    • Weather-Watch.com
Re: clientrawdriven page
« Reply #46 on: May 23, 2006, 06:40:18 PM »
It is amazing how little code you need to get a graph. The graphs I was doing were multi-variable comparisons and the code was pretty complex because of the calculations I had to do to calculate each data point, but once I had the data in the arrays it was only a few lines to plot it.

One problem I had and never solved was getting a custom x-axis grid spacing. I was doing a time-series graph and wanted a grid line every 'x' hours, but whatever I tried it always wanted to make up it's own mind about how far apart the grid lines were. As I wanted to look at the data at specific hour times, say every 3 hours, that was much more difficult when it would only draw a grid line every 20 hours #-o
Chris
Weather Forum Administrator

Offline Beeker425

  • Posts: 36
  • Kirkland, Washington USA
    • KirklandWeather.com
Re: clientrawdriven page
« Reply #47 on: July 05, 2006, 04:54:06 PM »
The graphs are pretty cool. How hard was it for folks to convert from the Metric settings?

Offline administrator

  • Administrator
  • Posts: 10,230
  • Get answers to your questions - use Forum SEARCH!
  • Blackpool, UK
    • Weather-Watch.com
Re: clientrawdriven page
« Reply #48 on: July 06, 2006, 10:16:33 AM »
How hard was it for folks to convert from the Metric settings?

Just bite the bullet and learn metric instead :wink:
Chris
Weather Forum Administrator

Offline carterlake

  • Tom Chaplin
  • Posts: 2,273
  • Carter Lake, Iowa USA
    • Carter Lake, Iowa Weather
Re: clientrawdriven page
« Reply #49 on: July 06, 2006, 10:51:09 AM »
The graphs are pretty cool. How hard was it for folks to convert from the Metric settings?

Fairly easy... i have a link on my website where you can download the converted....

http://members.cox.net/carterlakeweather/phpgraphs.zip

At some point, i need to go back and make a config file so you don't have to change the info on each graph.

WD; Davis VP2 6153; Quickcam for Notebooks Pro; Boltek w/ Nexstorm; GRLevel3; Live NOAA radio

Offline Chipperdog

  • Posts: 307
  • Reading, PA USA
    • Chipperdog Weather
Re: clientrawdriven page
« Reply #50 on: July 08, 2006, 02:38:15 AM »
The graphs are great and very easy to do...I just started and don't have any on my site yet.  I never saw the array_walk function but I did the following to convert metric on the temp high/low graph:

  // create array of max-temps from clientrawdaily and convert C->F
 // positions 1 - 31 are daily high temperatures last 31 days
   
   $y = array();
   for ($i = 1; $i < 32; $i++) {
      $temp_hi = round(($clientrawdaily[$i] * 1.8 + 32),1);
      array_push($y, $temp_hi);
   }   
   
   $datax = $y;


Does anyone know how to change the jpgraph "drop shadow" for backgrounds other than white?  I know how to change the shadow color but the upper right and lower left corners are white.  I don't see anyway to make these the color of the background.  You can see this on the Carter Lake site (Awesome site btw) on his graph/stats page.  The background is light blue and you can see the white parts of the drop shadow that need to be light blue for the Shadow to have the full effect.



Offline Stevec4

  • Posts: 289
  • Boston MA
    • My Current Weather
Re: clientrawdriven page
« Reply #51 on: July 10, 2006, 04:42:35 PM »
Hi guys been playing with these files converting all the pages to just imperial values, and was wondering if there was a list of all the variables that I can use from the client.txt files.??
any help with that would be appreciated also I was wondering if the Bouy.php file shown on Pinto's site was available on the board anywhere.

Thanks to all who have put these php files together.

Steve

Offline saratogaWX

  • Posts: 4,672
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
    • Saratoga Weather
Re: clientrawdriven page
« Reply #52 on: July 10, 2006, 04:53:23 PM »
The docs on what's in clientraw*.txt are in text files in the wdisplay directory.  You can also use Kevin's WD ClientRaw decoder PHP to see your files:
http://www.tnetweather.com/experimental.php which shows the current values and names of the data for clientraw.txt clientrawextra.txt and clientrawdaily.txt.

The Buoy mesomap is available at http://saratoga-weather.org/scripts.php#buoydata

Pinto was the first adopter of the new script in Europe :-)

Best regards,
Ken
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline Stevec4

  • Posts: 289
  • Boston MA
    • My Current Weather
Re: clientrawdriven page
« Reply #53 on: July 10, 2006, 05:56:25 PM »
Thanks Ken these are exacly what I needed.

Steve

btw
Great selection of your scripts thanks for sharing
« Last Edit: July 10, 2006, 05:58:40 PM by Stevec4 »

 

cumulus