Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Yet Another Dayfile Reader (PHP)

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

westonweather
Posts: 166
Joined: Sun 29 Dec 2013 8:37 am
Weather Station: WMR88
Operating System: Windows 7
Location: Weston-super-Mare
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by westonweather »

beteljuice wrote:Interesting ....

I can't decide ATM whether May is the exception or all the other 0.0 months :lol:

I shall be 'borrowing' your dayfile.txt for testing purposes if that's alright ?
Of course :)

I'll report back if/when I've managed to do anything with the westonweather server.

Dayfile attached.
You do not have the required permissions to view the files attached to this post.
User avatar
jdc
Posts: 142
Joined: Tue 19 Jun 2012 8:51 pm
Weather Station: Davis VP2 : Instromet
Operating System: Win 10
Location: Portsoy,.
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by jdc »

Very nice indeed! I've only missed about 3 releases!
I just downloaded betel_readDayfile.php only, and popped it up - no problems. As far as I can see, all is good -here..

I have extended colours = false and sanitize = 'false'.

I did notice that if

Code: Select all

$show_year_averages = false; 
that seems to stop the 'seasonal' view too, but I can't see why anyone would want to remove the averages!
westonweather
Posts: 166
Joined: Sun 29 Dec 2013 8:37 am
Weather Station: WMR88
Operating System: Windows 7
Location: Weston-super-Mare
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by westonweather »

I took an entirely new approach to the "problem" and replaced the server with a spare Quad Core machine I had kicking about and also installed Cumulus onto it, so I've turned off 2 boxes and replaced with one. It's eliminated a lot of network chatter too as now there isn't a whole load of file transfers happening across the network.

The Dayfile is installed here, within the sites template: http://www.westonweather.co.uk/daybyday.php

I still have the query outstanding about May being blank, which I know is being looked at as and when you have time.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Yet Another Dayfile Reader (PHP)

Post by beteljuice »

@ jdc

You're not wrong ! - I 'broke' it when I added some bits

@ all
Above Fixed but not released yet. As is the odd year averages behavour for < one year of data.
One twitch fix (Which probably won't cure westonweather php problem - cross post, won't matter now)

I want to try a couple of things before next 'release' - and go to the pub !!!!!

Edit: @ westonweather - that's giving out all sorts of errors :shock:
Image
......................Imagine, what you will KNOW tomorrow !
westonweather
Posts: 166
Joined: Sun 29 Dec 2013 8:37 am
Weather Station: WMR88
Operating System: Windows 7
Location: Weston-super-Mare
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by westonweather »

beteljuice wrote:
Edit: @ westonweather - that's giving out all sorts of errors :shock:
The first time the script runs from a different browser it seems to yes, if you refresh it doesn't come up with any errors at all. I haven't figured that out yet!
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Yet Another Dayfile Reader (PHP)

Post by beteljuice »

YET ANOTHER EXPERIMENT !

The beteljuice has thunk himself into a muddle over temperature gradients - I just can't get what I would like at the below zero values.

Would some people with extreme highs and extreme lows try this please and give feedback.
(<= -40, >= +40 C)

Edit: Download removed: superceded by release v1.5
Last edited by beteljuice on Mon 17 Feb 2014 3:37 am, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !
nossis
Posts: 89
Joined: Wed 28 Nov 2012 6:12 am
Weather Station: Davis Vantage Pro 2
Operating System: Win 10
Location: Perth AU
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by nossis »

beteljuice and all contributers :clap: :clap: :clap: :clap: :clap: :clap: :clap:

Ah this is just brilliant! Ruining EXPERIMENT Feb 16 here http://members.iinet.net.au/~nossis/weather/daysum.php

A big confirmation that temp rage colours are just perfect for me. Suspect that others may like to have the greens slightly lower to match what is considered as being comfortable in their locality?

Check my apparent temp high and dew point low to see more of a full spectrum of colours in use.
nossis
Posts: 89
Joined: Wed 28 Nov 2012 6:12 am
Weather Station: Davis Vantage Pro 2
Operating System: Win 10
Location: Perth AU
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by nossis »

Added Heat index
Was actually a lot easier than I thought.
Uploaded files are modified from the "EXPERIMENT - 16 Feb 2014" version
And also the languages file (now that one I suspect will be off as I used Google translate for other than English)

Added a line 99

Code: Select all

'hindx' => array($translit[$lang]['hindx'][0], $translit[$lang]['hindx'][1], true, 25, 'temp', 'ahl'),
Modified line 146

Code: Select all

if ($dataSet == 'maxtemp' || $dataSet == 'mintemp' || $dataSet == 'avgtemp' || $dataSet == 'tappmax' || $dataSet == 'tappmin' || $dataSet == 'dpmax' || $dataSet == 'dpmin' || $dataSet == 'hindx' || $dataSet == 'heatday' || $dataSet == 'coolday') {
And added lines into the lang file
Added line 46, add subsequent equivalent other languages further down the list.

Code: Select all

'hindx' => array('Heat Index', 'Maximum Heat Index Temperature'),
Enjoy

PS Woops I just realised my wind speed is set to knots in the file. Thought I had better note since it is different from original, Line 50
You do not have the required permissions to view the files attached to this post.
mikkimii
Posts: 42
Joined: Fri 23 Mar 2012 3:17 pm
Weather Station: Davis VP2
Operating System: Windows 7 x64 Pro
Location: Vilppula, Finland

Re: Yet Another Dayfile Reader (PHP)

Post by mikkimii »

beteljuice wrote:YET ANOTHER EXPERIMENT !

The beteljuice has thunk himself into a muddle over temperature gradients - I just can't get what I would like at the below zero values.

Would some people with extreme highs and extreme lows try this please and give feedback.
(<= -40, >= +40 C)
$temp_blue_extension = true; works perfect for me, thanks beteljuice :clap:

You can check my apparent temp low in year 2013: http://www.phpoint.fi/leka446/weather2/ ... hp?p=64-10 -> (Min "tuntuu kuin)

Now I have to figure out how to make this work perfectly in Leuven Template...
Br,
Mika
Image
User avatar
KarlS
Posts: 136
Joined: Tue 30 Nov 2010 3:01 pm
Weather Station: Ecowitt GW1003 / WH32 / WH41
Operating System: 64bit Bookworm on Pi4
Location: Bridge Lake, BC, Canada
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by KarlS »

Would some people with extreme highs and extreme lows try this please and give feedback. (<= -40, >= +40 C)
The new colours for the very low temperature really look fierce. Works for me! :clap:
For example, check out the min/max temperatures for 2012 <here>
Last edited by KarlS on Sun 16 Feb 2014 4:11 pm, edited 1 time in total.
westonweather
Posts: 166
Joined: Sun 29 Dec 2013 8:37 am
Weather Station: WMR88
Operating System: Windows 7
Location: Weston-super-Mare
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by westonweather »

KarlS wrote:
Would some people with extreme highs and extreme lows try this please and give feedback. (<= -40, >= +40 C)
The new colours for the very low temperature look realy fierce. Works for me! :clap:
Check out the min/max temperatures for 2012 <here>
The colours look great, that's certainly a wide variation of temperatures there. Mine will be mostly awash with yellow & green :D
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Yet Another Dayfile Reader (PHP)

Post by beteljuice »

OK - although nobody with really extreme low has 'come back' - the consensus seems good.

The beteljuice has tried to add even more 'twitch level' coding and will 'release' it later (do have to spend some time talking to the Lady beteljuice !)
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
KarlS
Posts: 136
Joined: Tue 30 Nov 2010 3:01 pm
Weather Station: Ecowitt GW1003 / WH32 / WH41
Operating System: 64bit Bookworm on Pi4
Location: Bridge Lake, BC, Canada
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by KarlS »

I just might have found an error in the C <--> F calculation for Heating/Cooling Degree days.
from Wikipedia: Note that, because HDD are relative to a base temperature (as opposed to being relative to zero), it is incorrect to add or subtract 32 when converting degree days from Celsius to Fahrenheit or vice versa.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Yet Another Dayfile Reader (PHP)

Post by beteljuice »

Thank You Karl - i'm glad somebodies got their eyes open :shock:
Although it would only be noticed when converting between units.
I just make it up as I go along (So spake the beteljuice) :lol:

So I need to move the formatOP logic from temps to temp diff - I'm on it.

Just in time as I was about to 'release' yet again :bash:
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Yet Another Dayfile Reader (PHP)

Post by beteljuice »

Guess What ? New Release

Download on first post ..

16 Feb 2014 - v1.5
  • Several new tweaks to stop twitch error reports.
    *NEW* Temperature colour gradient and logic changed.
    FIX - heat / cooling day unit conversion (Thanks Karl)
Edit:
Note: Temperature range -/+ 50 deg C.
Although a greater range than most kit can measure, we also need to cater for apparent (feels like) temp.
Last edited by beteljuice on Wed 23 Apr 2014 10:06 am, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !
Post Reply