Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.6.3 (build 3079) - 21 May 2020 (please see important announcement regarding releases since 3.5.0)
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of the NOAA report and Snow Index drop-down menus to 2030)

See the Wiki to download the software or click on the Downloads link in the Forum Banner.

Yet Another Dayfile Reader (PHP)

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

Moderator: daj

User avatar
beteljuice
Posts: 2917
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: ex XP SP3 - now W10 laptop grr
Location: Dudley, West Midlands, UK

Re: Yet Another Dayfile Reader (PHP)

Post by beteljuice »

@Pantz ...

Nah ... 'cus I don't Feel Like it :)

What monitor you got ? > Display 3840 x 2160 (32 bit) (60Hz)
.. or are you running two screens ?

Literally just unboxed a threadripper 1950x with GTX1080 and looking for a monitor that doesn't lie about the colours :evil:
Image
......................Imagine, what you will KNOW tomorrow !

Phil23
Posts: 463
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Win7 Pro
Location: Australia

Re: Yet Another Dayfile Reader (PHP)

Post by Phil23 »

beteljuice wrote:
Sat 09 May 2020 11:28 pm
looking for a monitor that doesn't lie about the colours :evil:
I've had my dual AOC's telling the truth about colours for some time now.
They get calibrated with a Datacolor Colorimeter.

First up had a Spyder3 & now a Spyder5 from Datacolor.
https://www.datacolor.com/photography-d ... 5-welcome/

Still doesn't give me perfect blowups at the 1 hour lab though :lol:

Counter girl still insists they are fine & I may need to adjust my camera & maybe even check my monitor. :bash:

Mapantz
Posts: 716
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 10 x64
Location: Dorset - UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by Mapantz »

beteljuice wrote:
Sat 09 May 2020 11:28 pm
@Pantz ...

Nah ... 'cus I don't Feel Like it :)

What monitor you got ? > Display 3840 x 2160 (32 bit) (60Hz)
.. or are you running two screens ?

Literally just unboxed a threadripper 1950x with GTX1080 and looking for a monitor that doesn't lie about the colours :evil:
I don't have a dedicated monitor as such. I use my 4K TV as my screen, which is on a swivel wall bracket.

I've just finished building inside a new PC case myself. The one I had before was for a water loop, but it was rather big. I sold it and bought a white Be Quiet! Pure Base 500DX. I stepped away from Asus too, and got a Gigabyte Aorus Z390 Master mobo. I'm just waiting to get an Aorus 2060 Super for it.

https://warehamwx.co.uk/lychee/view.php ... 1061538864
https://warehamwx.co.uk/lychee/view.php ... 1061416646
https://warehamwx.co.uk/lychee/view.php ... 1061472806
Image

water01
Posts: 1866
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by water01 »

Is it a light show or a computer :D :D :D
David
Image

User avatar
mcrossley
Posts: 6440
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by mcrossley »

Looking at this again with a view to hacking my seasons to start with spring, I notice that the seasonal February data is flagged as incomplete each leap year (2016, 2012, 2008). But the February in question will actually be from the year following the leap years though.

User avatar
mcrossley
Posts: 6440
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by mcrossley »

Ah, yes, because it is using the season year in cal_days_in_month(). The actual year in say Feb 2016 (seasonal) will be 2017 = 28 days, but lookup will find 29 days.

So, the checks need to be something like this...

Code: Select all

                        $dayCnt = cal_days_in_month(CAL_GREGORIAN, $m_offset[$m], $typeS_year[$d] + ($m_offset[$m] < 3 ? 1 : 0));
                        $short =  (count($turd) < $dayCnt) ? '*' : '';

freddie
Posts: 706
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2
Operating System: Ubuntu 18.04 (LXC container)
Location: Dorrington, Shropshire, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by freddie »

mcrossley wrote:
Fri 22 May 2020 3:23 pm

Code: Select all

                        count($turd)
I was always taught to give my variables meaningful names :lol: :lol: :lol:
Freddie
Image

User avatar
beteljuice
Posts: 2917
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: ex XP SP3 - now W10 laptop grr
Location: Dudley, West Midlands, UK

Re: Yet Another Dayfile Reader (PHP)

Post by beteljuice »

@Mark

How many years have I been debugging this and you still find errors ? :cry:

@freddie

Nothing like processing waste, plus it reflects the beteljuices demeanour at the (recoding) time ;)

@ALL

I'll have a investigate sometime, I need to include the small cookies mod anyway.
Image
......................Imagine, what you will KNOW tomorrow !

User avatar
mcrossley
Posts: 6440
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by mcrossley »

beteljuice wrote:
Fri 22 May 2020 4:51 pm
@Mark

How many years have I been debugging this and you still find errors ? :cry:
We aim to please! My version is now fixed I think.

freddie
Posts: 706
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2
Operating System: Ubuntu 18.04 (LXC container)
Location: Dorrington, Shropshire, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by freddie »

beteljuice wrote:
Fri 22 May 2020 4:51 pm
@freddie

Nothing like processing waste, plus it reflects the beteljuices demeanour at the (recoding) time ;)
:lol: :lol:
Freddie
Image

Post Reply