Log.xml: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
no edit summary
m (added link to post in support forum)
mNo edit summary
 
<code>
// =======================================================
// This snippet is used for Cumulus 1 with XML based diary
// =======================================================
$fh = fopen($snowDiary, 'r'); // $snowDiary has to contain full path based on root or relative to where your script is
if ($fh == FALSE)
{
echo 'ERROR - cannot access weather diary';
}else{
if($debug) echo 'Success, database ' . $snowDiary . ' is open' . PHP_EOL;
$data = fread($fh, filesize($snowDiary));
$Entry = Null; // Other variables were previously set to values appropriate for the lowest temperature
goto snowDone;
}
snowDone:</code>
 
5,838

edits

Navigation menu