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