Mostrar Mensajes

Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.


Mensajes - Jmarsal5

Páginas: [1] 2
1
WeeWX / Re:Weewx con Watson 8681 MKII
« en: 01 de Agosto del 2023, 03:55:19 am »
Tienes que crear, el archivo ejecutable.
Yo hace mucho lo tengo hecho te busco la info, pero si sigues este tutorial del gran jantoni, se te crea solo!

https://forum.meteoclimatic.net/index.php/topic,2606.0.html

2
WeeWX / Re:error critical
« en: 01 de Agosto del 2023, 03:53:16 am »
SOLUCIONADO!!
Lo que me imaginaba, la base de datos estaba corrupta, por culpa seguramente que se quemo el clúster en cuestión. Así que cuando llego la nueva tarjeta, le escribí el backup y ya esta en solfa de nuevo!

3
WeeWX / error critical
« en: 28 de Julio del 2023, 20:42:58 pm »
Hola buenas

Esto me desespera un poquito ya.... llevaba mas de 9 meses reportando datos y todo perfecto, intente hacer la cosa más robusta haciendo backups y estaba trabajando para que me avisara la raspberry si había algún fallo, cuando 2h antes del frente de tormentas que travesó Catalunya por el sur, la raspberry dejo de funcionar, arrojando el error mmc0: timeout waiting for hardware cmd interrupt.
El cual yo formatee la tarjeta microsd y utilice el ultimo backup, el que se hace cada lunes.... el ultimo lunes no lo hizo y el anterior se quedó a medias, así que use el backup de hace tres lunes.
Con ese backup, cargado por la aplicación de raspberry, la consola funciona y todo correcto, excepto weewx. No sé qué le pasa, no arranca el weewx, por una serie de errores críticos, creo que son de database de sqlyte, pero no entiendo muy bien...
Aquí os pongo el mensaje, gracias por la ayuda.



Jul 28 08:18:22  weewx[9684] INFO __main__: Initializing weewx version 4.10.2
Jul 28 08:18:22  weewx[9684] INFO __main__: Using Python 3.9.2 (default, Mar 12 2021, 04:06:34) #012[GCC 10.2.1 20210110]
Jul 28 08:18:22  weewx[9684] INFO __main__: Located at /bin/python3
Jul 28 08:18:22  weewx[9684] INFO __main__: Platform Linux-5.15.84-v7+-armv7l-with-glibc2.31
Jul 28 08:18:22  weewx[9684] INFO __main__: Locale is 'es_ES'
Jul 28 08:18:22  weewx[9684] INFO __main__: Using configuration file /etc/weewx/weewx.conf
Jul 28 08:18:22  weewx[9684] INFO __main__: Debug is 0
Jul 28 08:18:22  weewx[9684] INFO __main__: PID file is /var/run/weewx.pid
Jul 28 08:18:22  weewx[9687] INFO weewx.engine: Loading station type FineOffsetUSB (weewx.drivers.fousb)
Jul 28 08:18:22  weewx[9687] INFO weewx.drivers.fousb: driver version is 1.20
Jul 28 08:18:22  weewx[9687] INFO weewx.drivers.fousb: polling mode is PERIODIC
Jul 28 08:18:22  weewx[9687] INFO weewx.drivers.fousb: polling interval is 60
Jul 28 08:18:22  weewx[9673]: Starting weewx weather system: weewx.
Jul 28 08:18:22  weewx[9687] INFO weewx.drivers.fousb: found station on USB bus= device=
Jul 28 08:18:22  weewx[9687] INFO weewx.engine: StdConvert target unit is 0x1
Jul 28 08:18:22  weewx[9687] INFO weewx.wxservices: StdWXCalculate will use data binding wx_binding
Jul 28 08:18:22  weewx[9687] CRITICAL __main__: Caught unrecoverable exception:
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****  database disk image is malformed
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****  Traceback (most recent call last):
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 148, in main
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****      engine = weewx.engine.StdEngine(config_dict)
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 93, in __init__
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****      self.loadServices(config_dict)
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 161, in loadServices
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****      obj = weeutil.weeutil.get_object(svc)(self, config_dict)
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/wxservices.py", line 105, in __init__
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****      self.db_manager = engine.db_binder.get_manager(data_binding=data_binding,
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/manager.py", line 755, in get_manager
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****      self.manager_cache[data_binding] = open_manager(manager_dict, initialize)
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/manager.py", line 903, in open_manager
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****      return manager_cls.open_with_create(manager_dict['database_dict'],
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/manager.py", line 248, in open_with_create
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****      dbmanager = cls(connection, table_name=table_name, schema=schema)
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/manager.py", line 1042, in __init__
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****      super(DaySummaryManager, self).__init__(connection, table_name, schema)
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/manager.py", line 130, in __init__
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****      self.sqlkeys = self.connection.columnsOf(self.table_name)
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****    File "/usr/share/weewx/weedb/sqlite.py", line 187, in columnsOf
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****      column_list = [row[1] for row in self.genSchemaOf(table)]
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****    File "/usr/share/weewx/weedb/sqlite.py", line 187, in <listcomp>
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****      column_list = [row[1] for row in self.genSchemaOf(table)]
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****    File "/usr/share/weewx/weedb/sqlite.py", line 176, in genSchemaOf
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****      for row in self.connection.execute("""PRAGMA table_info(%s);""" % table):
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****  sqlite3.DatabaseError: database disk image is malformed
Jul 28 08:18:22  weewx[9687] CRITICAL __main__:     ****  Exiting.

4
WebCam / Webcam
« en: 23 de Marzo del 2023, 15:14:56 pm »
Hola buenas

Necesitó ayuda, estoy intentando configurar el skin, pero hay cosas que no encuentro o a lo mejor no se ver debido a que el python no es lo mio....

Me gustaría poner encima del radar de windy la opción de ver la webcam o un timelapse que estoy haciendo. No encuentro la opción.

Muchas gracias!

5
WeeWX / Re:Problemas con weewx
« en: 13 de Marzo del 2023, 21:57:58 pm »
Pero en algún sitio me he perdido *+* *+* *+* *+* *+*

Yo lo que decía es un watchdog casero en /etc/cron que está enlazado con Telegram para que me avise de las incidencias.

Estoy mayor,  :; :; :;

No NO para nada te haces mayor, suerte en tenemos de ti!!!

Lo que me lie a poner el watchdog este https://github.com/UberEclectic/weewx/tree/watchdog/examples/watchdog porque el problema no es que me quede sin internet. Pero no logro hacerlo correr.

6
WeeWX / Re:Problemas con weewx
« en: 13 de Marzo del 2023, 15:00:38 pm »
Hola

Muchas gracias por el msmtp, porfin e logrado hacerlo, lo único es que cada vez que muevo el watchdog, me dice que weewx esta parado, le e cambiado la dirección del log, ya que yo lo tengo instalado por la aplicación de jantoni. Pero no entiendo el problema y porque siempre me dice que esta parado y me lo deja parado, no me reinicia el weewx. os pongo los correos que me llegan.

mié 08 mar 2023 23:08:37 UTC WeeWX: Watchdog WeeWX is NOT running!!!
mié 08 mar 2023 23:08:37 UTC WeeWX: Watchdog Restart event timestamp: (1678316917)
Mar  8 23:08:40 raspberrypi weewx[12620] INFO __main__: Received signal TERM (15).
Mar  8 23:08:40 raspberrypi weewx[12620] INFO weewx.engine: Main loop exiting. Shutting engine down.
Mar  8 23:08:40 raspberrypi weewx[12620] INFO weewx.engine: Shutting down StdReport thread
Mar  8 23:08:40 raspberrypi weewx[12620] INFO __main__: Terminating weewx version 4.10.2
Mar  8 23:08:45 raspberrypi weewx[12796]: Stopping weewx weather system: weewx..
mié 08 mar 2023 23:08:37 UTC WeeWX: Watchdog Stop message: Stopping weewx (via systemctl): weewx.service.
mié 08 mar 2023 23:08:37 UTC WeeWX: Watchdog Start message: * weewx.service - LSB: weewx weather system
     Loaded: loaded (/etc/init.d/weewx; generated)
     Active: inactive (dead) since Wed 2023-03-08 23:08:45 UTC; 207ms ago
       Docs: man:systemd-sysv-generator(8)
    Process: 12606 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)
    Process: 12796 ExecStop=/etc/init.d/weewx stop (code=exited, status=0/SUCCESS)
        CPU: 11.977s

mar 08 23:06:18 raspberrypi python3[12620]: weewx[12620] INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx
mar 08 23:08:40 raspberrypi systemd[1]: Stopping LSB: weewx weather system...
mar 08 23:08:40 raspberrypi python3[12620]: weewx[12620] INFO __main__: Received signal TERM (15).
mar 08 23:08:40 raspberrypi python3[12620]: weewx[12620] INFO weewx.engine: Main loop exiting. Shutting engine down.
mar 08 23:08:40 raspberrypi python3[12620]: weewx[12620] INFO weewx.engine: Shutting down StdReport thread
mar 08 23:08:40 raspberrypi python3[12620]: weewx[12620] INFO __main__: Terminating weewx version 4.10.2
mar 08 23:08:45 raspberrypi weewx[12796]: Stopping weewx weather system: weewx..
mar 08 23:08:45 raspberrypi systemd[1]: weewx.service: Succeeded.
mar 08 23:08:45 raspberrypi systemd[1]: Stopped LSB: weewx weather system.
mar 08 23:08:45 raspberrypi systemd[1]: weewx.service: Consumed 11.977s CPU time.
* weewx.service - LSB: weewx weather system
     Loaded: loaded (/etc/init.d/weewx; generated)
     Active: inactive (dead) since Wed 2023-03-08 23:08:45 UTC; 1min 5s ago
       Docs: man:systemd-sysv-generator(8)
    Process: 12606 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)
    Process: 12796 ExecStop=/etc/init.d/weewx stop (code=exited, status=0/SUCCESS)
        CPU: 11.977s

mar 08 23:06:18 raspberrypi python3[12620]: weewx[12620] INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx
mar 08 23:08:40 raspberrypi systemd[1]: Stopping LSB: weewx weather system...
mar 08 23:08:40 raspberrypi python3[12620]: weewx[12620] INFO __main__: Received signal TERM (15).
mar 08 23:08:40 raspberrypi python3[12620]: weewx[12620] INFO weewx.engine: Main loop exiting. Shutting engine down.
mar 08 23:08:40 raspberrypi python3[12620]: weewx[12620] INFO weewx.engine: Shutting down StdReport thread
mar 08 23:08:40 raspberrypi python3[12620]: weewx[12620] INFO __main__: Terminating weewx version 4.10.2
mar 08 23:08:45 raspberrypi weewx[12796]: Stopping weewx weather system: weewx..
mar 08 23:08:45 raspberrypi systemd[1]: weewx.service: Succeeded.
mar 08 23:08:45 raspberrypi systemd[1]: Stopped LSB: weewx weather system.
mar 08 23:08:45 raspberrypi systemd[1]: weewx.service: Consumed 11.977s CPU time.
mié 08 mar 2023 23:08:37 UTC WeeWX: Watchdog WeeWX is STILL not running / NOT OKAY!!!

7
WeeWX / Re:Problemas con weewx
« en: 06 de Marzo del 2023, 22:35:03 pm »
Hola chicos, primero gracias a Jantoni por lo de telegram, estoy ahora en estudio. Estoy intentando con el tema del watchdog, pero me falla el mail... no logro configurarlo, pero eso es harina de otro costal....

Vuelvo a reactivar el tema, porque ayer volvio a fallarme la estacion, y logre capturar estos mensajes en el log. Al arrancar me costo un poco volver a funcionar.

Pongo aqui las sentencias del log.

Mar  5 18:13:12 raspberrypi weewx[502] INFO __main__: PID file is /var/run/weewx.pid
Mar  5 18:13:12 raspberrypi weewx[1258] INFO weewx.engine: Loading station type FineOffsetUSB (weewx.drivers.fousb)
Mar  5 18:13:12 raspberrypi weewx[428]: Starting weewx weather system: weewx.
Mar  5 18:13:12 raspberrypi weewx[1258] INFO weewx.drivers.fousb: driver version is 1.20
Mar  5 18:13:12 raspberrypi weewx[1258] INFO weewx.drivers.fousb: polling mode is PERIODIC
Mar  5 18:13:12 raspberrypi weewx[1258] INFO weewx.drivers.fousb: polling interval is 60
Mar  5 18:13:12 raspberrypi weewx[1258] CRITICAL weewx.drivers.fousb: Cannot find USB device with Vendor=0x1941 ProdID=0x8021 Device=None
Mar  5 18:13:12 raspberrypi weewx[1258] ERROR weewx.engine: Import of driver failed: Unable to find USB device (<class 'weewx.WeeWxIOError'>)
Mar  5 18:13:12 raspberrypi weewx[1258] CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Mar  5 18:13:12 raspberrypi weewx[1258] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
Mar  5 18:13:12 raspberrypi weewx[1258] CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Mar  5 18:13:12 raspberrypi weewx[1258] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/fousb.py", line 233, in loader
Mar  5 18:13:12 raspberrypi weewx[1258] CRITICAL weewx.engine:     ****      return FineOffsetUSB(**config_dict[DRIVER_NAME])
Mar  5 18:13:12 raspberrypi weewx[1258] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/fousb.py", line 968, in __init__
Mar  5 18:13:12 raspberrypi weewx[1258] CRITICAL weewx.engine:     ****      self.openPort()
Mar  5 18:13:12 raspberrypi weewx[1258] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/fousb.py", line 1023, in openPort
Mar  5 18:13:12 raspberrypi weewx[1258] CRITICAL weewx.engine:     ****      raise weewx.WeeWxIOError("Unable to find USB device")
Mar  5 18:13:12 raspberrypi weewx[1258] CRITICAL weewx.engine:     ****  weewx.WeeWxIOError: Unable to find USB device
Mar  5 18:13:12 raspberrypi weewx[1258] CRITICAL __main__: Unable to load driver: Unable to find USB device
Mar  5 18:13:12 raspberrypi weewx[1258] CRITICAL __main__:     ****  Exiting...

mar 06 04:25:44 raspberrypi python3[1636]: weewx[1636] CRITICAL weewx.engine:     ****      ...self)
mar 06 04:25:44 raspberrypi python3[1636]: weewx[1636] CRITICAL weewx.engine:     ****    Fi...oader
mar 06 04:25:44 raspberrypi python3[1636]: weewx[1636] CRITICAL weewx.engine:     ****      ...AME])
mar 06 04:25:44 raspberrypi python3[1636]: weewx[1636] CRITICAL weewx.engine:     ****    Fi...nit__
mar 06 04:25:44 raspberrypi python3[1636]: weewx[1636] CRITICAL weewx.engine:     ****      ...ort()
mar 06 04:25:44 raspberrypi python3[1636]: weewx[1636] CRITICAL weewx.engine:     ****    Fi...nPort
mar 06 04:25:44 raspberrypi python3[1636]: weewx[1636] CRITICAL weewx.engine:     ****      ...ice")
mar 06 04:25:44 raspberrypi python3[1636]: weewx[1636] CRITICAL weewx.engine:     ****  weew...evice
mar 06 04:25:44 raspberrypi python3[1636]: weewx[1636] CRITICAL __main__: Unable to load dri...evice
mar 06 04:25:44 raspberrypi python3[1636]: weewx[1636] CRITICAL __main__:     ****  Exiting...

lo ultimo es un status, hecho rapido antes de ir a trabajar y volver a reiniciar. Ahora mismo esta funcionando.

A ver que veis, parece que no se conecta bien?¿

8
WeeWX / Re:Problemas con weewx
« en: 28 de Febrero del 2023, 22:13:16 pm »
No he tocado nada, lo tengo en ingles, la generación de todo... No se...

Lo mantendré en vigilancia e intentare poner el watchdog.

Porciento jantoni, e buscado lo de telegram y no e encontrado esto que comentavas.

Ante todo, gracias a todos!

9
WeeWX / Re:Problemas con weewx
« en: 28 de Febrero del 2023, 14:47:48 pm »
hola,
el 'watchdog' que aparece en https://forum.meteoclimatic.net/index.php/topic,2509.0.html sigue funcionando (yo continuo usándolo y de vez en cuando reinicia weewx o la raspi porque se ha quedado colgada).
Es importante editarlo y asegurarte de que los directorios que están definidos con los que tu usas (o cambiarlos) así como comprobar que los comandos usados para reiniciar weewx o la raspi son los adecuados para la versión que tu usas (es el script aparecen las alternativas como lineas de comentarios)

Muchas gracias!

Aprovecho la ciesta del renacuajo y me pongo a ello!!

10
WeeWX / Re:Problemas con weewx
« en: 28 de Febrero del 2023, 14:38:17 pm »
Citar
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: Wunderground-PWS: Unexpected exception of type <class 'UnicodeDecodeError'>
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: WeatherCloud: Unexpected exception of type <class 'UnicodeDecodeError'>
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: Windy: Unexpected exception of type <class 'UnicodeDecodeError'>

Thread terminating. Reason: 'utf-8' codec can't decode byte 0xf3 in position 29: invalid continuation byte

Error de codificación.

El hexadecimal 0xf3 corresponde a la o aguda (ó) que tendrás seguramente en el nombre de usuario o contraseña de WU, Weathercloud y Windy.

weewx.conf está por defecto en us-ascii, se puede ver con el comando file -bi /etc/weewx/weewx.conf y no soporta caracteres acentuados (cosas de las primeras codificaciones que estaban hechas solo para el alfabeto inglés por tema de falta de bytes).

Edita weewx.conf con nano. Cuando entres con él y edites lo que sea (borra una de esas ó y vuélvelas a escribir, al guardar te detecta ese carácter y lo guarda en UTF-8 por lo que weewx ya no te debería de tirar esos errores.

nano es enano pero potente  :)

Perfecto, e buscado en nano la maldita ó y no aparece en ningún lugar, ni en WU, windy ni Weathercloud, e usado el ^W de nano y no ha encontrado ninguna o con acento así que no se, e creado un comentario con la ó i e guardado y parece que ha cambiado como tu bien has dicho.

A ver si es la solución... adjunto una captura de pantalla para cersionarme que lo he hecho bien.

11
WeeWX / Re:Problemas con weewx
« en: 27 de Febrero del 2023, 23:01:00 pm »
Hola jantoni

No encuentro lo de telegram por ningun sitio...
También e encontrado un watchdog, pero veo que es de hace 4 años y no se si funciona con esta versión de weewx... imagino que si es este https://forum.meteoclimatic.net/index.php/topic,2509.0.html

12
WeeWX / Re:Problemas con weewx
« en: 27 de Febrero del 2023, 22:32:17 pm »
Disculpa es que lo e escrito a toda mecha la medio dia...
Primero antes de na, muchas gracias por contestar jantoni!! y por todas tus ayudas!

Citar
Cuando dices que la Raspberry funciona correctamente, lo dices porque........¿?  ¿Te conectas a la Raspberry en local, con teclado y pantalla? ¿Te conectas en remoto a través de la red? Este detalle es muy importante, para saber si lo que realmente ha fallado es la red de trabajo de la Raspi (ethernet o wifi)

Bien pues cuando fallo, entre al skin, por apache, o sea poniendo la ip interna y pude acceder a la pgina, pero no actualizava de hacia 24h..., tengo la raspberry con la version pantallita, conectada con hdmi en el televisor.

Citar
Por tu comentario, entiendo que es una Raspi 3 o una Raspi 4, que son las que llevan Wifi integrado

Si, es la Raspi 3 b+



Citar
Ahora nos has despistado. Si la Raspi funciona correctamente, era cuestión de identificarte y reiniciar weewx o el servicio networking.

Por tanto, de tus comentarios, entiendo que el primer sospechoso es el sistema de networking de la Raspi.

Sin logs y sin ver que pasa, es difícil de valorar, pero si yo estuviera en tu lugar.....

Lo primero que haría es, cuando tenga otro episodio, es intentar conectarme a la Raspi con SSH desde otro ordenador. Si la Raspi responde, no es un problema de los puertos de red de la Raspi.

Si no responde, conectar un teclado y un monitor HDMI (o con conversor HDMI-VGA) y ver si la Raspi funciona. No te digo de conectar ratón, porque me imagino.....o a lo mejor imagino demasiado, que no tendrás la Raspi con sistema de escritorio (ventanitas)

Si por red no te conectas, pero si con teclado en local, entonces tenemos que centrarnos en el sistema de networking de la Raspi.

El problema es que lo detecto cuando estoy fuera de casa y llegue a ponerle un interruptor inteligente para poder hacerlo a distancia, pero ahora mirare de guardar el LOG. Tengo guardado el ultimo LOG de cuando me paso con wifi.
Adjunto el documento del LOG para no perder ninguna linea, pero es algo del horario que no consigo decifrar...

----> LOG
Dec  4 17:01:08 raspberrypi weewx[1140] INFO weewx.manager: Added record 2022-12-04 17:00:00 UTC (1670173200) to daily summary in 'weewx.sdb'
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: Wunderground-PWS: Unexpected exception of type <class 'UnicodeDecodeError'>
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: WeatherCloud: Unexpected exception of type <class 'UnicodeDecodeError'>
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: Windy: Unexpected exception of type <class 'UnicodeDecodeError'>
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: *** Traceback (most recent call last):
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: *** Traceback (most recent call last):
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/share/weewx/weewx/restx.py", line 379, in run_loop
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self.process_record(_record, dbmanager)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/share/weewx/weewx/restx.py", line 379, in run_loop
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: *** Traceback (most recent call last):
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/share/weewx/weewx/restx.py", line 379, in run_loop
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self.process_record(_record, dbmanager)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/share/weewx/weewx/restx.py", line 445, in process_record
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self.post_with_retries(_request, data)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/share/weewx/weewx/restx.py", line 474, in post_with_retries
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     _response = self.post_request(request, data)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/share/weewx/weewx/restx.py", line 538, in post_request
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     _response = urllib.request.urlopen(request, data=data_bytes, timeout=self.timeout)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     return opener.open(url, data, timeout)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/urllib/request.py", line 517, in open
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     response = self._open(req, data)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/urllib/request.py", line 534, in _open
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     result = self._call_chain(self.handle_open, protocol, protocol +
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     result = func(*args)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/urllib/request.py", line 1389, in https_open
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     return self.do_open(http.client.HTTPSConnection, req,
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/urllib/request.py", line 1346, in do_open
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     h.request(req.get_method(), req.selector, req.data, headers,
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self.process_record(_record, dbmanager)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 1255, in request
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self._send_request(method, url, body, headers, encode_chunked)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/share/weewx/weewx/restx.py", line 445, in process_record
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self.post_with_retries(_request, data)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/share/weewx/weewx/restx.py", line 474, in post_with_retries
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     _response = self.post_request(request, data)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/share/weewx/weewx/restx.py", line 538, in post_request
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/share/weewx/weewx/restx.py", line 445, in process_record
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self.post_with_retries(_request, data)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     _response = urllib.request.urlopen(request, data=data_bytes, timeout=self.timeout)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     return opener.open(url, data, timeout)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/urllib/request.py", line 517, in open
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     response = self._open(req, data)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/urllib/request.py", line 534, in _open
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     result = self._call_chain(self.handle_open, protocol, protocol +
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     result = func(*args)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/urllib/request.py", line 1389, in https_open
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     return self.do_open(http.client.HTTPSConnection, req,
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/share/weewx/weewx/restx.py", line 474, in post_with_retries
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     _response = self.post_request(request, data)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/urllib/request.py", line 1346, in do_open
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     h.request(req.get_method(), req.selector, req.data, headers,
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self.endheaders(body, encode_chunked=encode_chunked)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 1255, in request
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self._send_request(method, url, body, headers, encode_chunked)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/share/weewx/weewx/restx.py", line 538, in post_request
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     _response = urllib.request.urlopen(request, data=data_bytes, timeout=self.timeout)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self._send_output(message_body, encode_chunked=encode_chunked)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 1010, in _send_output
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self.endheaders(body, encode_chunked=encode_chunked)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self.send(msg)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 950, in send
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self.connect()
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 1417, in connect
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     super().connect()
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 921, in connect
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self.sock = self._create_connection(
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/socket.py", line 822, in create_connection
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     for res in getaddrinfo(host, port, 0, SOCK_STREAM):
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/socket.py", line 953, in getaddrinfo
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: *** UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 29: invalid continuation byte
Dec  4 17:01:09 raspberrypi weewx[1140] CRITICAL weewx.restx: Windy: Thread terminating. Reason: 'utf-8' codec can't decode byte 0xf3 in position 29: invalid continuation byte
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     return opener.open(url, data, timeout)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/urllib/request.py", line 517, in open
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     response = self._open(req, data)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/urllib/request.py", line 534, in _open
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     result = self._call_chain(self.handle_open, protocol, protocol +
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     result = func(*args)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/urllib/request.py", line 1375, in http_open
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     return self.do_open(http.client.HTTPConnection, req)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/urllib/request.py", line 1346, in do_open
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self._send_output(message_body, encode_chunked=encode_chunked)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     h.request(req.get_method(), req.selector, req.data, headers,
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 1010, in _send_output
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 1255, in request
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self.send(msg)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self._send_request(method, url, body, headers, encode_chunked)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 950, in send
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self.connect()
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self.endheaders(body, encode_chunked=encode_chunked)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 1417, in connect
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     super().connect()
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 921, in connect
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self.sock = self._create_connection(
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/socket.py", line 822, in create_connection
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     for res in getaddrinfo(host, port, 0, SOCK_STREAM):
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/socket.py", line 953, in getaddrinfo
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: *** UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 29: invalid continuation byte
Dec  4 17:01:09 raspberrypi weewx[1140] CRITICAL weewx.restx: Wunderground-PWS: Thread terminating. Reason: 'utf-8' codec can't decode byte 0xf3 in position 29: invalid continuation byte
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self._send_output(message_body, encode_chunked=encode_chunked)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 1010, in _send_output
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self.send(msg)
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 950, in send
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self.connect()
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/http/client.py", line 921, in connect
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     self.sock = self._create_connection(
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/socket.py", line 822, in create_connection
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     for res in getaddrinfo(host, port, 0, SOCK_STREAM):
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***   File "/usr/lib/python3.9/socket.py", line 953, in getaddrinfo
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: ***     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
Dec  4 17:01:09 raspberrypi weewx[1140] ERROR weewx.restx: *** UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 29: invalid continuation byte
Dec  4 17:01:09 raspberrypi weewx[1140] CRITICAL weewx.restx: WeatherCloud: Thread terminating. Reason: 'utf-8' codec can't decode byte 0xf3 in position 29: invalid continuation byte



Citar
Otra posibilidad que tienes es montar una especie de vigilante, con un script que publiqué por aquí y que te manda mensajes por Telegram en caso de fallos de la red y reinicia el sistema de networking.....no es infalible, pero funciona bastante bien.

Y en cuanto a saber si falla el envío de datos no queda otra que mirar la web de meteoclimatic. Se podrían hacer varias cosas en este sentido......pero si el sistema de networking no funciona, no valdrá para nada porque los mensajes de aviso no te llegarán.

Te recomiendo lo del "vigilante"

Ahora mismo me pongo al lio buscando el script, porque me interesa, pensava que el tema ya estava resuelto, al cambiar la conexion a lan y ahora resulta que vuelve la pesadilla, porque estoy apunto de hacer la web, con la cam y todo... no me gustaria que fallase sin darme cuenta....

13
WeeWX / Problemas con weewx
« en: 27 de Febrero del 2023, 15:51:57 pm »
Hola

Estoy teniendo problemas desde ya hace tiempo... El Weewx queda como parado, a veces deje de mandar datos a meteoclimatic y otras redes, a veces incluso deja de generar informes... Pero las raspberry funciona correctamente... Estuve observando y pensaba que era fallo de Wifi, así que como lo tengo al lado del router, pues amplie puertos con un swich y le puese un cable.
Perfecto más de un mes y medio funcionando sin ningún corte, pero estas semanas, más de 24h porque me di cuenta y hoy durante el episodio de nieve por la mañana otra vez un paro.
Siempre se arregla de la misma forma, quitando tensión y volviéndole a dar. A veces al cabo de una hora vuelve a pasar.
Intento capturar LOG la próxima vez antes de reiniciar.
Aprovecho para preguntaros como os dais cuenta de que está fallando el envió de datos?¿

14
WeeWX / Re:Precipitación
« en: 21 de Diciembre del 2022, 00:29:05 am »
Gracias a los dos, después de este periodo de lluvias parece ser que funciona bien

15
WeeWX / Re:Precipitación
« en: 21 de Octubre del 2022, 00:20:30 am »
Bien visto! Mañana solo levantarme arrancó el pc y le doy al sudo nano a comprobar el punto decimal

Cuento algo al siguiente episodio de lluvia

Páginas: [1] 2