Release..V7.1.4 Fully php7 compliant (?) - 14 Jan 2021
BUG FIX - Seasonal table leap year problem and 'cookies' code updated.
>Large< . . . . >750 px wide< . . . . >700 px wide< with buttons ... .>700 px wide<
*NEW* .. >700 px wide< in CuMX 10.3+ template
You should be happy with general logic and PHP.
You should be uploading your dayfile.txt to 'the web' on a regular basis.
You should have a good understanding of your own data and spot any anomalies or glitches.
You should be able to follow comments and have little (If any) instruction ! - Cumulus, saratogaWX and WeatherByYou examples in "How To" file.
It can be used as a stand-alone or dropped into a suitable site template.
It can 'read' saratogaWX templates for language and $SITE Units Of Measure decisions.
It can 'read' Weather By You templates for language decisions.
Main file - betel_readDayfile - bug fix in Seasonal leap year
Distribution Contains:
- Three 'default' holders which use
Three different css files. (plus meteo template css)
betel_readDayfile.php
language translations file ...- cs (milos.jirik)
de (KarlS)
en (anon)
es (kocher)
fi (mikkimii)
fr (laulau)
it (BCJKiwi)
nl (nitrx)
no (sutne)
pl (pernaczy)
pt (BCJKiwi)
Six graphic files (daffodil.png, hatch2.jpg, leaf.png, snowflake.png, sun.png, raindrop.png) - cs (milos.jirik)
ALL files should be edited / saved as UTF-8 no BOM
Most dayfile data has been represented, and any unwanted options can easily be 'turned off'.
For ease of updates - main files as stand alone downloads. [They ARE included in distribution above].
Known limitations:
- Unable to show * (incomplete data advisory) for Daylight Hours.
Will give unreliable calculations for 'false' data which is 0 or 0.0 instead of null.
Anyone can 'play', but the beteljuice will NOT be answering any 'general' enquiries along the lines of "How do I ..." and "I want ...".
If you have unexpected figures - PLEASE check / clean-up your dayfile.txt
Edit: "Forgot To Mention"
If allowed vistors to the page will have their display unit preferences remembered by cookies for 30 days.
You can change the 'button' style menu for a 'drop-down'. (NO 'post' option)
Code: Select all
$buttons = true; // true = button options, false = dropdown options
Code: Select all
// which default 'table' do we want ?
if (!isset($_REQUEST["pane"])) {
$pane = 0; // 0 default - show 'daily', 1 - show 'seasonal'
} else {
$pane = $_REQUEST["pane"];
}
Code: Select all
// right at the bottom !!
if (isset($_GET['data'])) {
$dataSet = $_GET['data'];
} else {
$dataSet = 'maxtemp'; // default dataset
}
There are many things that can be 'tweaked', refer to 'How To' and comments in script.
A further suggestion from BCJKiwi for the SANITIZE list.
Just a thought about heatdays and cooldays.
I added these to the SANITIZE list quite a long time ago.
Why?
Well it seems to me that if the value on any one day is zero, then by definition it is NOT a heating day NOR a cooling day.
This change makes the average values make more sense to me.