Hi Brian.
I am still unable to create the graphs from the data, i am guessing it is some permission issues with my NAS which is my Webserver.
so I was thinking of using MySql Database instead, however I noticed the settings mentions the following.
//only if using for database add your login details
//$db_host = "localhost"; // always local host
so I cannot use my Weather Stations Cumulus DB unless is on the Webserver that this Template is located on? is this correct? can I not use my WX Host IP address instead?
you can use what ever database you want as long as the configuration file can see it , FYI this is all developed on a local server (2 machines now one is a dedicated server one is xampp on a mac mini both running php 5.6 optional 7 so i cant understand why you have the permission issue , i have no special configuration .
do me a favour drop me an email i have a stand alone version of the new charts that doesnt use a cron job it simply pulls the info direct from WU .
it has its own settings file which is very simple see below .it also works with the unit switching from the template but ideally its purpose is going to be a stand alone package to use with any template or if your building your own design as it is self sufficient and does not rely on any other configuration files
<?php
####################################################################################################
# WUDATACHARTS by BRIAN UNDERDOWN 2016 #
# CREATED FOR HOMEWEATHERSTATION TEMPLATE at
http://weather34.com/homeweatherstation/index.html #
# #
# built on CanvasJs #
# canvasJs.js is protected by CREATIVE COMMONS LICENCE BY-NC 3.0 #
# free for non commercial use and credit must be left in tact . #
# #
# Weather Data is based on your PWS upload quality collected at Weather Underground #
# #
# Second General Release: October 2016 #
# STANDALONE Release: October 4th 2016 #
# #
#
http://www.weather34.com #
####################################################################################################
####################################################################################################
# Basic setup information
##############################################################################################
$id = 'ISTANBUL161'; // your weather underground station id (case sensitive in CAPITALS)
$unit = 'metric'; // set to metric for rest of world outside of USA set to english for USA (lowercase)
$TZ = 'Europe/Istanbul'; // important set your time zone America/New_York for example go here to find your
http://php.net/manual/en/timezones.php$stationlocation = 'Sinanoba Istanbul'; // add your station name or location
##############################################################################################
# Units set to your preference
##############################################################################################
$windunit = 'm/s'; // km/h - m/s - mph - kts
$tempunit = '°C '; // °C or °F
$rainunit = 'mm'; // set template output for rain units displayed: 'in' or 'mm'
$rainrate = 'mm'; // set template output for rain rate measurement mm ,in
$pressureunit = "hPa"; // set template output pressure units displayed: 'inHg' or 'hPa' or 'mb'
##############################################################################################
##############################################################################################
# Convert wind speed(mph for UK and scandinavia M/S) andyearly & monthly rainfall(cm to mm) daily requires no conversion
##############################################################################################
if ($unit == 'metric' & $windunit == 'mph' ) {
$windconv = "0.621371";$rainfallconv='10';$rainfallconvmm='10';
}
if ($unit == 'metric' & $windunit == 'm/s' ) {
$windconv = "0.277778";$rainfallconv='10';$rainfallconvmm='10';
}
if ($unit == 'metric' & $windunit == 'km/h' ) {
$windconv = "1";$rainfallconv='10';$rainfallconvmm='10';
}
if ($unit == 'english' & $windunit == 'mph' ) {
$windconv = "1";$rainfallconv='1';$rainfallconvmm='1';
}
//end
?>
so send me an email