Software > WeeWX

Problemas con weewx

(1/5) > >>

Jmarsal5:
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?¿

jantoni:
Bueno, veamos.

No se entiende muy bien tu mensaje, pero vamos a intentar darte pistas.


--- Citar ---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..
--- Fin de la cita ---

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)


--- Citar ---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.
--- Fin de la cita ---

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


--- Citar ---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.
--- Fin de la cita ---

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.

Pero no ve voy a extender hasta que nos digas más.

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"

Jmarsal5:
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)
--- Fin de la cita ---

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
--- Fin de la cita ---

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.
--- Fin de la cita ---

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"

--- Fin de la cita ---

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....

Jmarsal5:
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

jmviper:

--- 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

--- Fin de la cita ---

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  :)

Navegación

[0] Índice de Mensajes

[#] Página Siguiente

Ir a la versión completa