// Graphs Package V4.1 14 October 2022 Please note that I am no longer supplying files for use with IIS. If anyone still uses IIS then it will be up to the user to make any required changes. Also I am not supplying any language versions other than English. Installation Instructions. 1. Unzip the package and upload to a directory of your choice on your local PC. 2. Read this ReadMe.txt file :-)) yes I know you can only read this after doing 1. !! 3. Select the sample graphsconf.php file and open it in your favourite text editor. 4. Edit the required parameters in the customisation section. You must ensure the following are correct:- $hostloc = "${WEBROOT}/"; this will work if your clientraw files are in your root (home) directory on the webserver. Note: do not change the ${WEBROOT} part. If you have to add a sub-directory it must end with a / (slash). $jploc = "${WEBROOT}/jpgraph-4.2.10/src/"; this will need to point ot the correct JPGraph directory on your webserver. Note: do not change the ${WEBROOT} part. $hourmode = "24"; must be 12 or 24 depending on which time mode you use in Weather Display. You do not need to alter any other variables at this time. This can come later once you have tested the installation. 5. Save this edited version of the config file as graphsconf.php in the same directory. 6. Upload this directory containing the graphs and config file to your webserver. Do not at this stage remove any files, upload everything. 7. Now go to your favourite browser and point it at your graphs eg. http://www.mysite.com/graphs/wxgraphs_test.html where you change the www.mysite.com to your own website. You should now see all the graphs displayed with the default settings from the graphsconf.php you just edited before. 8. Once this is all working and you can see all the graphs you can chose the ones you want and incorporate them into your own pages. You can then remove any graph files you do not want to use if you need to save some space. Make sure you do not remove the main graphsconf.php, graphslang.php or error_msg.php files as these are required. 9. If you use a language other than English the you can edit the graphlang.php file (make a copy first) and alter the data there to reflect your own language. This file allows you to have the actual label data on your graphs in your language. 10. Please note there are a few new files in this package. The two needing your input are historical-annual-rain.php which you must edit yourself to provide your own values for the annual totals which AFAIK do not appear in any standard clientraw files, the script is annotated to assist in the editing. The supplied file contains my annual data! 11. The fonttest.php can also be edited to determine if your preferred fonts are installed either in the jpgraph package font directory or in your system. 12. Enjoy...... 13. In this version the historical annual rain graph must be edited to enter your own data from your records as it is shipped with my data so it displays. There are two lines which must be edited the first is $datay which holds one entry for each year you have a rain total for, and the second is $x a few lines down which contains on entry for each year you have data, the number of entries must be the same for both arrays. 14. New in this version is the month lightning graph which needs some additional work if you wish to use it. Currently it is set up to use a WD custom log file called customtextout2.txt which is created by WD. To get this created you must create a file called customtext2.txt in the WD Web Files folder and set to create using the WD menu item Setup/Log Files and set to create a 1 line log file the interval is not important, 60 minutes is file as this only holds the previous 31 days data. You may need to edit the graph file to ensure the path is correct to the log file. Don't forget to make sure this file is uploaded to your web server. Stuart V4.1 21st September 2022 List of files:- avg_year_rain.php baro_1hr.php baro_24hr.php baro_7days_line.php baro_7days.php error_msg.php fonttest.php graphsconf.php graphslang.php historical-annual-rain.php humidity_1hr.php humidity_24hr.php humidity_7days.php indoor_temp_24hr.php month_baro_line.php month_baro.php month_hilo_temp.php month_humidity.php month_lightning.php month_rain.php month_winddir.php month_windspeed.php nextstorm_24hr.php rain_1hr.php rain_24hr.php rain_60min.php rain_7days.php rain_this_month.php rain_this_year.php rain_today.php rain_week.php rain_yesterday.php ReadMe.txt snow.php solar_1hr.php solar_24hr.php solar_7days.php temp_1hr.php temp_24hr.php temp_60min.php temp_7days.php temp+dew+hum_1hr.php temp+dew+hum_24hr.php temp+hum_24hr.php uv_24hr.php uv_7days.php winddir_1hr.php winddir_24hr.php winddir_60min.php winddir_7days.php windgust_1hr.php windspeed_1hr.php windspeed_24hr.php windspeed_60min.php windspeed_7days.php wxgraphs_test.html year_rain_inc_avg.php year_rain.php