@all
The beteljuice 'scraper' is a simple php 'include' file. It gleans the values requested as php variables with which you can do whatever you like.
ie. It can be used as a 'stand alone' - It has no dependency on any other code or resource.
In the Alt dashboard template there are two adjacent well described areas to replace, but that is only because of the WU 'switch' (Now redundant), accreditation change, and I have created different variable names. As stated above there will be an additional option of 'This Day' Norm (Averages), and the ORHL should work if wanted.
Still to check what 'Time' the noaa donor page rolls over (Fixed TZ, UTC, Locale requested TZ ?)
... and how that affects the grab file / cache file routine on (your) local server - maybe some extra setting up to do.
ATM the only set-up info required is wfo and sid - instructions in the file ...
// get this days record max / min temps with year and this days max / min avg temps
// wfo= location in lower_case, sid= location in UPPER_CASE as per https://w2.weather.gov/climate/
// click on map, next screen pick (2) nearest location click (4) Go - pop-up screen
// view source and look at wfo (lowercase) and sid (UPPERCASE) values in <input> section ;-)
$wfo = "oax";
$sid = "LNK";
// only need info every new day so use a cachefile
Edit:Arrgh ...
Now I see what Jerry was saying.
EDIT: Redundant material removed ... post for historic information only
@ 16:00 10th June locale TZ by report but now 17:00 (UTC -5) - and their query is 10th 21:00
Yesterday values block have become Today,
... and ..
Today values block have become Tomorrow
More importantly when do they 'flip' back again ?
There's going to have to be some serious logic checking on which area of data to scrape when.
... there's going to some delays guys