well I downloaded the wxgrapgh and unzipped it to creat the folder with all the "php" files, along with the "graphsconfig.php", but I am a little confuzed on the paths needed to be entered into the graphsconfig.php and also each actual grapgh.php, such as for example the 'temp_hum.php"
starting with the actual graphsconfig.php, at the top it list this info to be edited:
<?php
// Obtain Basic Environment
$WEBROOT = $_SERVER['DOCUMENT_ROOT'];
//==========================================
//where are your clientraw*-files and JPGraph relative to where this file is
//note you should only need to change the jpgraph directory if you do not use standard names
$hostloc = "${WEBROOT}/"; //must have trailing slash
$jploc = "${WEBROOT}/jpgraph-1.20.5/src/"; //must have trailing slash
so what do I have to change, and what do I change it to?
I tried changing the $hostloc-= line to this:
$hostloc = "$http://www.gateway2capecod.com/clientraw.txt/";....but this must be wrong
can someone please explain exactly what gets entered for the hosloc and the jploc lines?
I undestand below this there are also some changes to be made if I am using farienheit, Inches etc for my reading, which I am and know which changes to be made below these lines above.
Now for as far as configuring just one of the graph files, which I will keep testing using the tem_hum.php graph till I can actuall see it working, then get the other's configured later.
Inside the actual temp_hum.php I see this:
<?php
//where are your clientraw*-files relative to where this file is
include ("graphsconf.php");
include ($jploc."jpgraph.php");
include ($jploc."jpgraph_line.php");
//$clientraw = get_raw("${hostloc}clientraw.txt");
$clientrawextra = get_raw("${hostloc}clientrawextra.txt");
//$clientrawdaily = get_raw ("${hostloc}clientrawdaily.txt");
what needs to be edited in here? I am assuming i need to add my actual clientraw.txt path, which is:
http:www.gateway2capecod.com/clientraw.txt...so should I edit each line as follows?...
//$clientraw = get_raw("$http://www.gateway2capecod.com/clientraw.txt");
$clientrawextra = get_raw("$http://www.gateway2capecod.com/clientrawextra.txt");
//$clientrawdaily = get_raw ("$http://www.gateway2capecod.comclientrawdaily.txt");
Thanks if anyone can show me the proper paths to make this all work...Chris