Software > Cumulus y Cumulus MX
Fallo conexión Linux
jmviper:
Quizás lo mejor es instalar weewx que tiene más herramientas y ver si él la puede leer, con ello descartaríamos que fuese cosa de la consola y que fuese el problema de Cumulus MX.
Para instalarlo:
http://www.weewx.com/docs/debian.htm
Cuando lo instales podemos ir probando cosas.
Tiempo Málaga:
Buenas, he probado a hacerlo, pero me da error al intentar actualizar (apt-update). Me ha pasado en las últimas veces que he intentado actualizar la Raspberry
--- Código: ---pi@raspberrypi:~ $ sudo apt-get update
Des:1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15,0 kB]
Obj:2 http://archive.raspberrypi.org/debian buster InRelease
Des:3 http://weewx.com/apt squeeze InRelease [2.537 B]
Des:4 http://weewx.com/apt squeeze/main all Packages [3.613 B]
Descargados 21,1 kB en 14s (1.553 B/s)
Traceback (most recent call last):
File "/usr/lib/cnf-update-db", line 26, in <module>
col.create(db)
File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 94, in create
self._fill_commands(con)
File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 132, in _fill_commands
self._parse_single_contents_file(con, f, fp.stdout)
File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 271, in _parse_single_contents_file
priority = component_priorities[component]
KeyError: 'rpi'
Leyendo lista de paquetes... Hecho
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code
--- Fin del código ---
Tiempo Málaga:
--- Código: ---pi@raspberrypi:~ $ sudo apt-get install weewx
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Los paquetes indicados a continuación se instalaron de forma automática y ya no son necesarios.
libdrm-etnaviv1 libllvm6.0 point-rpi python3-pyperclip python3-thonny
rpi.gpio-common
Utilice «sudo apt autoremove» para eliminarlos.
Se instalarán los siguientes paquetes adicionales:
python-cheetah python-configobj python-usb
Paquetes sugeridos:
python-cheetah-doc python-markdown python-memcache python-pygments
python-configobj-doc sqlite ftp httpd
Se instalarán los siguientes paquetes NUEVOS:
python-cheetah python-configobj python-usb weewx
0 actualizados, 4 nuevos se instalarán, 0 para eliminar y 0 no actualizados.
Se necesita descargar 1.786 kB de archivos.
Se utilizarán 7.130 kB de espacio de disco adicional después de esta operación.
¿Desea continuar? [S/n] s
Des:4 http://weewx.com/apt squeeze/main all weewx all 3.9.2-1 [1.572 kB]
Des:1 http://ftp.cica.es/mirrors/Linux/raspbian/raspbian buster/main armhf python-configobj all 5.0.6-3 [35,6 kB]
Des:2 http://ftp.cica.es/mirrors/Linux/raspbian/raspbian buster/main armhf python-cheetah armhf 3.1.0-3 [140 kB]
Des:3 http://ftp.cica.es/mirrors/Linux/raspbian/raspbian buster/main armhf python-usb all 1.0.2-1 [38,7 kB]
Descargados 1.786 kB en 29s (62,7 kB/s)
Preconfigurando paquetes ...
Seleccionando el paquete python-configobj previamente no seleccionado.
(Leyendo la base de datos ... 161775 ficheros o directorios instalados actualmente.)
Preparando para desempaquetar .../python-configobj_5.0.6-3_all.deb ...
Desempaquetando python-configobj (5.0.6-3) ...
Seleccionando el paquete python-cheetah previamente no seleccionado.
Preparando para desempaquetar .../python-cheetah_3.1.0-3_armhf.deb ...
Desempaquetando python-cheetah (3.1.0-3) ...
Seleccionando el paquete python-usb previamente no seleccionado.
Preparando para desempaquetar .../python-usb_1.0.2-1_all.deb ...
Desempaquetando python-usb (1.0.2-1) ...
Seleccionando el paquete weewx previamente no seleccionado.
Preparando para desempaquetar .../archives/weewx_3.9.2-1_all.deb ...
Desempaquetando weewx (3.9.2-1) ...
Configurando python-configobj (5.0.6-3) ...
Configurando python-usb (1.0.2-1) ...
Configurando python-cheetah (3.1.0-3) ...
Configurando weewx (3.9.2-1) ...
Saved configuration to /etc/weewx/weewx.conf
Procesando disparadores para man-db (2.8.5-2) ...
Procesando disparadores para systemd (241-7~deb10u2+rpi1) ...
pi@raspberrypi:~ $ sudo tail -f /var/log/syslog
Dec 26 15:47:37 raspberrypi weewx[24826]: vantage: Unable to read hardware type; raise WeeWxIOError
Dec 26 15:47:37 raspberrypi weewx[24826]: engine: Import of driver failed: Unable to read hardware type (<class 'weewx.WeeWxIOError'>)
Dec 26 15:47:37 raspberrypi weewx[24826]: engine: Unable to load driver: Unable to read hardware type
Dec 26 15:47:37 raspberrypi weewx[24826]: **** Exiting...
Dec 26 15:47:40 raspberrypi systemd[1]: Reloading.
Dec 26 15:47:43 raspberrypi dbus-daemon[376]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.33' (uid=0 pid=25129 comm="/usr/bin/gdbus call --system --dest org.freedeskto")
Dec 26 15:47:44 raspberrypi systemd[1]: Starting PackageKit Daemon...
Dec 26 15:47:44 raspberrypi PackageKit: daemon start
Dec 26 15:47:44 raspberrypi dbus-daemon[376]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Dec 26 15:47:44 raspberrypi systemd[1]: Started PackageKit Daemon.
Dec 26 15:52:49 raspberrypi PackageKit: daemon quit
Dec 26 15:52:49 raspberrypi systemd[1]: packagekit.service: Main process exited, code=killed, status=15/TERM
Dec 26 15:52:49 raspberrypi systemd[1]: packagekit.service: Succeeded.
Dec 26 15:59:01 raspberrypi CRON[25338]: (pi) CMD (/home/pi/star_meteoclimatic_linux/meteoclimatic.sh)
Dec 26 15:59:01 raspberrypi CRON[25334]: (CRON) info (No MTA installed, discarding output)
--- Fin del código ---
jmviper:
Hay que configurar weewx para la Davis.
O bien lo haces a través de la utilidad de configuración con sudo dpkg-reconfigure weewx o directamente editando el archivo /etc/weewx/weewx.conf
Si lo haces editando weewx.conf aquí tienes una descripción de lo que ir poniendo:
https://forum.meteoclimatic.net/index.php/topic,42.0.html
Para no tener que estar viendo el log del sistema puedes ver también las últimas líneas y el estado de weewx con service weewx status y para reiniciarlo sudo service weewx restart
Tiempo Málaga:
Lo he configurado al instalarlo, ya he puesto que es una Vantage, y los datos de la localización que me pedía. Cuando pongo lo del status da error (he mandado captura)
Navegación
[#] Página Siguiente
[*] Página Anterior
Ir a la versión completa