Release..V7.1.1 Fully php7 compliant (?)
MAJOR CHANGES TO SEASONAL DATA (Dec, Jan, Feb were attributed to wrong year)
Rainfall, EVT, WindRun display changed to show year / season totals / avg
Optional: Rain Days summary included with rainfall
>Large< . . . . >750 px wide< . . . . >700 px wide< with buttons ...>700 px wide< with dropdown
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.
6th Aug 2019- v7.1.1
- Main file - betel_readDayfile - rebuilt - major changes to Seasonal stuff
How To - line number references updated,
- 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.
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
}