cloudy

Author Topic: How to setup jpgraphs and wxgraphs  (Read 82352 times)

0 Members and 1 Guest are viewing this topic.

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 22,156
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: How to setup jpgraphs and wxgraphs
« Reply #270 on: October 29, 2011, 01:11:11 AM »
Do you have a link to your graphs?

Offline Cavaliere89

  • Posts: 22
Re: How to setup jpgraphs and wxgraphs
« Reply #271 on: December 22, 2011, 02:44:12 PM »
Hello to all children,

Today I tried to install these graphs using the guide made ​​the front page, following all the steps explained.

Unfortunately, however 'at the end of the installation, when I go to see an image does not appear.

Here is the referral link on my site: http://www.ombarcellonapg.tk/wdisplay/wxgraphs/rain_7days.php

http://www.ombarcellonapg.tk/wdisplay/wxgraphs/wxgraphs_test.html

Can you help?

Thanks in advance.
« Last Edit: December 22, 2011, 03:40:09 PM by Cavaliere89 »

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 22,156
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: How to setup jpgraphs and wxgraphs
« Reply #272 on: December 22, 2011, 05:13:44 PM »
Need to work through the error messages one by one. First please make a copy of your graphsconf.php as graphsconf.txt and post it as an attachment.

Offline Cavaliere89

  • Posts: 22
Re: How to setup jpgraphs and wxgraphs
« Reply #273 on: December 22, 2011, 08:46:54 PM »
Hello everyone,

http://www.ombarcellonapg.tk/wdisplay/wxgraphs/wxgraphs_test.html

I finally resolved and I can visuallizzare graphics but why some do not see it??

and then I ask how you can 'change the template of the graphs?
« Last Edit: December 23, 2011, 05:06:20 PM by Cavaliere89 »

Offline tman1991

  • Posts: 524
  • Tucson, AZ (US)
  • OS/Browser:
  • Windows 7/Server 2008 R2
  • Firefox 9.0.1
    • Countryside Manor
Re: How to setup jpgraphs and wxgraphs
« Reply #274 on: December 29, 2011, 07:36:19 PM »
solution found for backgrounds with jpgraph 3.5b01

http://www.weather-watch.com/smf/index.php/topic,54144.msg434870.html#msg434870

remove "required_once('jpgraph_theme.inc.php') from the jpgraph.php script and it worked (or I guess you could just comment it). This is in jpgraph version 3.5.0b1

Thanks to RonParWX

Offline weatherforyou

  • Posts: 146
  • My weather is on weatherforyou.com!
  • Grants Pass, OR
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 9.0.1
    • Weather for You
Re: How to setup jpgraphs and wxgraphs
« Reply #275 on: January 19, 2012, 07:30:02 AM »
I'm getting a message on many of my graphs "JpGraph Error : 25091 - Internal font does not support drawing text at arbitrary angle. Use TTF fonts instead."  Also all my other graphs are not using TTF.  Is there somewhere TTF needs to be turned on?  I've gone back over the instructions at least four times, and tried every combination of paths possible.

Test is at http://www.grantspassweather.com/wxgraphs/wxgraphs_test.html and hardpath at http://www.grantspassweather.com/jpgraph/ttf/hardpath.php  Path is set as
Code: [Select]
define('TTF_DIR','/big/dom/gpwx/public_html/jpgraph/ttf/');
Thanks!
Joe Torsitano
weatherforyou.com LLC
PWSweather.com - KORGRANT1

Offline tman1991

  • Posts: 524
  • Tucson, AZ (US)
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 9.0.1
    • Countryside Manor
Re: How to setup jpgraphs and wxgraphs
« Reply #276 on: January 19, 2012, 05:32:26 PM »
try this

define('TTF_DIR','${WEBROOT}/jpgraph/ttf/');

I had a similar issue where mine was in 'blah/public_html/jpgraph/ttf/' also and it didnt work until I tried that above.

Offline weatherforyou

  • Posts: 146
  • My weather is on weatherforyou.com!
  • Grants Pass, OR
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 16.0.912.75
    • Weather for You
Re: How to setup jpgraphs and wxgraphs
« Reply #277 on: January 19, 2012, 05:58:30 PM »
Thanks much for the idea.  Unfortunately didn't work in my case.   :(
Joe Torsitano
weatherforyou.com LLC
PWSweather.com - KORGRANT1

Offline tman1991

  • Posts: 524
  • Tucson, AZ (US)
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 9.0.1
    • Countryside Manor
Re: How to setup jpgraphs and wxgraphs
« Reply #278 on: January 19, 2012, 06:38:13 PM »
Heres another idea..  move the stuff from wxgraphs to the root and try that..

Offline weatherforyou

  • Posts: 146
  • My weather is on weatherforyou.com!
  • Grants Pass, OR
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 16.0.912.75
    • Weather for You
Re: How to setup jpgraphs and wxgraphs
« Reply #279 on: January 19, 2012, 07:24:31 PM »
Thanks again, tman1991.  That didn't do it either, though.   :(

I did get all the graphs to display by changing $label_angle = 60 to $label_angle = 90 (thus not an arbitrary angle like it was complaining about).  But they're still not using TTF.  So I guess the problem is back in JpGraph.

I do have working graphs now.  Anymore suggestions on getting TTF to work is still appreciated.
Joe Torsitano
weatherforyou.com LLC
PWSweather.com - KORGRANT1

Offline weatherforyou

  • Posts: 146
  • My weather is on weatherforyou.com!
  • Grants Pass, OR
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 9.0.1
    • Weather for You
Re: How to setup jpgraphs and wxgraphs
« Reply #280 on: January 19, 2012, 09:13:59 PM »
Figured it out once I ran some other tests on the php installation.  Apparently FreeType wasn't enabled for some reason.  I recompiled php and all is working.  :D
Joe Torsitano
weatherforyou.com LLC
PWSweather.com - KORGRANT1

Offline bhogsett

  • Posts: 139
  • Cleveland, Ohio, USA
  • OS/Browser:
  • Mac OS X 10.7
  • Firefox 11.0
    • BoatHouse Weather
Re: How to setup jpgraphs and wxgraphs
« Reply #281 on: February 29, 2012, 11:26:51 AM »
I have just installed jpgraph and wxgraphs.  Easy installation and no problems--except one.

I want to use inches of mercury for the barometer setting and have these values in my graphconf.php file:

Code: [Select]
$pres_conv = 0.0295; // Set to 0.0295 for in of Mercury or 1 for hPa/mb
$pres_unit = "in"; //Set to required value

I get an error saying the minvalue I have set is larger than the max allowed value.

I suspect it should not be "in".  But I am not sure what it should be.

Oh, if I use hPa/mb I have no issues.

Bill

Offline tman1991

  • Posts: 524
  • Tucson, AZ (US)
  • OS/Browser:
  • Unknown
  • Safari 6.0.0.600
    • Countryside Manor
Re: How to setup jpgraphs and wxgraphs
« Reply #282 on: February 29, 2012, 11:44:49 AM »
This is for the test graphs im assuming?    The barometeer graph has a min max setting and u need to change that after switiching units

Offline bhogsett

  • Posts: 139
  • Cleveland, Ohio, USA
  • OS/Browser:
  • Mac OS X 10.7
  • Firefox 11.0
    • BoatHouse Weather
Re: How to setup jpgraphs and wxgraphs
« Reply #283 on: February 29, 2012, 12:12:27 PM »
This is for the test graphs im assuming?    The barometeer graph has a min max setting and u need to change that after switiching units

Duh!

Thanks.

Bill

Offline jgillett

  • John
  • Posts: 445
  • Phoenix, AZ
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Safari 5.1.2
    • TiggrWeather Phoenix
Re: How to setup jpgraphs and wxgraphs
« Reply #284 on: February 29, 2012, 07:32:32 PM »

define('TTF_DIR','${WEBROOT}/jpgraph/ttf/');

Had to modify that a bit for mine...

define('TTF_DIR','${WEBROOT}/jpgraph-3.5.0b1/src/fonts/');

Obviously that was because of the different structure in 3.5.0b1. It still failed. Finally took a copy of Arial from /windoze/fonts/ and dumped it into the jpgraph /fonts/. That DID work, and everything on wxgraphs_test.html finally showed up.

Thanks for the tip in the right direction.
John
W7JKG


 

cumulus