Re: Yet Another Dayfile Reader (PHP)
Posted: Sun 03 Jul 2016 7:10 pm
... and I was wonderaing where the British Summer went ..... Finland !!!!
Support forum for Cumulus weather station software
https://cumulus.hosiene.co.uk/
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'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'
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')
)
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
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.