Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.0.0 (build 4022) - 11 May 2024
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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 V4 release 4.0.0 (build 4022) - 11 May 2024
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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
- 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)
... and I was wonderaing where the British Summer went ..... Finland !!!!
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 89
- Joined: Mon 30 Jan 2012 5:09 pm
- Weather Station: Davis Vantage Pro 2 Cabled
- Operating System: Windows 7
- Location: Central Florida USA
- Contact:
Re: Yet Another Dayfile Reader (PHP)
Hello beteljuice,
Have you checked your PM's lately? I sent you a PM regarding the dayfile reader.
Thanks.
Have you checked your PM's lately? I sent you a PM regarding the dayfile reader.
Thanks.
Sperry
Lake Jackson Weather
Lake Jackson Weather
-
- Posts: 1828
- Joined: Sat 17 Dec 2011 11:55 am
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 11 x64
- Location: Dorset - UK
- Contact:
Re: Yet Another Dayfile Reader (PHP)
I've noticed a small bug in the sunshine 'daily' stats..
http://www.warehamwx.co.uk/cumulus/datasummary.php
In the sections for Avg: Hi: and Lo: The wrong value is showing in the 'Hi'
http://www.warehamwx.co.uk/cumulus/datasummary.php
In the sections for Avg: Hi: and Lo: The wrong value is showing in the 'Hi'
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Yet Another Dayfile Reader (PHP)
It appears to be ignoring any figure higher than 9.9. Wrong kind of sorting?Mapantz wrote:In the sections for Avg: Hi: and Lo: The wrong value is showing in the 'Hi'
Steve
-
- Posts: 1828
- Joined: Sat 17 Dec 2011 11:55 am
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 11 x64
- Location: Dorset - UK
- Contact:
Re: Yet Another Dayfile Reader (PHP)
I've just seen a post a few pages back, mentioning the same thing.steve wrote:It appears to be ignoring any figure higher than 9.9. Wrong kind of sorting?Mapantz wrote:In the sections for Avg: Hi: and Lo: The wrong value is showing in the 'Hi'
I downloaded the full zip again, and it appears to be rectified.
-
- Posts: 231
- Joined: Thu 10 Dec 2015 6:41 am
- Weather Station: Davis Vantage Pro2
- Operating System: Win 11 Home
- Location: Brisbane, Queensland, Australia
- Contact:
Re: Yet Another Dayfile Reader (PHP)
Hi
I have just inplemented this software on my site (kstwx.net/cu/index.htm). However despite having the under quoted at line 33 in my betel_readDayfile.php file:
$buttons = true; // true = button options, false = dropdown options
it shows a drop down list.
Could anyone tell me how to get the button option working, please.
Thanks
I have just inplemented this software on my site (kstwx.net/cu/index.htm). However despite having the under quoted at line 33 in my betel_readDayfile.php file:
$buttons = true; // true = button options, false = dropdown options
it shows a drop down list.
Could anyone tell me how to get the button option working, please.
Thanks
Keith
Davis Vantage Pro2 Model #6152AU - CumulusMX - Win11 - Saratoga/CUMX Default Scripts
https://www.kstwx.net/index.php
https://www.kstwx.net/cumx/index.html
Davis Vantage Pro2 Model #6152AU - CumulusMX - Win11 - Saratoga/CUMX Default Scripts
https://www.kstwx.net/index.php
https://www.kstwx.net/cumx/index.html
-
- Posts: 1828
- Joined: Sat 17 Dec 2011 11:55 am
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 11 x64
- Location: Dorset - UK
- Contact:
Re: Yet Another Dayfile Reader (PHP)
Hi
It looks as though you're missing the datasummary css?!
Just popped on the laptop to check, and sure enough, a 404 error:
http://www.kstwx.net/cu/betel_datasummary.css
It looks as though you're missing the datasummary css?!
Just popped on the laptop to check, and sure enough, a 404 error:
http://www.kstwx.net/cu/betel_datasummary.css
-
- Posts: 231
- Joined: Thu 10 Dec 2015 6:41 am
- Weather Station: Davis Vantage Pro2
- Operating System: Win 11 Home
- Location: Brisbane, Queensland, Australia
- Contact:
Re: Yet Another Dayfile Reader (PHP)
Hi Hapantz
Thanks.
That fixed it.
best wishes
Keith
Thanks.
That fixed it.
best wishes
Keith
Keith
Davis Vantage Pro2 Model #6152AU - CumulusMX - Win11 - Saratoga/CUMX Default Scripts
https://www.kstwx.net/index.php
https://www.kstwx.net/cumx/index.html
Davis Vantage Pro2 Model #6152AU - CumulusMX - Win11 - Saratoga/CUMX Default Scripts
https://www.kstwx.net/index.php
https://www.kstwx.net/cumx/index.html
-
- Posts: 67
- Joined: Wed 15 Feb 2017 6:07 pm
- Weather Station: Davis VP2
- Operating System: Windows 11 Pro
- Location: Bismarck, ND USA
- Contact:
Re: Yet Another Dayfile Reader (PHP)
I have the program up and running. But I have one question.
http://www.bismarckweather.net/dayfiletxt/basic.php
When you go to rainfall, why is my bottom figures all zero's? I'm running MX and not version 1.94.
http://www.bismarckweather.net/dayfiletxt/basic.php
When you go to rainfall, why is my bottom figures all zero's? I'm running MX and not version 1.94.
- mcrossley
- Posts: 12823
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Yet Another Dayfile Reader (PHP)
It is showing the average daily rainfall for each month, which for you *is* zero.
- kocher
- Posts: 233
- Joined: Sat 19 Apr 2014 7:57 pm
- Weather Station: Davis Vantage Pro2+
- Operating System: Windows 10
- Location: San Sebastian - Spain
- Contact:
Re: Yet Another Dayfile Reader (PHP)
Spanish translation:
Code: Select all
'es' => array(// Español
'daily' => 'Diario', // drop-down table selector
'seasonal' => 'Estaciones', // drop-down table selector
'note' => array('Nota','Datos incompletos.', 'Cero tratado como nulo !'),
'loading' => 'Obteniendo datos ...',
'fail' => 'Error en la obtención de los datos !!!',
'total' => 'Σ',
'avg' => 'Med',
'hi' => 'Máx',
'lo' => 'Mín',
'dom' => 'Dom', // short for dominant (wind direction)
'season_1' => '<img src="snowflake.png" height="22px" alt="Winter" />Invierno', // previous Dec, Jan, Feb
'season_2' => '<img src="daffodil.png" height="22px" alt="Spring" />Primavera', // Mar, Apr, May
'season_3' => '<img src="sun.png" height="22px" alt="Summer" />Verano', // Jun, Jul, Aug
'season_4' => '<img src="leaf.gif" height="22px" alt="Autumn" />Otoño', // Sep, Oct, Nov
'mn' => array('Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'),
'dy' => array('Dom','Lun','Mar','Mié','Jue','Vie','Sáb'),
'compass_headings' => array('N ↓','NE ↙','E ←','SE ↖','S ↑','SW ↗','W →','NW ↘','N ↓'),
'maxtemp' => array('Máx T°', 'Temperatura Máxima'),
'mintemp' => array('Mín T°', 'Temperatura Mínima'),
'tdiff' => array('Dif T°', 'T° Diferencia'),
'avgtemp' => array('Temp Med', 'Temperatura media'),
'tappmax' => array('Máx T° Ap', 'Maximum Apparent Temperature'),
'tappmin' => array('Mín T° Ap', 'Minimum Apparent Temperature'),
'dpmax' => array('Máx PR', 'Maximum Dew Point Temperature'),
'dpmin' => array('Mín PR', 'Minimum Dew Point Temperature'),
'rhmax' => array('Máx Hum', 'Maximum Relative Humidity %'),
'rhmin' => array('Mín Hum', 'Minimum Relative Humidity %'),
'rainfall' => array('Lluvia', 'Lluvia'),
'windspd' => array('Viento', 'Highest Velocidad del Viento '),
'windgust' => array('Rachas', 'Racha Máxima'),
'windrun' => array('Recorrido', 'Recorrido del Viento'),
'winddir' => array('Dirección', 'Dirección del Viento Dominante'),
'baromax' => array('Baro Máx', 'Presión - Max'),
'baromin' => array('Baro Mín', 'Presión - Min'),
'HoursSun' => array('Horas Sol', 'Horas de Sol'),
'Solar' => array('Solar', 'Energía Solar W/m²'),
'HighUV' => array('Indice UV', 'Indice UV'),
'evt' => array('Evapotranspiración', 'Evapotranspiración'),
'heatday' => array('Grados-Día Calentar', 'Heating Day'),
'coolday' => array('Grados-Día Enfríar', 'Cooling Day')
)
-
- Posts: 225
- Joined: Sat 27 Aug 2016 12:11 am
- Weather Station: Davis vantage pro 2
- Operating System: Debian
- Location: Wickliffe, Ohio
- Contact:
Re: Yet Another Dayfile Reader (PHP)
With php 7.1 i get an error
From apache error log
Now this does work just fine with php 5.6
From apache error log
Code: Select all
[php7:notice] [pid 12140] [client 192.168.0.27:55028] PHP Fatal error: Uncaught Error: [] operator not supported for strings in /var/www/html/betel_readDayfile.php:804\nStack trace:\n#0 /var/www/html/betel_readDayfile.php(1549): drawCalendar('2017')\n#1 /var/www/html/basic.php(11): include('/var/www/html/b...')\n#2 {main}\n thrown in /var/www/html/betel_readDayfile.php on line 804
Jeff
My Site http://wickliffeweather.com/
WeatherUnderground https://www.wunderground.com/personal-w ... KOHYOUNG21
My Site http://wickliffeweather.com/
WeatherUnderground https://www.wunderground.com/personal-w ... KOHYOUNG21
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Yet Another Dayfile Reader (PHP)
Hi
I wrote about this earlier but not sure where and not sure I posted what I actually did.
line 804 In betel_readDayfile.php original Version: 3.1 - 04 Mar 2014
replace this;
if($dataSet != 'winddir') $alltime[$m][] = $thisValue;
with this
if($dataSet != 'winddir') $alltime[$m] = $thisValue;
and in original line 951
replace this;
$seasonTot[$sT][] = $thisValue;
with this
$seasonTot[$sT] = $thisValue;
i.e. remove the extra [ ] in each case, It is all about changes in PHP 7's handling of arrays.
I wrote about this earlier but not sure where and not sure I posted what I actually did.
line 804 In betel_readDayfile.php original Version: 3.1 - 04 Mar 2014
replace this;
if($dataSet != 'winddir') $alltime[$m][] = $thisValue;
with this
if($dataSet != 'winddir') $alltime[$m] = $thisValue;
and in original line 951
replace this;
$seasonTot[$sT][] = $thisValue;
with this
$seasonTot[$sT] = $thisValue;
i.e. remove the extra [ ] in each case, It is all about changes in PHP 7's handling of arrays.
-
- Posts: 225
- Joined: Sat 27 Aug 2016 12:11 am
- Weather Station: Davis vantage pro 2
- Operating System: Debian
- Location: Wickliffe, Ohio
- Contact:
Re: Yet Another Dayfile Reader (PHP)
That did fix that problem so now it will display in php7 and 7.1BCJKiwi wrote:Hi
I wrote about this earlier but not sure where and not sure I posted what I actually did.
line 804 In betel_readDayfile.php original Version: 3.1 - 04 Mar 2014
replace this;
if($dataSet != 'winddir') $alltime[$m][] = $thisValue;
with this
if($dataSet != 'winddir') $alltime[$m] = $thisValue;
and in original line 951
replace this;
$seasonTot[$sT][] = $thisValue;
with this
$seasonTot[$sT] = $thisValue;
i.e. remove the extra [ ] in each case, It is all about changes in PHP 7's handling of arrays.
Thank you very much!
now i do get another error even though it seems to be working properly from what i can tell it is more of a warning than an error so i just enabled the error_reporting(0); so i dont see it (maybe thats why it was there in the first place)
but the warning is :
Warning: Illegal string offset 'short' in /var/www/html/betel_readDayfile.php on line 1128,
Like i said its working fine so dont think there is a cause for alarm
Thanks Again
Jeff
My Site http://wickliffeweather.com/
WeatherUnderground https://www.wunderground.com/personal-w ... KOHYOUNG21
My Site http://wickliffeweather.com/
WeatherUnderground https://www.wunderground.com/personal-w ... KOHYOUNG21
- 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)
The beteljuice is still unconvinced about the 'workaround'
I've just spent several hours trying to get it to work accross php versions and the figures just aren't correct in either one place or another !
... to do list
I've just spent several hours trying to get it to work accross php versions and the figures just aren't correct in either one place or another !
... to do list
......................Imagine, what you will KNOW tomorrow !