If you are seeing the images when you run the Php, sounds like you are mostly there.Toxic17 wrote: yeah I am at a lost too, though I have the graphs now being displayed on their own, just not in the popup windows.
https://www.conligwx.org/graphPress.php
the .htaccess file supplied is suppose to change the naming convention so you dont have to rename the line 203 etc. though I still cannot get the images shown using *.png files
I was stuck at that point until I came to understand that the .htaccess file belonged in with the images & the scripts.
Mine are in weather/images on a standard CumulusMX install.
That may not be an issue if the php's are already displaying the images as in..the other issue I have is I am on PHP 7.1.1 and I needed jpgrahs 4.x and higher. the scripts Mark has kindly provided was calling for a php file that was not part of jpgraphs 4.0.x
http://weather.inverellit.com/images/graphPress.php
I just deleted that line as mentioned on Github, https://github.com/mcrossley/Cumulus-MX-Gauge-Graphsthe missing file was: jpgraph_glayout_vh.inc.php which I had to check the Apache logs too see what the hell was going on..
Code: Select all
Mark Wittl has kindly contributed a WindRose script, if you want to use this graphic, then there are some additional steps you need to take...
1.Modify the jpgraph_windrose.php file to remove the import of 'jpgraph_glayout_vh.inc.php' //require_once('jpgraph_glayout_vh.inc.php');
2.Edit the jp-config.inc.php file to point to the font directory under the installed jpgraph location define('TTF_DIR','<YOUR_PATH>/jpgraph/fonts/'); You will need the following font files arial.ttf and verdana.ttf
Got stuck there as well, as no new png's are created, they are made on the fly, by the .htaccess.I have managed to put that with the rest of the jpgraph files and now it at least displays the graph calling the php file on its own. I think the next is is the popups are not creating the image files due to the naming so I will try your workaround and see if i get any joy.
Think that's roughly like Subst in the DOS days, (very poor comparison).
So even now when it's working, there are no new PNG's created in my ../images/ directory, only the PHP scripts & the .htaccess file.
Hope that helps
Phil.