Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

Server Mx-Graphs config

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
whortas
Posts: 10
Joined: Sun 01 Feb 2015 3:26 pm
Weather Station: davis vantage
Operating System: w7
Location: Portugal

Server Mx-Graphs config

Post by whortas »

Try to put this working in a PI and something is missing...
First I think that is something with Apache2 but I try Ligthtpd and I got the same error.
jp1.png
I have a test.php and work , so I presume that is not problem of permitions.

<?php
// Change this defines to where Your fonts are stored
DEFINE("TTF_DIR","/var/www/jpgraph/fonts/");
// Change this define to a font file that You know that You have
DEFINE("TTF_FONTFILE","DejaVuSans.ttf");

$f = TTF_DIR.TTF_FONTFILE;
if( file_exists($f) === false || is_readable($f) === false ) {
echo "FAIL: Can not read font file \"$f\".";
}
else {
echo "PASS: Successfully read font file \"$f\".";
}
?>


The GD and FreeType is available in the server like is show in phpinfo
jp2.png
in the server I have:
jpgraph lib in ./var/www/jpgraph/
fonts in ./var/www/jpgraph/fonts/
cache ./var/www/jpgraph/cache/
files json ./var/www/
files Mx-jpgraphs ./var/www/

in graphsettings.php
//------------------------------------------------------------------------
$GRAPH['version'] = "0.4";
$GRAPH['width'] = 600;
$GRAPH['height'] = 300;
$GRAPH['jsonloc'] = "/var/www/";
$GRAPH['jpgraphloc'] = "/var/www/jpgraph/";
$GRAPH['cachetime'] = 10;
//------------------------------------------------------------------------

in jpg-config.inc.php
//------------------------------------------------------------------------
define('CACHE_DIR','/jpgraph/cache/');
//define('TTF_DIR','/usr/share/fonts/truetype/ttf-dejavu/');
//define('MBTTF_DIR','/var/www/jpgraph/fonts/');
//-------------------------------------------------------------------------

thaks
You do not have the required permissions to view the files attached to this post.
Locked