Meteoclimatic

Software => WeeWX => Mensaje iniciado por: manolodos en 04 de Junio de 2024, 21:13:18

Título: Weewx no genera ficheros html
Publicado por: manolodos en 04 de Junio de 2024, 21:13:18
Hola

Por error he sobreescrito el fichero weewx.conf con otra version antigua y ahora pues no funciona correctamente
La he revisado y modificado algunas rutas que no estaban bien

Añade bien los registros de datos al fichero*.sdb
Genera las imagenes del skin Seasons
NO genera el index.html ni meteoclimatic.html

El log dice esto

Jun  4 18:45:15 raspberrypi weewx-malaga[15315] INFO weewx.manager: Added record 2024-06-04 18:45:00 UTC (1717526700) to database 'malaga.sdb'
Jun  4 18:45:15 raspberrypi weewx-malaga[15315] INFO weewx.manager: Added record 2024-06-04 18:45:00 UTC (1717526700) to daily summary in 'malaga.sdb'
Jun  4 18:45:16 raspberrypi weewx-malaga[15315] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.cheetahgenerator.CheetahGenerator'
Jun  4 18:45:16 raspberrypi weewx-malaga[15315] ERROR weewx.reportengine:         ****  list index out of range
Jun  4 18:45:16 raspberrypi weewx-malaga[15315] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Jun  4 18:45:16 raspberrypi weewx-malaga[15315] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 196, in run
Jun  4 18:45:16 raspberrypi weewx-malaga[15315] ERROR weewx.reportengine:         ****      obj.start()
Jun  4 18:45:16 raspberrypi weewx-malaga[15315] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 281, in start
Jun  4 18:45:16 raspberrypi weewx-malaga[15315] ERROR weewx.reportengine:         ****      self.run()
Jun  4 18:45:16 raspberrypi weewx-malaga[15315] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/cheetahgenerator.py", line 146, in run
Jun  4 18:45:16 raspberrypi weewx-malaga[15315] ERROR weewx.reportengine:         ****      self.initExtensions(gen_dict[section_name])
Jun  4 18:45:16 raspberrypi weewx-malaga[15315] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/cheetahgenerator.py", line 190, in initExtensions
Jun  4 18:45:16 raspberrypi weewx-malaga[15315] ERROR weewx.reportengine:         ****      self.search_list_objs.append(class_(self))
Jun  4 18:45:16 raspberrypi weewx-malaga[15315] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/cheetahgenerator.py", line 531, in __init__
Jun  4 18:45:16 raspberrypi weewx-malaga[15315] ERROR weewx.reportengine:         ****      formatter=generator.formatter)
Jun  4 18:45:16 raspberrypi weewx-malaga[15315] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/almanac.py", line 230, in __init__
Jun  4 18:45:16 raspberrypi weewx-malaga[15315] ERROR weewx.reportengine:         ****      self._precalc()
Jun  4 18:45:16 raspberrypi weewx-malaga[15315] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/almanac.py", line 235, in _precalc
Jun  4 18:45:16 raspberrypi weewx-malaga[15315] ERROR weewx.reportengine:         ****      self.moon_phase = self.moon_phases[self.moon_index]
Jun  4 18:45:16 raspberrypi weewx-malaga[15315] ERROR weewx.reportengine:         ****  IndexError: list index out of range
Jun  4 18:45:16 raspberrypi weewx-malaga[15315] ERROR weewx.reportengine:         ****  Generator terminated
Jun  4 18:45:20 raspberrypi weewx-malaga[15315] INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 3.65 seconds
Jun  4 18:45:20 raspberrypi weewx-malaga[15315] INFO weewx.reportengine: Copied 5 files to /var/www/html/malaga


No doy con el fallo, alguna ayuda?
Gracias
Título: Re:Weewx no genera ficheros html
Publicado por: jantoni en 05 de Junio de 2024, 00:28:42
Ni idea.

¿Y solo ha sido weewx.conf o también el fichero de configuración de Seasons?
Título: Re:Weewx no genera ficheros html
Publicado por: jantoni en 05 de Junio de 2024, 00:31:06
Ah….activa el log extendido, al principio del fichero de configuración.
Título: Re:Weewx no genera ficheros html
Publicado por: manolodos en 05 de Junio de 2024, 09:25:05
Buenos días
Se ha arreglado "solo" plau2
A las 6 horas ha empezado a generar los ficheros html....., y yo durmiendo
Yo no he tocado desde ayer por la tarde, así que supongo que podría ser debido a un "atasco" de datos entre consola y weewx, y que después de unas horas se haya completado el trasvase de datos, y normalizarse todo
Saludos