How to setup jpgraphs and wxgraphs

I have 5 graphs working great for almost a year now, and they still are. Now im working on setting up the 24 UV and 7 day UV graphs and not having much luck. Im getting the same error for both graphs. The file attached is the 7-day uv and the error is on line 44… $graph->SetScale(“textlin”);

http://www.snoqualmieweather.com/uv_7days.php

If i can get this one working, im sure the 24 uv will work too, cause they both have the same error.
Thanks, Mark.

The uv graphs should look like these…


uv-7days.txt (3.88 KB)

Did you try removing that line. I don’t have that line in any of my OFC scripts.

Chuck

Mark my JPGraph package has both these graphs in it. You can download the entire package here. I realise you’re using OFC charts but hope this code might help…

Stuart

Chuck helped me get the 2 graphs going lastnight, Thanks Stuart.

I browsed through the 16 pages here & I didn’t see if this was answered or not. I just set everything up today and it is not producing graphs:
http://www.cavecountryweather.com/Test.php
Any Ideas?

Work the errors one by one:

Warning: include(graphlang.php) [function.include]: failed to open stream: No such file or directory in /virtual/users/e15586-16411/web/wxgraphs/graphsconf.php on line 101

Where is your graphlang.php file?

:oops: Uh… It was in the recycle bin :oops: #-o. I thought it was one of the unneeded config files.
It is now in the wxgraphs folder.

Hmmm, well that’s a step forward, now it’s creating an image but it’s “unable to find jpgraph files” so I think you have more file location issues :frowning:

If I use these settings:

$hostloc = "${WEBROOT}/";                   //must have trailing slash
$jploc = "${WEBROOT}/jpgraph-3.0.5/src/";   //must have trailing slash

I get the first picture below (JP Graph1)

If I use these settings:

$hostloc = "http://www.cavecountryweather.com/";                   //must have trailing slash
$jploc = "http://www.cavecountryweather.com/jpgraph-3.0.5/src/"; 

I get the second picture below (JP Graph2). Which one is moving in the right direction?


I think the first one.

Ok It is set up like the first example. Now when I try to go directly to the PHP file: http://www.cavecountryweather.com/wxgraphs/rain_1hr.php
This error message used to appear: “Chosen locale file (“lang/en.inc.php”) for error messages does not exist or is not readable for the PHP process. Please make sure that the file exists and that the file permissions are such that the PHP process is allowed to read this file.”

I could not find the “lang/en.inc.php” file anywhere, so I went back to the original zip file and for some reason the entire “lang” folder was not unzipped or installed. It is now, and I am getting a new error. It states that the /ttf/hardpath.php file is not readable or does not exist. It does exist because I can see it. http://www.cavecountryweather.com/jpgraph-3.0.5/ttf/hardpath.php
Any ideas?

Well, I just repeated step #9

9. Edit jpg-config.inc.php in the jpgraph-x.xx/src folder:
a. Uncomment the line that begins with DEFINE(“TTF_DIR”,". (Line 40 in my editor)
b. Replace the default path with the result of browsing to hardpath.php.

And now it is working :dontknow: :smiley:
Thanks for the help.

Good job!

I used them to update the Weather Graphs page. This was also my first shot at really messing around with tables.
http://www.cavecountryweather.com/graphs.php

I am currently working on updating my present graphs page to a new template based package. http://tokoroa.dyndns.org/wxgraphs.php not displaying correctly at the moment while I work on the scripts.
once I finish the package you will be able to take the ZIP file unpack it, upload to your server and it will work (Of course there will be the obligatory change of a couple of variables in the config file) It will work for all carter lake metric template sites.

You can see the pages in development at http://tokoroa.dyndns.org/wxgraphs2.php#Solar I am currently up to Humidity.

I have yet to investigate the distribution of JPGraph within the archive I intend to make available, so there may be some install requirements for this yet.

As an adjunct I am also working on a higher resolution set of graphs for our local groups comparison page http://tokoroa.dyndns.org/wxcomparision.phpusing WD custom log files, giving graphs with 5 minute resolution instead of hours. We expect to have six stations in a area of about 20km sq soon, something of an achievement really for a town of 16,000.

My weather position, for me it is present the best data in the best understandable way, but having it as accurate as possible. I am not a storm chaser or even a over committed weather man, just a IT geek with an interest.

Wow! Thanks to the concise instructions, as well as looking over the previous posts, the graphs were setup in a jiffy.

Graphs Page

Thank you!

I would like to ask though…

My 31 day avg wind dir plot is empty (as is Stuarts’ here)

Is there an easy fix for this?

Thank you,

Although I don’t use the last 31 Days Averaged Direction graph on my site, I have it on my test page, and mine is also all at 0 deg. Running my clientrawdaily.txt file through the TNET Weather Station’s clientraw data parser, I see that the data fields 155 to 186 are all reading -0.0 deg. All other graphs seem to be running OK.

Has something changed in the clientrawdaily.txt format?

This has been fixed with the latest (37P-build 12) release.

[s]http://www.weerstationmedemblik.nl/wxgraphs/solar_7days.php whats wrong ? it works perfectly for a few days ago and now its broken :frowning: Nothings changed

same overhere http://www.weerstationmedemblik.nl/overzicht-31-dagen.html[/s]

found the problem, the extra raw files were corrupt. fixed.

I accidently deleted the jpgraph files from my web server whilst makimg some changes, no problem I thought as I still had the files stored on my pc. I uploaded them again but now have this error showing, see herehttp://www.weybourneweather.co.uk/wxcharts.php.
The ttf directory seems to have disappeared and I can’t find it anywhere, can any one point me as to where to find these files, they are not on my local jpgraph file on my pc. I must have had it all sorted out before as the graphs were all working for the last year or so until my boo boo today #-o
Phil