Software > WeeWX
Sin conexión internet y catástrofe weewx
Rubendgl:
--- Cita de: jmviper en 10 de Febrero de 2022, 23:09:09 ---Pues si es el final del log dejó de actualizar a las 1:20 UTC de hoy que es la fecha que tienen los archivos con ls -l
Clock error is 72671.49 seconds son 20 horas antes por lo que cuadra desde las 21:25 a las 1:20. Weewx comprueba la hora de la Davis y si está más de X segundos o minutos creo adelantada o retrasada su hora le pone la hora del sistema.
No sé si el problema es que en un reinicio anterior de la raspi no tuvo conexión a internet y se puso en marcha con una hora atrasada, suele suceder ya que estos dispositivos no tienen pila para guardar la hora como un PC la puede tener. Actualizó la consola de la Davis con esa hora atrasada y posiblemente haya lío de horas en el datalogger de la Davis y ya no actualice por eso. Se han visto muchos casos de esos.
Según cuentas que estás con cambio de router y tal se ha trastocado todo al no tener conexión a internet la raspi y no estar actualizado weewx.
Mira a ver qué hora tiene la BBDD de weewx en el sistema.
--- Código: ---pi@raspberrypi:/var/lib/weewx $ ls -l
total 54228
-rw-r--r-- 1 root root 55525376 feb 10 01:03 weewx.sdb
--- Fin del código ---
Quizás te va a tocar borrar datalogger, se han quedado fechas mal en él, pero podrías perder los datos desde las 1:15. Prueba a ejecutar sudo wee_device --dump para que vuelque datalogger en la BBDD y después sudo wee_device --clear-memory para borrar datalogger, todo con weewx detenido y haciendo copia de la BBDD y ponlo en marcha otra vez a ver si se ha solventado el problema.
--- Código: ---pi@raspberrypi:~ $ sudo wee_device --clear-memory
Using configuration file /etc/weewx/weewx.conf
Using Vantage driver version 3.1.1 (weewx.drivers.vantage)
Unable to wake up console... sleeping
Unable to wake up console... retrying
Unable to wake up console... sleeping
Unable to wake up console... retrying
Traceback (most recent call last):
File "/usr/bin/wee_device", line 66, in <module>
main()
File "/usr/bin/wee_device", line 62, in main
device.configure(config_dict)
File "/usr/share/weewx/weewx/drivers/__init__.py", line 69, in configure
self.do_options(options, parser, config_dict, prompt)
File "/usr/share/weewx/weewx/drivers/vantage.py", line 1973, in do_options
station = Vantage(**config_dict[DRIVER_NAME])
File "/usr/share/weewx/weewx/drivers/vantage.py", line 488, in __init__
self._setup()
File "/usr/share/weewx/weewx/drivers/vantage.py", line 1292, in _setup
self.rain_year_start = self._getEEPROM_value(0x2C)[0]
File "/usr/share/weewx/weewx/drivers/vantage.py", line 1376, in _getEEPROM_value
raise weewx.RetriesExceeded("While getting EEPROM data value at address 0x%X" % offset)
weewx.RetriesExceeded: While getting EEPROM data value at address 0x2C
--- Fin del código ---
Cuidado con ejecutar la raspi sin internet y reiniciarla sin ella. Te puedes encontrar con estas desagradables sorpresas.
--- Fin de la cita ---
Pues así estamos...... ya tengo conexión a internet pero esto no va.
jmviper:
Pues ese error es que weewx no puede borrar la memoria.
Qué te pone sudo wee_device --info ??
Si sale mal la info hay algún problema de comunicación weewx-consola.
Rubendgl:
Hasta el lunes por la tarde no puedo volver a probar.
Gracias.
Rubendgl:
Al fin puedo ponerme con esto de nuevo.
Veamos, la respuesta al comando es la siguiente:
--- Código: ---pi@raspberrypi:~ $ sudo wee_device --info
Using configuration file /etc/weewx/weewx.conf
Using Vantage driver version 3.1.1 (weewx.drivers.vantage)
Unable to wake up console... sleeping
Unable to wake up console... retrying
Unable to wake up console... sleeping
Unable to wake up console... retrying
Unable to wake up console... sleeping
Unable to wake up console... retrying
Traceback (most recent call last):
File "/usr/bin/wee_device", line 66, in <module>
main()
File "/usr/bin/wee_device", line 62, in main
device.configure(config_dict)
File "/usr/share/weewx/weewx/drivers/__init__.py", line 69, in configure
self.do_options(options, parser, config_dict, prompt)
File "/usr/share/weewx/weewx/drivers/vantage.py", line 1973, in do_options
station = Vantage(**config_dict[DRIVER_NAME])
File "/usr/share/weewx/weewx/drivers/vantage.py", line 489, in __init__
syslog.syslog(syslog.LOG_DEBUG, "vantage: Hardware name: %s" % self.hardware_name)
File "/usr/share/weewx/weewx/drivers/vantage.py", line 1256, in hardware_name
raise weewx.UnsupportedFeature("Unknown hardware type %d" % self.hardware_type)
weewx.UnsupportedFeature: Unknown hardware type 10
pi@raspberrypi:~ $
--- Fin del código ---
No entiendo muy bien si esto indica un problema o que está pasando pero el caso es que la base de datos se actualiza
--- Código: ---pi@raspberrypi:/var/lib/weewx $ ls -l
total 54624
-rw-r--r-- 1 root root 55934976 feb 16 19:00 weewx.sdb
--- Fin del código ---
eso si, he tenido que borrar los registros que había grabados "de septiembre de 2022". Una vez eliminados, ha vuelto a grabar datos, en principio, de forma correcta.
Y genera los archivos a la web sin problemas
--- Código: ---pi@raspberrypi:/var/www/html $ ls -l
total 548
drwxr-xr-x 2 root root 4096 dic 3 2019 backgrounds
-rw-r--r-- 1 root root 6326 feb 16 19:05 daybarometer.png
-rw-r--r-- 1 root root 4413 feb 16 19:05 dayhumidity.png
-rw-r--r-- 1 root root 4946 feb 16 19:05 dayinside.png
-rw-r--r-- 1 root root 2854 feb 16 19:05 daypond.png
-rw-r--r-- 1 root root 2845 feb 16 19:05 dayradiation.png
-rw-r--r-- 1 root root 4523 feb 16 19:05 dayrain.png
-rw-r--r-- 1 root root 5174 feb 16 19:05 dayrx.png
-rw-r--r-- 1 root root 5682 feb 16 19:05 daytempchill.png
-rw-r--r-- 1 root root 7392 feb 16 19:05 daytempdew.png
-rw-r--r-- 1 root root 2740 feb 16 19:05 dayuv.png
-rw-r--r-- 1 root root 4676 feb 16 19:05 daywinddir.png
-rw-r--r-- 1 root root 10570 feb 16 19:05 daywind.png
-rw-r--r-- 1 root root 7102 feb 16 19:05 daywindvec.png
-rw-r--r-- 1 root root 9883 dic 9 2019 deunvistazo.png
-rw-r--r-- 1 root root 16958 feb 16 18:45 favicon.ico
-rw-r--r-- 1 root root 16354 feb 16 19:05 index.html
-rw-r--r-- 1 root root 16036 sep 7 12:02 index.html.save
-rw-r--r-- 1 root root 1682 dic 2 2019 index_orig.html
-rw-r--r-- 1 root root 512 feb 16 00:01 meteoclimatic1.html
-rw-r--r-- 1 root root 513 feb 16 19:05 meteoclimatic.html
-rw-r--r-- 1 root root 339 mar 9 2020 meteoclimatic.php
-rw-r--r-- 1 root root 18976 dic 2 2019 meteonigran.jpg
-rw-r--r-- 1 root root 564 feb 16 18:45 mobile.css
-rw-r--r-- 1 root root 2512 feb 16 19:05 mobile.html
-rw-r--r-- 1 root root 5468 feb 16 18:00 monthbarometer.png
-rw-r--r-- 1 root root 9995 feb 16 19:05 month.html
-rw-r--r-- 1 root root 5435 feb 16 18:00 monthinside.png
-rw-r--r-- 1 root root 2931 feb 16 19:05 monthp.html
-rw-r--r-- 1 root root 2605 feb 16 18:00 monthpond.png
-rw-r--r-- 1 root root 2597 feb 16 18:00 monthradiation.png
-rw-r--r-- 1 root root 3096 feb 16 18:00 monthrain.png
-rw-r--r-- 1 root root 4940 feb 16 18:00 monthrx.png
-rw-r--r-- 1 root root 6129 feb 16 18:00 monthtempchill.png
-rw-r--r-- 1 root root 8462 feb 16 18:00 monthtempdew.png
-rw-r--r-- 1 root root 2492 feb 16 18:00 monthuv.png
-rw-r--r-- 1 root root 5702 feb 16 18:00 monthwinddir.png
-rw-r--r-- 1 root root 7571 feb 16 18:00 monthwind.png
-rw-r--r-- 1 root root 5228 feb 16 18:00 monthwindvec.png
drwxr-xr-x 2 root root 4096 feb 16 19:05 NOAA
drwxr-xr-x 2 root root 4096 feb 16 19:05 RSS
drwxr-xr-x 3 root root 4096 feb 16 19:05 smartphone
-rw-r--r-- 1 root root 7099 feb 16 19:00 weekbarometer.png
-rw-r--r-- 1 root root 10057 feb 16 19:05 week.html
-rw-r--r-- 1 root root 7414 feb 16 19:00 weekhumidity.png
-rw-r--r-- 1 root root 7225 feb 16 19:00 weekinside.png
-rw-r--r-- 1 root root 2932 feb 16 19:05 weekp.html
-rw-r--r-- 1 root root 3300 feb 16 19:00 weekpond.png
-rw-r--r-- 1 root root 3289 feb 16 19:00 weekradiation.png
-rw-r--r-- 1 root root 3946 feb 16 19:00 weekrain.png
-rw-r--r-- 1 root root 6420 feb 16 19:00 weekrx.png
-rw-r--r-- 1 root root 6784 feb 16 19:00 weektempchill.png
-rw-r--r-- 1 root root 9159 feb 16 19:00 weektempdew.png
-rw-r--r-- 1 root root 3176 feb 16 19:00 weekuv.png
-rw-r--r-- 1 root root 6494 feb 16 19:00 weekwinddir.png
-rw-r--r-- 1 root root 9801 feb 16 19:00 weekwind.png
-rw-r--r-- 1 root root 7720 feb 16 19:00 weekwindvec.png
-rw-r--r-- 1 root root 3840 feb 16 18:45 weewx.css
-rw-r--r-- 1 root root 5741 feb 16 00:00 yearbarometer.png
-rw-r--r-- 1 root root 8027 feb 16 00:00 yearhilow.png
-rw-r--r-- 1 root root 7092 feb 16 19:05 year.html
-rw-r--r-- 1 root root 5539 feb 16 00:00 yearinside.png
-rw-r--r-- 1 root root 2289 feb 16 19:05 yearp.html
-rw-r--r-- 1 root root 2489 feb 16 00:00 yearpond.png
-rw-r--r-- 1 root root 2481 feb 16 00:00 yearradiation.png
-rw-r--r-- 1 root root 3788 feb 16 00:00 yearrain.png
-rw-r--r-- 1 root root 4222 feb 16 00:00 yearrx.png
-rw-r--r-- 1 root root 6528 feb 16 00:00 yeartempchill.png
-rw-r--r-- 1 root root 9044 feb 16 00:00 yeartempdew.png
-rw-r--r-- 1 root root 2375 feb 16 00:00 yearuv.png
-rw-r--r-- 1 root root 7118 feb 16 00:00 yearwinddir.png
-rw-r--r-- 1 root root 7876 feb 16 00:00 yearwind.png
-rw-r--r-- 1 root root 7588 feb 16 00:00 yearwindvec.png
--- Fin del código ---
jmviper:
--- Citar ---Veamos, la respuesta al comando es la siguiente:
--- Fin de la cita ---
Paraste antes weewx ??
Puede que lo que tuvieses mal también aparte de datalogger sea la BBDD de weewx.
Todo el desaguisado ha sido la desconfiguración de la hora. Repito que cuidado con poner a weewx en marcha sin tener conexión a internet. Si no hay conexión la raspi no puede acceder al servidor NTP para actualizar la hora y se queda con una que puede liarlo todo.
Navegación
[#] Página Siguiente
[*] Página Anterior
Ir a la versión completa