Page 26 of 55

Re: Yet Another Dayfile Reader (PHP)

Posted: Sun 03 Jul 2016 7:10 pm
by beteljuice
... and I was wonderaing where the British Summer went ..... Finland !!!!

Re: Yet Another Dayfile Reader (PHP)

Posted: Thu 14 Jul 2016 12:55 am
by sperry russ
Hello beteljuice,

Have you checked your PM's lately? I sent you a PM regarding the dayfile reader.

Thanks.

Re: Yet Another Dayfile Reader (PHP)

Posted: Sun 14 Aug 2016 3:50 pm
by Mapantz
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'

Re: Yet Another Dayfile Reader (PHP)

Posted: Sun 14 Aug 2016 3:59 pm
by steve
Mapantz wrote:In the sections for Avg: Hi: and Lo: The wrong value is showing in the 'Hi'
It appears to be ignoring any figure higher than 9.9. Wrong kind of sorting?

Re: Yet Another Dayfile Reader (PHP)

Posted: Sun 14 Aug 2016 5:08 pm
by Mapantz
steve wrote:
Mapantz wrote:In the sections for Avg: Hi: and Lo: The wrong value is showing in the 'Hi'
It appears to be ignoring any figure higher than 9.9. Wrong kind of sorting?
I've just seen a post a few pages back, mentioning the same thing. :oops:
I downloaded the full zip again, and it appears to be rectified. :D

Re: Yet Another Dayfile Reader (PHP)

Posted: Mon 03 Apr 2017 6:14 am
by griffo42
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

Re: Yet Another Dayfile Reader (PHP)

Posted: Mon 03 Apr 2017 10:20 am
by Mapantz
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

Re: Yet Another Dayfile Reader (PHP)

Posted: Tue 04 Apr 2017 1:46 am
by griffo42
Hi Hapantz

Thanks.

That fixed it.

best wishes

Keith

Re: Yet Another Dayfile Reader (PHP)

Posted: Sun 09 Apr 2017 6:00 pm
by 92merc
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.

Re: Yet Another Dayfile Reader (PHP)

Posted: Sun 09 Apr 2017 6:55 pm
by mcrossley
It is showing the average daily rainfall for each month, which for you *is* zero.

Re: Yet Another Dayfile Reader (PHP)

Posted: Mon 10 Apr 2017 8:57 am
by kocher
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&ntilde;o', // Sep, Oct, Nov
                    'mn' => array('Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'),
                    'dy' => array('Dom','Lun','Mar','Mi&eacute;','Jue','Vie','S&aacute;b'),
                    'compass_headings' => array('N&nbsp;&#x2193;','NE&nbsp;&#x2199;','E&nbsp;&#x2190;','SE&nbsp;&#x2196;','S&nbsp;&#x2191;','SW&nbsp;&#x2197;','W&nbsp;&#x2192;','NW&nbsp;&#x2198;','N&nbsp;&#x2193;'),
                    'maxtemp' => array('Máx T&deg;', 'Temperatura Máxima'),
                    'mintemp' => array('Mín T&deg;', 'Temperatura Mínima'),
                    'tdiff' => array('Dif T&deg;', 'T&deg; Diferencia'),
                    'avgtemp' => array('Temp Med', 'Temperatura media'),
                    'tappmax' => array('M&aacute;x T&deg; Ap', 'Maximum Apparent Temperature'),
                    'tappmin' => array('M&iacute;n T&deg; Ap', 'Minimum Apparent Temperature'),
                    'dpmax' => array('M&aacute;x PR', 'Maximum Dew Point Temperature'),
                    'dpmin' => array('M&iacute;n PR', 'Minimum Dew Point Temperature'),
                    'rhmax' => array('M&aacute;x Hum', 'Maximum Relative Humidity %'),
                    'rhmin' => array('M&iacute;n Hum', 'Minimum Relative Humidity %'),
                    'rainfall' => array('Lluvia', 'Lluvia'),
                    'windspd' => array('Viento', 'Highest Velocidad del Viento '),
                    'windgust' => array('Rachas', 'Racha M&aacute;xima'),
                    'windrun' => array('Recorrido', 'Recorrido del Viento'),
                    'winddir' => array('Direcci&oacute;n', 'Dirección del Viento Dominante'),
                    'baromax' => array('Baro M&aacute;x', 'Presi&oacute;n  - Max'),
                    'baromin' => array('Baro M&iacute;n', 'Presi&oacute;n - Min'),
                    'HoursSun' => array('Horas Sol', 'Horas de Sol'),
                    'Solar' => array('Solar', 'Energ&iacute;a Solar W/m&sup2;'),
                    'HighUV' => array('Indice UV', 'Indice UV'),
                    'evt' => array('Evapotranspiraci&oacute;n', 'Evapotranspiraci&oacute;n'),
                    'heatday' => array('Grados-D&iacute;a Calentar', 'Heating Day'),
                    'coolday' => array('Grados-D&iacute;a Enfr&iacute;ar', 'Cooling Day')
                )


Re: Yet Another Dayfile Reader (PHP)

Posted: Sat 15 Apr 2017 5:26 am
by jlmr731
With php 7.1 i get an error
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 
Now this does work just fine with php 5.6

Re: Yet Another Dayfile Reader (PHP)

Posted: Sat 15 Apr 2017 10:25 pm
by BCJKiwi
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.

Re: Yet Another Dayfile Reader (PHP)

Posted: Sun 16 Apr 2017 2:47 am
by jlmr731
BCJKiwi 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.
That did fix that problem so now it will display in php7 and 7.1
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

Re: Yet Another Dayfile Reader (PHP)

Posted: Sun 16 Apr 2017 3:14 am
by beteljuice
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