How to setup jpgraphs and wxgraphs

Bill, unfortunately, the pages you saw (when you clicked on my link) are way outdated … like really really outdated… :oops:

I have been working on some new and much more modern templates but I have not put them online yet … I keep pushing the date/year for the release of the new pages… :roll:

keep pushing the date/year for the release of the new pages... :roll:

Understand completely. I have a list of things I need to update but other things get in the way. :?

Bill, as you noticed on my site, the JpGraph do not seem to work well (or at all) with PHP 7… :oops:

Well, all of a sudden my graphs are working again with no changes on my part. Go figure. :scratch: Perhaps a setting on the server at my web host was changed?

What is wrong with me? What is it that I am doing wrong?
I can not see what is wrong

I have tried to follwo Tim Hankos guide.

I got the test.php and it replies that I have PHP 5.6.17 and GD support enabled

I got the jpgraph-3.5.0b1.tar
(I can not find the version 2.2 that Tim is pointing to)
Location for jpgraph is: /usr/local/www/apache24/data/jpgraph-3.5.0b1/

Broadstaris wxgraphs is in place: /usr/local/www/apache24/data/wxgraphs/

Did I get the graphsconf.php correct ?

//where are your clientraw*-files and JPGraph relative to where this file is^M
//note you should only need to change the jpgraph directory if you do not use standard names^M
//$hostloc = “${WEBROOT}/”; //must have trailing slash^M
$hostloc = “/usr/local/www/apache24/data/weather/weatherdata/”;^M
$jploc = “/usr/local/www/apache24/data/jpgraph-3.5.0b1/”; //must have trailing slash^M
^M
//Set this variable to either 12 or 24 depending on whether you run Weather Display in 12 or 24 hour mode^M
$hourmode = “24”;^M

When I run the hardpath.php I get: /usr/local/www/apache24/data/jpgraph-3.5.0b1/ttf/ in my browser

Then I have edit the jpg-config.inc.php and added the path
/usr/local/www/apache24/data/jpgraph-3.5.0b1/ttf/

Uploaded the fonts to the ttf folder

The server says that it is unable to locate the JPGraph files when I try to get the rain_1hr.php

I run WDL 10.37R Build 81 on Win Xp and the files a uploaded to Freebsd 10.1

Please, command me dark lords…
:smiley:


graphsconf.php.txt (8.83 KB)

jpg-config.inc.php.txt (5.96 KB)

rain_1hr_php.JPG

What is the full url are you using for rain_1hr.php?

I use the LAN…
http://192.168.100.100/wxgraphs/rain_1hr.php

And I have tried the FQDN too
http://www.schultze.nu/wxgraphs/rain_1hr.php

I think I got it to work.
I removed it all and started all over and this time unpack the tar files on the server. I also change the foder to just jpgraph instead of jpgraph-3.5.0b1

http://www.schultze.nu/wxgraphs/wxgraphs_test.html

Found a small issue with wxgraphs (really a bug/issue with IIS).
I am using an IIS 7.5 server and apparently it does not like files names with a “+” symbol in them. They result in a 404 error.
So the following files do not work:
temp+dew+hum_1hr.php
temp+dew+hum_24hr.php
temp+hum_24hr.php
I noticed it in the Steel Gauges part of the Leuven-Template.
Changing the “+” symbol to a “_” and changing all references to those files makes everything work properly.
So anyone running an IIS server with php may also need to do the same.

I know this is an old post but I’ve been wanting to do something like this. Is this script still functional? If so on step 6, do I put the folder in the JGraphic folder of below it on the server? I’d appreciate any help.

Unless your server is already running php version 7 it should be fine.

  1. Create a new folder under jpgraph-x.xx called ttf.

/jpgraph-1.22/ttf/ (the numbers will be different for your version of jpgraph - I hope)

IOW you create the new ttf folder in your jpgraph-[version] folder.

MegaMax

Posts: 1
Future meterologist/storm chaser.

good to see a young weather enthusiast, welcome :slight_smile:

Thank you to both of you.

I see this is a very old thread, but I’m following the instructions nonetheless to install.

I’ve tried everything I can think of but getting a repetitive error:

Strict Standards: strftime(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Europe/Berlin’ for ‘CEST/2.0/DST’ instead in /homepages/44/d119568937/htdocs/website/weather/jpgraph-4.0.1/src/jpgraph.php on line 395

e.g. http://www.hssc.net/weather/wxgraphs/windgust_1hr.php

And here are my PHP settings:

http://www.hssc.net/test.php

The warning is telling you to add a time zone setting line, like this:

date_default_timezone_set('Europe/London');

Be advised that a new version of JpGraph was released a few days ago (2016-08-09) - version 4.0.1 of JpGraph supports PHP5 (PHP 5.1.0 or higher version) and PHP 7.0.

Thanks R_o_b, good to know :slight_smile:

Hey - great - thanks - I’ve only gone and got it working!! :smiley:

http://www.hssc.net/weather/gauges.htm

Hi guys!

Yet another newbie with jpg-config.inc.php problems …

I have tried http://gudmundsbyn.se/jpgraph/src/Examples/testsuit.php with:

define(‘TTF_DIR’,‘/jpgraph/truetype/’);
define(‘TTF_DIR’,‘/customers/7/d/e/gudmundsbyn.se/httpd.www/jpgraph/truetype/’);
define(‘TTF_DIR’,‘${WEBROOT}/jpgraph/truetype/’);

with no luck :confused: fonts are not working.

I hope one of you spots my mistake or has a good idea re what I can try to fix this …

Thanks in advance /JensB

Try

define(‘TTF_DIR’,‘…/…/truetype/’);

or

define(‘TTF_DIR’,‘…/truetype/’);