Software > Tu Web Meteorológica

Plantilla Jachym (Meteotemplate)

<< < (39/180) > >>

jachym:
I guess this doesn’t need much comments, just wanted to say big thank you to everyone who supports me and for all the help and great feedback you gave me. Since there were so many people I have been in contact with in the past few months, I decided not to mention anyone in particular. I would never even in my wildest dream imagine this will grow so big, I expected maybe 2 or 3 people giving it a try just for fun...

Thanks!!!
None of this would be possible if I did not enjoy doing this and I enjoy it because I see it actually makes sense and people find it useful!

Jachym

kocher:
 

             :D              :aplaude1:

Silose Novengo:
El problemilla que tengo es que no paso de aqui.
--------------------------------------------------------------------------------------------
( ! ) SCREAM: Error suppression ignored for
( ! ) Notice: Undefined offset: 2 in C:\wamp\www\template\install\Cumulus.php on line 43
Call Stack
#   Time   Memory   Function   Location
1   0.0008   312448   {main}( )   ..\Cumulus.php:0
( ! ) SCREAM: Error suppression ignored for
( ! ) Notice: Undefined offset: 1 in C:\wamp\www\template\install\Cumulus.php on line 44
Call Stack
#   Time   Memory   Function   Location
1   0.0008   312448   {main}( )   ..\Cumulus.php:0
Importing 2015-10-01...
CUMULUS IMPORT
SUCCESSFULLY UPLOADED RECORDS!
----------------------------------------------------------------------------------------------
Y no importa ningun registro. Un ejemplo de registro de Cumulus que intento importar es este:

01/10/15;00:00;25,2;54;15,2;0,0;0,0;135;0,0;0,0;1008,30;58,2;25,7;48;0,0;25,2;26,1;0;0;0,00;0,00;26,9;0;0,0;135;0,0;0,0

Decir que la base de datos ok, la importacion del realtime.txt ok

-el trozo de codigo del archivo cumulus.php donde dice que falla el codigo.

   $log = fopen($path, "r") or die("Unable to open specified file!");
   while(!feof($log)) {
      $data = fgets($log);
      $row = explode(';', $data);
      $currentDate = explode("-",$row[0]);
linea 43      $year = $currentDate[2]+2000;
linea 44      $month = $currentDate[1];
      $month = ltrim($month, '0');
      $day = $currentDate[0];

Y hasta aqui mi infortunio. Porfa un alma caritativa que me oriente.
Salud.

jachym:

--- Cita de: Silose Novengo en 02 de Marzo de 2016, 12:01:44 ---El problemilla que tengo es que no paso de aqui.
--------------------------------------------------------------------------------------------
( ! ) SCREAM: Error suppression ignored for
( ! ) Notice: Undefined offset: 2 in C:\wamp\www\template\install\Cumulus.php on line 43
Call Stack
#   Time   Memory   Function   Location
1   0.0008   312448   {main}( )   ..\Cumulus.php:0
( ! ) SCREAM: Error suppression ignored for
( ! ) Notice: Undefined offset: 1 in C:\wamp\www\template\install\Cumulus.php on line 44
Call Stack
#   Time   Memory   Function   Location
1   0.0008   312448   {main}( )   ..\Cumulus.php:0
Importing 2015-10-01...
CUMULUS IMPORT
SUCCESSFULLY UPLOADED RECORDS!
----------------------------------------------------------------------------------------------
Y no importa ningun registro. Un ejemplo de registro de Cumulus que intento importar es este:

01/10/15;00:00;25,2;54;15,2;0,0;0,0;135;0,0;0,0;1008,30;58,2;25,7;48;0,0;25,2;26,1;0;0;0,00;0,00;26,9;0;0,0;135;0,0;0,0

Decir que la base de datos ok, la importacion del realtime.txt ok

-el trozo de codigo del archivo cumulus.php donde dice que falla el codigo.

   $log = fopen($path, "r") or die("Unable to open specified file!");
   while(!feof($log)) {
      $data = fgets($log);
      $row = explode(';', $data);
      $currentDate = explode("-",$row[0]);
linea 43      $year = $currentDate[2]+2000;
linea 44      $month = $currentDate[1];
      $month = ltrim($month, '0');
      $day = $currentDate[0];

Y hasta aqui mi infortunio. Porfa un alma caritativa que me oriente.
Salud.

--- Fin de la cita ---

Hi,
I do not understand your post, but just by looking at the code, it seems like your cumulus log files are formatted slightly differently (cumulus is very inconsistent... which is why I prefer Weather Display)

Try changin line 42 to this:

 $currentDate = explode("/",$row[0]);

Silose Novengo:
Thank you very much friend, you're super fast response.
The change that you mentioned has no effect that only sets the date separator and fine.
I have a station with Weather Display, and would have no trouble using it. I have a new weather station and I would like to have it with cumulus clouds, but going to import data I found the problem mentioned.
Appears in the code php
$ Year = $ currentDate [2] +2000;
$ Month = $ currentDate [1];
and the error is "Undefined offset: 1 and 2"
It is attempting to read from an array that is not defined and not where it should be done, or at least what I understand, good my English is not very good but at least I try haha.
My best wishes.

Navegación

[0] Índice de Mensajes

[#] Página Siguiente

[*] Página Anterior

Ir a la versión completa