Evening all,
I have installed the JpGraph Package by Tnet Weather to my site, along with the relevant package, set up the Realtime.log, Realtimelog.php and other relevant tasks.
Yet, I cant seem to get it to work?
Could someone please help me with this?
Here you can see some of the outputs I recieve:
http://weeleyweatherstation.info/baro.php
http://weeleyweatherstation.info/temp.php
http://weeleyweatherstation.info/rain.php
My site is hosted externally with Fractix.
Many thanks in advance.
Jason
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
(Note that 4.1.0 (build 4024) - 05 June 2024 remains available, but usage of this version is not recommended - particularly for Davis stations - and the included utility in this distribution for migrating to v4 is known to contain errors affecting conversion of dayfile.txt)
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
(Note that 4.1.0 (build 4024) - 05 June 2024 remains available, but usage of this version is not recommended - particularly for Davis stations - and the included utility in this distribution for migrating to v4 is known to contain errors affecting conversion of dayfile.txt)
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Assistance Required Please..........
Moderator: daj
- daj
- Posts: 2041
- Joined: Tue 29 Jul 2008 8:00 pm
- Weather Station: WH1081
- Operating System: Pi & MX
- Location: SW Scotland
- Contact:
Re: Assistance Required Please..........
Hi Jason
I have not actually used the jpGraphs but I did look at them a few months ago. One of the pre-requisites is
* GD with FreeType support and the TTF Verdana loaded.
I think you problem is related to the fonts not being available on your server.
Also, does your host allow you to run a Cron job? From the very limited data on their site, I would guess not. If you can not use cron jobs then TNET JpGraphs are no good.
I have not actually used the jpGraphs but I did look at them a few months ago. One of the pre-requisites is
* GD with FreeType support and the TTF Verdana loaded.
I think you problem is related to the fonts not being available on your server.
Also, does your host allow you to run a Cron job? From the very limited data on their site, I would guess not. If you can not use cron jobs then TNET JpGraphs are no good.
-
- Posts: 519
- Joined: Wed 08 Apr 2009 12:38 pm
- Weather Station: La-Crosse WS3502
- Operating System: Windows 7
- Location: Holland On Sea, Essex UK
Re: Assistance Required Please..........
Yup, Host allows many cron jobs and offers just about anything else you like.
Trouble is, I cannot place the font files in the 'Unix' Directory it requests.
I do have the truetype fonts it requests on the server, but I cannot get it to accept the path I specify.
Maybe I just cant use these due to my setup. Shame really. All of TnetWeather's other scripts work fine.
This one however has caused many hours of mayhem.
Thanks again Daj![Smile :)](./images/smilies/icon_e_smile.gif)
Trouble is, I cannot place the font files in the 'Unix' Directory it requests.
I do have the truetype fonts it requests on the server, but I cannot get it to accept the path I specify.
Maybe I just cant use these due to my setup. Shame really. All of TnetWeather's other scripts work fine.
This one however has caused many hours of mayhem.
Thanks again Daj
![Smile :)](./images/smilies/icon_e_smile.gif)
- daj
- Posts: 2041
- Joined: Tue 29 Jul 2008 8:00 pm
- Weather Station: WH1081
- Operating System: Pi & MX
- Location: SW Scotland
- Contact:
Re: Assistance Required Please..........
Ok, I must be looking at the wrong site as the web page I saw for your provider mostly contained adverts -- LOL
Glad they let you use cron jobs. In which case they probably give you a virtual unix server meaning you should have full access to the /usr/share/fonts folder. You may need to create the truetype folder under it. Also, only your admin user will have access to this area so make sure you are using the correct account.
Sorry, probably telling you how to suck eggs here!!
Glad they let you use cron jobs. In which case they probably give you a virtual unix server meaning you should have full access to the /usr/share/fonts folder. You may need to create the truetype folder under it. Also, only your admin user will have access to this area so make sure you are using the correct account.
Sorry, probably telling you how to suck eggs here!!
-
- Posts: 519
- Joined: Wed 08 Apr 2009 12:38 pm
- Weather Station: La-Crosse WS3502
- Operating System: Windows 7
- Location: Holland On Sea, Essex UK
Re: Assistance Required Please..........
Not at all my friend. Right page alright, they are how shall I put it, slow on the uptake that, customers need a page with infodaj wrote:Ok, I must be looking at the wrong site as the web page I saw for your provider mostly contained adverts -- LOL
Glad they let you use cron jobs. In which case they probably give you a virtual unix server meaning you should have full access to the /usr/share/fonts folder. You may need to create the truetype folder under it. Also, only your admin user will have access to this area so make sure you are using the correct account.
Sorry, probably telling you how to suck eggs here!!
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Me too.Shall have to see if I can find the panel where I can access that area. I shall try
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Not at all Daj
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: Assistance Required Please..........
This is covered in the PDF documentation on Page 8.
You just change the configuration file for JPGraphs to point to a directory you can use and put the font files there. You can have them just about anywhere you want them to be that you can write to.
You just change the configuration file for JPGraphs to point to a directory you can use and put the font files there. You can have them just about anywhere you want them to be that you can write to.
Re: Assistance Required Please..........
Modify the file
jpgraph/src/jpg-config.inc.php
in your webroot directory to be something like:
DEFINE("TTF_DIR","/home/sites/weeleyweatherstation.info/public_html/jpgraph/fonts");
and put the fonts into the
/home/sites/weeleyweatherstation.info/public_html/jpgraph/fonts directory
This is described in detail on page 8 of the PDF instructions.
DEBUG> DEBUG TURNED ON
DEBUG> Script is running in: cgi mode
DEBUG> Server Path: /home/sites/weeleyweatherstation.info/public_html/
DEBUG> Request URI: /rain.php?debug
DEBUG> Server Name: http://weeleyweatherstation.info
DEBUG> PHP Self: /rain.php
DEBUG> Path is set to: /home/sites/weeleyweatherstation.info/public_html
DEBUG> JpGraph is set to: jpgraph/src/
DEBUG> obtaining data from: ./realtime.log
jpgraph/src/jpg-config.inc.php
in your webroot directory to be something like:
DEFINE("TTF_DIR","/home/sites/weeleyweatherstation.info/public_html/jpgraph/fonts");
and put the fonts into the
/home/sites/weeleyweatherstation.info/public_html/jpgraph/fonts directory
This is described in detail on page 8 of the PDF instructions.
DEBUG> DEBUG TURNED ON
DEBUG> Script is running in: cgi mode
DEBUG> Server Path: /home/sites/weeleyweatherstation.info/public_html/
DEBUG> Request URI: /rain.php?debug
DEBUG> Server Name: http://weeleyweatherstation.info
DEBUG> PHP Self: /rain.php
DEBUG> Path is set to: /home/sites/weeleyweatherstation.info/public_html
DEBUG> JpGraph is set to: jpgraph/src/
DEBUG> obtaining data from: ./realtime.log
Re: Assistance Required Please..........
I changed your jpgraph config file jpg-config.inc.php to have the following in it:
I then copied the fonts you placed in your webroot into a directory called fonts off the main webroot directory:
Now your graphs look like:
![Image](http://weeleyweatherstation.info/rain.php?level=2&freq=2)
You should remove the fonts you placed in your webroot as that will just clutter up your webroot area. They are now in a subdirectory called fonts.
Code: Select all
DEFINE("TTF_DIR","./fonts/");
Now your graphs look like:
You should remove the fonts you placed in your webroot as that will just clutter up your webroot area. They are now in a subdirectory called fonts.
-
- Posts: 519
- Joined: Wed 08 Apr 2009 12:38 pm
- Weather Station: La-Crosse WS3502
- Operating System: Windows 7
- Location: Holland On Sea, Essex UK
Re: Assistance Required Please..........
Many Many Thanks to Tnet Weather, all is working fine now and Ive have done as suggested.
Works fantastic
http://www.weeleyweatherstation.info/?page=graphs
Works fantastic
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)