cloudy

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

0 Members and 1 Guest are viewing this topic.

Offline Dobbies

  • Posts: 56
  • Alicante, Spain
    • Jacarandatree
Re: How to setup jpgraphs and wxgraphs
« Reply #225 on: June 21, 2009, 10:39:37 AM »
I would like to take this opportunity to thank all the main players and contributors of the whole site and of this thread. I'm a novice of 6 months at running my own weather station and I try to better it all the time. Nothing is straight forward, but if you search and read the posts here you can find the answers to your problems.
My most recent achievement is to learn the basics of "how to set up jpgraphs and wxgraphs" by Tim hanko. Easy for some difficult for others! :D

Many thanks to all



Offline ALITTLEweird1

  • Mark
  • Posts: 3,867
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: How to setup jpgraphs and wxgraphs
« Reply #226 on: September 29, 2009, 10:12:28 PM »
 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..
http://www.snoqualmieweather.com/wxgraphs.php
« Last Edit: September 29, 2009, 11:20:42 PM by ALITTLEweird1 »
"Nature can do without man, but man cannot do without nature."

Davis VP2 + 1-Wire Solar + 1-wire Lightning + 1-Wire UV + Logitech Webcam

Offline andro700

  • Chuck
  • Posts: 3,209
  • Watford City, North Dakota
    • Chuck's Weather Page
Re: How to setup jpgraphs and wxgraphs
« Reply #227 on: September 30, 2009, 01:18:57 AM »
Did you try removing that line. I don't have that line in any of my OFC scripts.

Chuck

Offline broadstairs

  • Stuart
  • Posts: 6,175
  • Broadstairs, Kent, UK
    • Broadstairs
Re: How to setup jpgraphs and wxgraphs
« Reply #228 on: September 30, 2009, 05:42:06 AM »
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
« Last Edit: September 30, 2009, 05:44:09 AM by broadstairs »

Offline ALITTLEweird1

  • Mark
  • Posts: 3,867
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: How to setup jpgraphs and wxgraphs
« Reply #229 on: September 30, 2009, 10:33:41 AM »
Chuck helped me get the 2 graphs going lastnight, Thanks Stuart.
"Nature can do without man, but man cannot do without nature."

Davis VP2 + 1-Wire Solar + 1-wire Lightning + 1-Wire UV + Logitech Webcam

Offline drobbins

  • Posts: 1,596
  • Kentucky, USA
    • Cave Country Weather
Re: How to setup jpgraphs and wxgraphs
« Reply #230 on: October 24, 2009, 05:17:15 PM »
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?

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 21,998
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: How to setup jpgraphs and wxgraphs
« Reply #231 on: October 24, 2009, 05:24:36 PM »
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?

Offline drobbins

  • Posts: 1,596
  • Kentucky, USA
    • Cave Country Weather
Re: How to setup jpgraphs and wxgraphs
« Reply #232 on: October 24, 2009, 05:36:39 PM »
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.

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 21,998
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: How to setup jpgraphs and wxgraphs
« Reply #233 on: October 24, 2009, 05:41:41 PM »
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  :(

Offline drobbins

  • Posts: 1,596
  • Kentucky, USA
    • Cave Country Weather
Re: How to setup jpgraphs and wxgraphs
« Reply #234 on: October 24, 2009, 06:14:19 PM »
If I use these settings:
Code: [Select]
$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:
Code: [Select]
$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?

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 21,998
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: How to setup jpgraphs and wxgraphs
« Reply #235 on: October 24, 2009, 06:41:26 PM »
I think the first one.

Offline drobbins

  • Posts: 1,596
  • Kentucky, USA
    • Cave Country Weather
Re: How to setup jpgraphs and wxgraphs
« Reply #236 on: October 24, 2009, 07:45:14 PM »
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?

Offline drobbins

  • Posts: 1,596
  • Kentucky, USA
    • Cave Country Weather
Re: How to setup jpgraphs and wxgraphs
« Reply #237 on: October 24, 2009, 08:35:32 PM »
Well, I just repeated step #9
Quote
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:  :D
Thanks for the help.

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 21,998
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: How to setup jpgraphs and wxgraphs
« Reply #238 on: October 24, 2009, 10:05:54 PM »
Good job!

Offline drobbins

  • Posts: 1,596
  • Kentucky, USA
    • Cave Country Weather
Re: How to setup jpgraphs and wxgraphs
« Reply #239 on: October 24, 2009, 11:14:18 PM »
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
« Last Edit: October 24, 2009, 11:16:31 PM by drobbins »

 

cumulus