Get well soon, hope it's nothing serious!!the beteljuice is in hospital ATM, so very limited support or attention span
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
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)
Moderator: daj
-
- Posts: 3250
- Joined: Sat 13 Aug 2011 9:33 am
- Weather Station: Ecowitt HP2551
- Operating System: Windows 10 64bit
- Location: Burnham-on-Sea
- Contact:
Re: Yet Another Dayfile Reader (PHP)
-
- Posts: 512
- Joined: Mon 28 Nov 2011 2:13 am
- Weather Station: Davis VP2/ WLL with DFARS
- Operating System: RPi Raspbian (Buster)
- Location: Ferny Grove, Brisbane, Australia
- Contact:
Re: Yet Another Dayfile Reader (PHP)
Sorry to hear
I don't see anything in the logs from what I can see but when I enable the error reporting in the script I do get:
Fatal error: Uncaught Error: Call to undefined function cal_days_in_month() in /home/fernygro/public_html/test/betel_readDayfile.php:670 Stack trace: #0 /home/fernygro/public_html/test/betel_readDayfile.php(2226): drawCalendar('2019') #1 /home/fernygro/public_html/test/annual-data-summary.php(11): include_once('/home/fernygro/...') #2 {main} thrown in /home/fernygro/public_html/test/betel_readDayfile.php on line 670
I don't see anything in the logs from what I can see but when I enable the error reporting in the script I do get:
Fatal error: Uncaught Error: Call to undefined function cal_days_in_month() in /home/fernygro/public_html/test/betel_readDayfile.php:670 Stack trace: #0 /home/fernygro/public_html/test/betel_readDayfile.php(2226): drawCalendar('2019') #1 /home/fernygro/public_html/test/annual-data-summary.php(11): include_once('/home/fernygro/...') #2 {main} thrown in /home/fernygro/public_html/test/betel_readDayfile.php on line 670
- 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)
according to wobbly wibbly wisdom - "recompile php with the '--enable-calendar'" option."Uncaught Error: Call to undefined function cal_days_in_month
This is not program error, but a PHP function that is not performing correctly.
......................Imagine, what you will KNOW tomorrow !
- 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)
@matt
knock, knock ....
Is everything working now ?
BTW - still at the vets, hopefully an escape bid tomorrow
knock, knock ....
Is everything working now ?
BTW - still at the vets, hopefully an escape bid tomorrow
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 512
- Joined: Mon 28 Nov 2011 2:13 am
- Weather Station: Davis VP2/ WLL with DFARS
- Operating System: RPi Raspbian (Buster)
- Location: Ferny Grove, Brisbane, Australia
- Contact:
Re: Yet Another Dayfile Reader (PHP)
Hi,
Yes, it's working correctly once I figured this out, in its proper location: https://www.fernygroveweather.com/annua ... mmary.php
Hope you have a great escape.
Thanks
Yes, it's working correctly once I figured this out, in its proper location: https://www.fernygroveweather.com/annua ... mmary.php
Hope you have a great escape.
Thanks
- 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)
@Matt - back to basics nice clean, clear site you've made.
Only comment I would make is with the temperature gradients you have, and your High / Low values you may as well tweak the code so that the actual 'value' is font color black for greater clarity, or modify the value where it changes from black to white.
The beteljuice has literally just been sprung from confinement (12 hours later than promised due to a paper chase)
Now trying to get some sort of schedule together for pill taking, washing, pill taking, shopping, pill taking, district nurse visit, pill taking, go see practise nurse, pill taking etc. etc .etc.
Oh ..... nearly time for a four hourly pill ... rattle rattle
Only comment I would make is with the temperature gradients you have, and your High / Low values you may as well tweak the code so that the actual 'value' is font color black for greater clarity, or modify the value where it changes from black to white.
The beteljuice has literally just been sprung from confinement (12 hours later than promised due to a paper chase)
Now trying to get some sort of schedule together for pill taking, washing, pill taking, shopping, pill taking, district nurse visit, pill taking, go see practise nurse, pill taking etc. etc .etc.
Oh ..... nearly time for a four hourly pill ... rattle rattle
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 512
- Joined: Mon 28 Nov 2011 2:13 am
- Weather Station: Davis VP2/ WLL with DFARS
- Operating System: RPi Raspbian (Buster)
- Location: Ferny Grove, Brisbane, Australia
- Contact:
Re: Yet Another Dayfile Reader (PHP)
Thanks for the feedback. A clean and responsive design but not necessarily a simple site was the intention. The idea behind that I didn't want to get bogged down in a web design project that would take forever and instead let the content do the heavy lifting instead.
Good point regarding the colour contrast and so I tried having all the temperature values of black font colour. That worked fine but not so with the dark red at 40 C +. So instead I darken the colours slightly and the colour contrast looks OK to me. What do you think now?
The default colours were not suitable for my subtropical location, which shows every 30 C + day in red. A maximum around 30 C is normal in summer and while that is hot, 35 C and above is of greater significance.
Good point regarding the colour contrast and so I tried having all the temperature values of black font colour. That worked fine but not so with the dark red at 40 C +. So instead I darken the colours slightly and the colour contrast looks OK to me. What do you think now?
The default colours were not suitable for my subtropical location, which shows every 30 C + day in red. A maximum around 30 C is normal in summer and while that is hot, 35 C and above is of greater significance.
- 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)
@Matt
... dosen't really work for my tired old eyes I'm afraid.
You could try adding font-weight: bold; or <b> .... </b> to the color white decision build-up.
... dosen't really work for my tired old eyes I'm afraid.
You could try adding font-weight: bold; or <b> .... </b> to the color white decision build-up.
Last edited by beteljuice on Sat 08 Jun 2019 10:22 pm, edited 1 time in total.
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 512
- Joined: Mon 28 Nov 2011 2:13 am
- Weather Station: Davis VP2/ WLL with DFARS
- Operating System: RPi Raspbian (Buster)
- Location: Ferny Grove, Brisbane, Australia
- Contact:
Re: Yet Another Dayfile Reader (PHP)
I think I have this more readable now. I have adjusted the colours slightly and also modified the black/white font colour value changes.
- 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)
@Matt - yup that looks more readable.
Most of my scripts are meant to be customisable, but this one is long and not as friendly as others - so well done
.. carry on regardless
Most of my scripts are meant to be customisable, but this one is long and not as friendly as others - so well done
.. carry on regardless
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 24
- Joined: Mon 20 May 2019 1:16 am
- Weather Station: PCE-FWS-20
- Operating System: Windows 10
- Location: Limbiate, Italy
- Contact:
Re: Yet Another Dayfile Reader (PHP)
Hi everyone, I have a problem in the dayfile reader, as you can see the pages are loaded, on cumulus the dayfile is seen.
It gives me this error "filed to open dayfile".
http://meteobrianza.altervista.org/wp-c ... ummary.php
I tried to track the file extension etc. but nothing to do.
It gives me this error "filed to open dayfile".
http://meteobrianza.altervista.org/wp-c ... ummary.php
I tried to track the file extension etc. but nothing to do.
- 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)
Change:
To:
Code: Select all
$dayfile = "/meteo/dayfile.txt"; // to work correctly this should be a relative address NOT full url
Code: Select all
$dayfile = "dayfile.txt"; // to work correctly this should be a relative address NOT full url
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 884
- Joined: Sat 16 Jul 2016 11:59 pm
- Weather Station: Davis VP2+ & GW1000 (Standalone)
- Operating System: Win10 Pro / rPi Buster
- Location: Australia
Re: Yet Another Dayfile Reader (PHP)
Just found what I'm looking for in this & have uploaded some files to give it a try.
http://weather.inverellit.com/basic.php
The unexpected thing is that I see an error, "Failed to open day file",
BUT only when I choose to view EVT, ironically what I was most interested in.
Have had a browse thru readDayFile.php, but don't see anything that stands out.
All the others work, including Solar & UV.
Any thoughts anyone.
Thanks
Phil
http://weather.inverellit.com/basic.php
The unexpected thing is that I see an error, "Failed to open day file",
BUT only when I choose to view EVT, ironically what I was most interested in.
Have had a browse thru readDayFile.php, but don't see anything that stands out.
All the others work, including Solar & UV.
Any thoughts anyone.
Thanks
Phil
:Now: :Today/Yesterday:
Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
- 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)
Looks like you fixed it
......................Imagine, what you will KNOW tomorrow !