Arghhh!
On your own good time - tomorrow is OK
gwheelo
mcrossley wrote:Manuel, sure it is possible to MySQL. My "Historic Graphs" are all driven from MySQL using a table built from the Cumulus Dayfile (using ImportCumulusFile.php). Now you are going to ask 'how do I do that?'
Thats ok.mcrossley wrote:Arghhh! I'm working on it George - still fiddling now and again, but time...
I'll put the PHP code as text filesin in a few minutes!laulau wrote:I've try to add the code to see the source but it seems not to work properly.
http://ialsacem4.chez.com/php/histgraphsHC.php?sce=view
@ nitrxThe basic code is from TNET Weather scripts http://cumulus.tnetweather.com/projects/phpdayfile
with the help of "Beteljuice" https://cumulus.hosiene.co.uk/viewtopic.php?f=14&t=8072
Thank Laurent I know it's an evolution of the rexx files But what are the includeslaulau wrote:Code to get and view a selected month from dayfile.txt
http://ialsacem4.chez.com/SourceAsText/sdayfile.php.txt
The one for the graphs with http://www.highcharts.com/
http://ialsacem4.chez.com/SourceAsText/ ... HC.php.txt
@ nitrxThe basic code is from TNET Weather scripts http://cumulus.tnetweather.com/projects/phpdayfile
with the help of "Beteljuice" https://cumulus.hosiene.co.uk/viewtopic.php?f=14&t=8072
It's an evolution from my old "2010 Rexx script to htm files" http://ialsacem4.chez.com/history/2013.htm
Code: Select all
<?php
require_once("../php/cumuluswebtags.php");
?>
<?php
require_once("../php/include.php");
?>
Based on : http://wiki.sandaysoft.com/a/Php_webtags Not up to daterequire_once("../php/cumuluswebtags.php");
This is my "Menu links file" (and the moon image selection fonction)require_once("../php/include.php");
Aha I left them out because they are not special for the tables and the graphs but I've problems with the values for highcharts, see my other postlaulau wrote:Based on : http://wiki.sandaysoft.com/a/Php_webtags Not up to daterequire_once("../php/cumuluswebtags.php");
This is my "Menu links file" (and the moon image selection fonction)require_once("../php/include.php");
try to change all "," to ";"if ($found){
$rtmin = $rtmin .",";
$rtmax = $rtmax .",";
$rtavg = $rtavg .",";
$rpluie = $rpluie .",";
$rventr = $rventr .",";
$rventt = $rventt .",";
$rpmin = $rpmin .",";
$rpmax = $rpmax .",";
$rhmin = $rhmin .",";
$rhmax = $rhmax .",";
}