Premise:
Right now, I want to congratulate and thank those who, without any obligation or remuneration, have committed themselves in the past like now, to create and support this magnificent software. Times change and challenges continue to improve it and make it work better.
Since 2008, thanks to Steve and his Cumulus, I started recording and disseminating the weather data for my area.
With regret I had to change system: from a normal PC running all day to a raspy .... and this is causing me several problems, still partially unresolved.
I believe that, given the remarkable upgrade that MX offers, it is essential to have a clear and comprehensive guide to a typical installation.
If this is (or almost) for the raspy side, the same cannot be said for the server side.
After having done many tests without success, I purchased a web space instead of a free one, which served me for all these years without any problems. But evidently the problem was not even that.
Currently my server configuration is this:
I edited the graphSetting.php file:
Code: Select all
$GRAPH['jsonloc'] = '/meteo/'; // NOTE: This is the *server* operating system path to the file, so unless you have added
// the web folder to your PHP path, it will be something like "/home/<userid>/www/"
$GRAPH['jpgraphloc'] = '/meteo/images/jpgraph/'; // NOTE: Same path type as json above
Code: Select all
define('CACHE_DIR','/meteo/images/cache/');
define('TTF_DIR','/meteo/images/jpgraph/fonts/');
define('MBTTF_DIR','/meteo/images/jpgraph/fonts/');
define('USE_CACHE',true);
Code: Select all
imgPathURL : 'meteo/images/', //*** Change this to the relative path for your 'Trend' graph images
oldGauges : 'meteo/gauges.htm', //*** Change this to the relative path for your 'old' gauges page.
showPopupData : true, //Pop-up data displayed
Code: Select all
function GetAndStream($aImage,$aCacheFileName) {
if( $this->Isvalid($aCacheFileName) ) {
$this->StreamImgFile($aImage,$aCacheFileName);
return true;
}
else {
return false;
}
(including the .htaccess file)
I have verified that the server is running GD.
Currently there is php 7.3.9
Now on http://www.sbonweb.it/meteo/index.htm (new web space)
I have tried various combinations of relative paths on file modifications; I tried (not knowing where to put it) to move all the files related to the JSON folder
Result:
the site runs, the weather data is visible and updated correctly.
- the graphs (trend.htm) there is no way to see them
- the gauges are not visible
Where am I doing wrong ????
It's driving me crazy.
Reading several 3D, I realized that the biggest problem is precisely these two aspects.
for this reason, a guide or, at least, a typical server-side installation scheme and, possibly, the basic configurations (on interface: internet setting-> Web / FTP settings and Extra web files) necessary for the operation would be very helpful of graphics and gauges page.
Many thanks to those who want to give me help