Autor Tema: Sin conexión internet y catástrofe weewx  (Leído 1927 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado Rubendgl

  • Jr. Member
  • **
  • Mensajes: 62
    • Ver Perfil
    • MeteoNigran
  • Estación: ESGAL3600000036350C
Sin conexión internet y catástrofe weewx
« en: 10 de Febrero del 2022, 18:30:53 pm »
Buenas tardes,
os expongo lo mas breve posible la cuestión.

Vodafone me llama el 31 de enero para anunciarme una migración en los servicios contratados.
El martes día 8, por la mañana me cortan el servicio de internet y recibo un sms indicando que el nuevo router llegará el viernes día 11. ( Saludos Vodafone ). apla3

Al tema:
weewx deja de enviar datos a meteoclimatic, como es normal. Consigo conectar un viejo router para poder tener acceso por ssh a la pi y así ir sacando los valores
de máximas, mínimas, etc y enviarlos yo de forma manual a Meteoclimatic, desde el móvil
Todo parece ir bien hasta hoy.

Me conecto de forma local al servidor y sorpresa, la web es un desastre, no hay datos ni gráficas y todo está a fecha Última Actualización: 03/09/22 01:00:00 . Hora UTC  :;

Accedo a la pi por ssh y me encuentro lo siguiente:

Código: [Seleccionar]
pi@raspberrypi:/var/log $ date
jue feb 10 17:08:49 UTC 2022

En principio la pi sigue en hora con lo cual no entiendo que la web salga en esa fecha.
Procedo a detener weewx e inicarlo de nuevo y sacar el log de lo que ocurre

Código: [Seleccionar]
pi@raspberrypi:/var/log $ sudo /etc/init.d/weewx stop
[ ok ] Stopping weewx (via systemctl): weewx.service.

pi@raspberrypi:/var/log $ sudo /etc/init.d/weewx start
[ ok ] Starting weewx (via systemctl): weewx.service.

pi@raspberrypi:/var/log $ tail -f weewx.log
Feb 10 17:10:36 raspberrypi weewx[2078]: restx: Wunderground-PWS: Data for station INIGRN7 will be posted
Feb 10 17:10:36 raspberrypi weewx[2078]: restx: PWSweather: Posting not enabled.
Feb 10 17:10:36 raspberrypi weewx[2078]: restx: CWOP: Posting not enabled.
Feb 10 17:10:36 raspberrypi weewx[2078]: restx: WOW: Posting not enabled.
Feb 10 17:10:36 raspberrypi weewx[2078]: restx: AWEKAS: Data will be uploaded for user x
Feb 10 17:10:36 raspberrypi weewx[2078]: restx: WeatherCloud: service version is 0.11
Feb 10 17:10:36 raspberrypi weewx[2078]: restx: WeatherCloud: Data will be uploaded for id=x
Feb 10 17:10:36 raspberrypi weewx[2078]: engine: Starting up weewx version 3.9.2
Feb 10 17:10:36 raspberrypi weewx[2078]: engine: Clock error is -0.38 seconds (positive is fast)
Feb 10 17:10:36 raspberrypi weewx[2078]: engine: Starting main packet loop.
y ahí se queda sin hacer nada, :;

Se ve un pequeño desajuste en el reloj pero está en fecha.
Pruebo a ajustar la fecha y hora de la pi

Código: [Seleccionar]
pi@raspberrypi:/var/log $ sudo raspi-config

Current default time zone: 'Etc/UTC'
Local time is now:      Thu Feb 10 17:13:48 UTC 2022.
Universal Time is now:  Thu Feb 10 17:13:48 UTC 2022.

Se puede ver que la hora es la correcta en UTC.
La cuestión es que no genera absolutamente nada cuando el martes y el miercoles ha estado todo el día funcionando sin problemas.

Alguna sugerencia ????..

Muchas gracias.



Desconectado jmviper

  • Investigación
  • Hero Member
  • ******
  • Mensajes: 4.403
  • "Vortex Complex"
    • Ver Perfil
    • www.meteoarchena.es
  • Estación: Archena - ESMUR3000000030600B
Re:Sin conexión internet y catástrofe weewx
« Respuesta #1 en: 10 de Febrero del 2022, 22:19:47 pm »
Hola Ruben

Más que la fecha que pone en el interior de los archivos, que importa, es la que tienen los archivos en el sistema la que más importa, para ver si los está actualizando o no weewx.

Esa fecha que pones...además de errónea es futura no ?? 03/09/22 01:00:00 todavía no hemos llegado a septiembre  *+* *+*

Y weewx lo pones recién reiniciado. Mira el log con weewx ya puesto en marcha un rato a ver si suelta algún error al generar los archivos.



Archena, Valle de Ricote (Murcia). 120 msnm. 19.622 hab.
Davis Vantage Pro2 Plus

www.meteoarchena.es

Desconectado Rubendgl

  • Jr. Member
  • **
  • Mensajes: 62
    • Ver Perfil
    • MeteoNigran
  • Estación: ESGAL3600000036350C
Re:Sin conexión internet y catástrofe weewx
« Respuesta #2 en: 10 de Febrero del 2022, 22:27:40 pm »
Pues me acabo de dar cuenta de otra cosa y es que la propia consola de la estación es la que está fuera de hora.

este log es de hace unas horas pero se ve el problema

Código: [Seleccionar]
pi@raspberrypi:/var/log $ sudo /etc/init.d/weewx restart
[ ok ] Restarting weewx (via systemctl): weewx.service^[[A.
pi@raspberrypi:/var/log $ tail -f weewx.log
Feb  9 21:25:30 raspberrypi weewx[474]: restx: PWSweather: Posting not enabled.
Feb  9 21:25:30 raspberrypi weewx[474]: restx: CWOP: Posting not enabled.
Feb  9 21:25:30 raspberrypi weewx[474]: restx: WOW: Posting not enabled.
Feb  9 21:25:30 raspberrypi weewx[474]: restx: AWEKAS: Data will be uploaded for user x
Feb  9 21:25:30 raspberrypi weewx[474]: restx: WeatherCloud: service version is 0.11
Feb  9 21:25:30 raspberrypi weewx[474]: restx: WeatherCloud: Data will be uploaded for id=x
Feb  9 21:25:30 raspberrypi weewx[474]: engine: Starting up weewx version 3.9.2
Feb  9 21:25:30 raspberrypi weewx[474]: engine: Clock error is 72671.49 seconds (positive is fast)
Feb  9 21:25:30 raspberrypi weewx[474]: vantage: Clock set to 2022-02-09 21:25:31 UTC (1644441931)
Feb  9 21:25:32 raspberrypi weewx[474]: engine: Starting main packet loop.
^C
pi@raspberrypi:/var/log $ date
mié feb  9 21:26:16 UTC 2022

la pi está en hora, es la consola davis la que se quedó con una fecha de ayer.
Lo peor es que le ajusto la fecha y hora actuales y ella sola vuelve a esa fecha de ayer.

Desconectado Rubendgl

  • Jr. Member
  • **
  • Mensajes: 62
    • Ver Perfil
    • MeteoNigran
  • Estación: ESGAL3600000036350C
Re:Sin conexión internet y catástrofe weewx
« Respuesta #3 en: 10 de Febrero del 2022, 22:37:27 pm »
Hola Ruben

Más que la fecha que pone en el interior de los archivos, que importa, es la que tienen los archivos en el sistema la que más importa, para ver si los está actualizando o no weewx.
Código: [Seleccionar]
pi@raspberrypi:/var/www/html $ ls -l
total 456
drwxr-xr-x 2 root root  4096 dic  3  2019 backgrounds
-rw-r--r-- 1 root root  3790 feb 10 01:20 daybarometer.png
-rw-r--r-- 1 root root  4120 feb 10 01:20 dayhumidity.png
-rw-r--r-- 1 root root  3810 feb 10 01:20 dayinside.png
-rw-r--r-- 1 root root  2740 feb 10 01:20 daypond.png
-rw-r--r-- 1 root root  2733 feb 10 01:20 dayradiation.png
-rw-r--r-- 1 root root  2855 feb 10 01:20 dayrain.png
-rw-r--r-- 1 root root  4056 feb 10 01:20 dayrx.png
-rw-r--r-- 1 root root  4346 feb 10 01:20 daytempchill.png
-rw-r--r-- 1 root root  4144 feb 10 01:20 daytempdew.png
-rw-r--r-- 1 root root  2630 feb 10 01:20 dayuv.png
-rw-r--r-- 1 root root  3388 feb 10 01:20 daywinddir.png
-rw-r--r-- 1 root root  3607 feb 10 01:20 daywind.png
-rw-r--r-- 1 root root  4279 feb 10 01:20 daywindvec.png
-rw-r--r-- 1 root root  9883 dic  9  2019 deunvistazo.png
-rw-r--r-- 1 root root 16958 feb 10 01:05 favicon.ico
-rw-r--r-- 1 root root 16747 feb 10 01:20 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  2760 feb 10 01:20 indexp.html
-rw-r--r-- 1 root root   510 feb 10 00:01 meteoclimatic1.html
-rw-r--r-- 1 root root   510 feb 10 01:20 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 10 01:05 mobile.css
-rw-r--r-- 1 root root  2510 feb 10 01:20 mobile.html
-rw-r--r-- 1 root root  3227 feb 10 01:20 monthbarometer.png
-rw-r--r-- 1 root root  9990 feb 10 01:20 month.html
-rw-r--r-- 1 root root  3452 feb 10 01:20 monthinside.png
-rw-r--r-- 1 root root  2931 feb 10 01:20 monthp.html
-rw-r--r-- 1 root root  2525 feb 10 01:20 monthpond.png
-rw-r--r-- 1 root root  2518 feb 10 01:20 monthradiation.png
-rw-r--r-- 1 root root  2597 feb 10 01:20 monthrain.png
-rw-r--r-- 1 root root  3029 feb 10 01:20 monthrx.png
-rw-r--r-- 1 root root  3209 feb 10 01:20 monthtempchill.png
-rw-r--r-- 1 root root  2995 feb 10 01:20 monthtempdew.png
-rw-r--r-- 1 root root  2411 feb 10 01:20 monthuv.png
-rw-r--r-- 1 root root  2828 feb 10 01:20 monthwinddir.png
-rw-r--r-- 1 root root  2847 feb 10 01:20 monthwind.png
-rw-r--r-- 1 root root  3306 feb 10 01:20 monthwindvec.png
drwxr-xr-x 2 root root  4096 feb 10 01:20 NOAA
Esa fecha que pones...además de errónea es futura no ?? 03/09/22 01:00:00 todavía no hemos llegado a septiembre  *+* *+*

Y weewx lo pones recién reiniciado. Mira el log con weewx ya puesto en marcha un rato a ver si suelta algún error al generar los archivos.
Código: [Seleccionar]
pi@raspberrypi:/var/log $ tail -f weewx.log
Feb 10 01:03:15 raspberrypi weewx[805]: engine: Starting main packet loop.
Feb 10 01:05:22 raspberrypi weewx[805]: cheetahgenerator: Generated 20 files for report StandardReport in 7.41 seconds
Feb 10 01:05:36 raspberrypi weewx[805]: imagegenerator: Generated 51 images for StandardReport in 14.08 seconds
Feb 10 01:05:36 raspberrypi weewx[805]: copygenerator: copied 9 files to /var/www/html
Feb 10 01:10:17 raspberrypi weewx[805]: cheetahgenerator: Generated 20 files for report StandardReport in 2.61 seconds
Feb 10 01:10:31 raspberrypi weewx[805]: imagegenerator: Generated 51 images for StandardReport in 13.94 seconds
Feb 10 01:10:31 raspberrypi weewx[805]: copygenerator: copied 0 files to /var/www/html
Feb 10 01:15:17 raspberrypi weewx[805]: cheetahgenerator: Generated 20 files for report StandardReport in 2.62 seconds
Feb 10 01:15:31 raspberrypi weewx[805]: imagegenerator: Generated 51 images for StandardReport in 14.07 seconds
Feb 10 01:15:31 raspberrypi weewx[805]: copygenerator: copied 0 files to /var/www/html

Como puedes ver, los actualiza, mal pero los actualiza cada 5 minutos que es como debe ser.
Pero lo de la fecha erronea no consigo entenderlo ni tampoco el motivo por el cual la consola se cambia la hora.

Desconectado jmviper

  • Investigación
  • Hero Member
  • ******
  • Mensajes: 4.403
  • "Vortex Complex"
    • Ver Perfil
    • www.meteoarchena.es
  • Estación: Archena - ESMUR3000000030600B
Re:Sin conexión internet y catástrofe weewx
« Respuesta #4 en: 10 de Febrero del 2022, 23:09:09 pm »
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. 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.

Cuidado con ejecutar la raspi sin internet y reiniciarla sin ella. Te puedes encontrar con estas desagradables sorpresas.
« Última modificación: 10 de Febrero del 2022, 23:10:59 pm por jmviper »


Archena, Valle de Ricote (Murcia). 120 msnm. 19.622 hab.
Davis Vantage Pro2 Plus

www.meteoarchena.es

Desconectado Rubendgl

  • Jr. Member
  • **
  • Mensajes: 62
    • Ver Perfil
    • MeteoNigran
  • Estación: ESGAL3600000036350C
Re:Sin conexión internet y catástrofe weewx
« Respuesta #5 en: 11 de Febrero del 2022, 17:59:08 pm »
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: [Seleccionar]
pi@raspberrypi:/var/lib/weewx $ ls -l
total 54228
-rw-r--r-- 1 root root 55525376 feb 10 01:03 weewx.sdb

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: [Seleccionar]
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


Cuidado con ejecutar la raspi sin internet y reiniciarla sin ella. Te puedes encontrar con estas desagradables sorpresas.

Pues así estamos...... ya tengo conexión a internet pero esto no va.

Desconectado jmviper

  • Investigación
  • Hero Member
  • ******
  • Mensajes: 4.403
  • "Vortex Complex"
    • Ver Perfil
    • www.meteoarchena.es
  • Estación: Archena - ESMUR3000000030600B
Re:Sin conexión internet y catástrofe weewx
« Respuesta #6 en: 11 de Febrero del 2022, 19:53:22 pm »
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.


Archena, Valle de Ricote (Murcia). 120 msnm. 19.622 hab.
Davis Vantage Pro2 Plus

www.meteoarchena.es

Desconectado Rubendgl

  • Jr. Member
  • **
  • Mensajes: 62
    • Ver Perfil
    • MeteoNigran
  • Estación: ESGAL3600000036350C
Re:Sin conexión internet y catástrofe weewx
« Respuesta #7 en: 12 de Febrero del 2022, 20:20:21 pm »
Hasta el lunes por la tarde no puedo volver a probar.
Gracias.

Desconectado Rubendgl

  • Jr. Member
  • **
  • Mensajes: 62
    • Ver Perfil
    • MeteoNigran
  • Estación: ESGAL3600000036350C
Re:Sin conexión internet y catástrofe weewx
« Respuesta #8 en: 16 de Febrero del 2022, 20:10:07 pm »
Al fin puedo ponerme con esto de nuevo.

Veamos, la respuesta al comando es la siguiente:
Código: [Seleccionar]
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:~ $

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: [Seleccionar]
pi@raspberrypi:/var/lib/weewx $ ls -l
total 54624
-rw-r--r-- 1 root root 55934976 feb 16 19:00 weewx.sdb

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: [Seleccionar]
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

Desconectado jmviper

  • Investigación
  • Hero Member
  • ******
  • Mensajes: 4.403
  • "Vortex Complex"
    • Ver Perfil
    • www.meteoarchena.es
  • Estación: Archena - ESMUR3000000030600B
Re:Sin conexión internet y catástrofe weewx
« Respuesta #9 en: 16 de Febrero del 2022, 22:25:57 pm »
Citar
Veamos, la respuesta al comando es la siguiente:

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.


Archena, Valle de Ricote (Murcia). 120 msnm. 19.622 hab.
Davis Vantage Pro2 Plus

www.meteoarchena.es

Desconectado Rubendgl

  • Jr. Member
  • **
  • Mensajes: 62
    • Ver Perfil
    • MeteoNigran
  • Estación: ESGAL3600000036350C
Re:Sin conexión internet y catástrofe weewx
« Respuesta #10 en: 16 de Febrero del 2022, 23:05:11 pm »

Paraste antes weewx ??

Sin comentarios...... :;


Código: [Seleccionar]
pi@raspberrypi:~ $ sudo wee_device --info
Using configuration file /etc/weewx/weewx.conf
Using Vantage driver version 3.1.1 (weewx.drivers.vantage)
Querying...
Davis Vantage EEPROM settings:
   
    CONSOLE TYPE:                   Vantage Vue
   
    CONSOLE FIRMWARE:
      Date:                         Mar 31 2016
      Version:                      4.20
   
    CONSOLE SETTINGS:
      Archive interval:             300 (seconds)
      Altitude:                     28 (meter)
      Wind cup type:                large
      Rain bucket type:             0.2 mm
      Rain year start:              1
      Onboard time:                 2022-02-16 21:44:47
     
    CONSOLE DISPLAY UNITS:
      Barometer:                    hPa
      Temperature:                  degree_C
      Rain:                         mm
      Wind:                         km_per_hour
     
    CONSOLE STATION INFO:
      Latitude (onboard):           +42.1°
      Longitude (onboard):          -8.8°
      Use manual or auto DST?       AUTO
      DST setting:                  N/A
      Use GMT offset or zone code?  ZONE_CODE
      Time zone code:               18
      GMT offset:                   N/A
      Temperature logging:          LAST
      Retransmit channel:           OFF (0)
       
    TRANSMITTERS:
      Channel   Receive   Repeater  Type
         1      active      none    iss
         2      active      none    (N/A)
         3      active      none    (N/A)
         4      active      none    (N/A)
         5      active      none    (N/A)
         6      active      none    (N/A)
         7      active      none    (N/A)
         8      active      none    (N/A)

    RECEPTION STATS:
      Total packets received:       30470
      Total packets missed:         84
      Number of resynchronizations: 0
      Longest good stretch:         1404
      Number of CRC errors:         17
     
    BAROMETER CALIBRATION DATA:
      Current barometer reading:    30.452 inHg
      Altitude:                     95 feet
      Dew point:                    55 F
      Virtual temperature:          57 F
      Humidity correction factor:   2.6
      Correction ratio:             1.003
      Correction constant:          +0.000 inHg
      Gain:                         0.000
      Offset:                       -18.000
     
    OFFSETS:
      Wind direction:               +0 deg
      Inside Temperature:           +0.0 F
      Inside Humidity:              +0 %
      Outside Temperature:          +0.0 F
      Outside Humidity:             +0 %

Código: [Seleccionar]
pi@raspberrypi:~ $ sudo weewxd /etc/weewx/weewx.conf
REC:    2022-02-16 21:45:00 UTC (1645047900) altimeter: 1030.91612825, appTemp: 14.1228401778, barometer: 1031.22292212, cloudbase: 126.831758465, consBatteryVoltage: None, dateTime: 1645047900, dewpoint: 12.5483837775, ET: 0.0, forecastRule: 9, heatindex: 13.3333333333, highOutTemp: 56.1, humidex: 15.8832765958, inDewpoint: 14.2815266544, inHumidity: 82.0, inTemp: 17.3888888889, interval: 5, leafTemp1: -65.5555555556, leafTemp2: -67.7777777778, leafWet1: 8.0, leafWet2: 8.0, lowOutTemp: 55.9, maxSolarRad: None, outHumidity: 95.0, outTemp: 13.3333333333, pressure: 1027.69201197, rain: 0.0, rainRate: 0.0, rxCheckPercent: 99.9375, soilMoist1: 4.0, soilMoist2: 8.0, soilMoist3: 2.0, soilMoist4: 32.0, soilTemp1: -65.5555555556, soilTemp2: -67.7777777778, soilTemp3: -65.5555555556, soilTemp4: -67.7777777778, txBatteryStatus: None, usUnits: 16, windchill: 13.3333333333, windDir: None, windGust: 1.60934800001, windGustDir: 135.0, windrun: 0.0, windSpeed: 0.0
LOOP:   2022-02-16 21:45:48 UTC (1645047948) altimeter: 1030.94996988, appTemp: 14.1228401778, barometer: 1031.256786, cloudbase: 126.831758465, consBatteryVoltage: 4.82, dateTime: 1645047948, dayET: 0.0, dayRain: 0.140000000035, dewpoint: 12.5483837775, extraAlarm1: 0, extraAlarm2: 0, extraAlarm3: 0, extraAlarm4: 0, extraAlarm5: 0, extraAlarm6: 0, extraAlarm7: 0, extraAlarm8: 0, forecastIcon: 6, forecastRule: 9, heatindex: 13.3333333333, humidex: 15.8832765958, inDewpoint: 14.2815266544, inHumidity: 82.0, insideAlarm: 0, inTemp: 17.3888888889, leafWet4: 0.0, maxSolarRad: None, monthET: 0.0, monthRain: 2.12000000053, outHumidity: 95.0, outsideAlarm1: 0, outsideAlarm2: 0, outTemp: 13.3333333333, pressure: 1027.7257599, rain: None, rainAlarm: 0, rainRate: 0.0, soilLeafAlarm1: 0, soilLeafAlarm2: 0, soilLeafAlarm3: 0, soilLeafAlarm4: 0, stormRain: 2.10000000052, stormStart: 1644710400, sunrise: 1644996540, sunset: 1645034940, trendIcon: 0, txBatteryStatus: 0, usUnits: 16, windchill: 13.3333333333, windDir: None, windGust: 0.0, windGustDir: None, windSpeed: 0.0, windSpeed10: 1.60934800001, yearET: 0.0, yearRain: 2.12000000053

Así está la cosa.

Desconectado jmviper

  • Investigación
  • Hero Member
  • ******
  • Mensajes: 4.403
  • "Vortex Complex"
    • Ver Perfil
    • www.meteoarchena.es
  • Estación: Archena - ESMUR3000000030600B
Re:Sin conexión internet y catástrofe weewx
« Respuesta #11 en: 16 de Febrero del 2022, 23:58:38 pm »
Pues todo parece en orden.


Archena, Valle de Ricote (Murcia). 120 msnm. 19.622 hab.
Davis Vantage Pro2 Plus

www.meteoarchena.es

Desconectado Rubendgl

  • Jr. Member
  • **
  • Mensajes: 62
    • Ver Perfil
    • MeteoNigran
  • Estación: ESGAL3600000036350C
Re:Sin conexión internet y catástrofe weewx
« Respuesta #12 en: 17 de Febrero del 2022, 17:26:23 pm »
Pues una vez más, mil gracias, plau2

Tema weewx, solucionado.


PD_offtopic:
El nuevo router que me ha instalado Vodafone, es un Huawei 4G, y después de la que me han liado cortándome el servicio me encuentro ahora que
este tipo de router no admite conexiones entrantes con lo cual, el servidor web no va a funcionar. Ahí es donde alojo la plantilla que lee meteoclimatic para actualizar datos
y por tanto ya no va a ser posible hacerlo así.

Si alguien controla alguna posible solución, se lo agradecería.
Por privado para no alterar el foro ya que no corresponde aquí este tema.
Un millón..... ^-^

Desconectado jmviper

  • Investigación
  • Hero Member
  • ******
  • Mensajes: 4.403
  • "Vortex Complex"
    • Ver Perfil
    • www.meteoarchena.es
  • Estación: Archena - ESMUR3000000030600B
Re:Sin conexión internet y catástrofe weewx
« Respuesta #13 en: 17 de Febrero del 2022, 20:08:43 pm »
Pues si no se pueden abrir puertos en el router al servidor web de la raspi tienes dos opciones, o usas una de las utilidades para subir la plantilla en PHP o Python o, subes la plantilla/web de weewx a un hosting gratuito de los que hay.



Archena, Valle de Ricote (Murcia). 120 msnm. 19.622 hab.
Davis Vantage Pro2 Plus

www.meteoarchena.es