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

Páginas: 1 [2] 3 4 5
16
WeeWX / Re:Perdida acceso ssh a weewx-RPi
« en: 19 de Mayo del 2021, 20:47:53 pm »

Ahora solo te falta cambiar el código de estación en el perfil del foro.....que tienes la vieja estación *+*

Listo también, al igual que la firma,jjajaja.
Ya estoy al día.

17
WeeWX / Re:Perdida acceso ssh a weewx-RPi
« en: 18 de Mayo del 2021, 22:44:00 pm »
Bueno, pues por algún motivo que solo la RPi sabe, el acceso al ssh estaba desactivado.
Una vez que he podido acceder a ella desde el teclado ha sido reactivar el ssh y todo correcto.
Por cierto, la clave era la misma, jejej.

Muchas gracias.

18
WeeWX / Perdida acceso ssh a weewx-RPi
« en: 18 de Mayo del 2021, 15:52:35 pm »
Buenas tardes,
el problema es el siguiente: weewx funciona demasiado bien y no se hace necesario acceder a el para nada.

Esto significa que hoy, después de muchos meses, (noviembre del 2020 la última vez), he necesitado acceder a la RPi para actualizar unas cosillas en la página web que genera.
La sorpresa es que no me concede acceso, supuestamente la clave introducida no es correcta. Evidentemente no ha sido cambiada, al menos no por mi, y no puedo acceder.
Increiblemente, una segunda RPi que gestiona la cámara web y envía las imágenes, tampoco me permite acceso por ssh.

He conectado por HDMI, la RPi con weewx a una pantalla y no sale imagen ninguna tampoco.

Esto significa que si la tengo que apagar, debo hacerlo a machete y por supuesto se que se va a joder algo, faltaría mas.
Entonces me pregunto, que opciones puedo tener para recuperar acceso a la RPi ???.
Debo decir que las dos están funcionando perfectamente por lo que otra opción es no tocar nada hasta que ocurra algún problema y sea totalmente necesario
pero me jode haber perdido acceso sin mas.

Pensais que pueda tener alguna solución sin tener que apagarla a lo bestia ????.
Muchas gracias.

19
WeeWX / Re:Como parar todo?
« en: 18 de Mayo del 2021, 15:41:10 pm »
Mil gracias, mas fácil no puede ser, jejeje.

De todas formas creo que en las instrucciones encontré una posible forma de detener la adquisición de datos sin apagar la consola, o eso creo.

vue" border="0

20
WeeWX / Re:Como parar todo?
« en: 17 de Mayo del 2021, 16:22:11 pm »
Interesante cuestión.
En breve tengo pensado hacer la misma maniobra de mantenimiento y con el balanceo del mástil va a ser una fiesta de inconsistencias.

En algún sitio, hace muuuuucho tiempo he visto que existe un modo de detener la adquisición de datos en la consola de la vue para hacer estos mantenimientos
pero ya ni se donde ni como se hacía.

Si averiguas algo, coméntalo por aquí. Lo mismo haré yo.

Un saludo.

21
WeeWX / Re:Potencia Raspberry meteowee
« en: 01 de Octubre del 2020, 19:05:03 pm »
Buenas,
la mia es una Pi3 model b+ y va sobrada.
Ten en cuenta que weewx tampoco es que exija grandes cosas.
Seguramente una Pi2 sea suficiente pero con una 3 en adelante vas servido.

22
WeeWX / Re:Problemas con los reinicios de weewx
« en: 17 de Mayo del 2020, 20:05:41 pm »
Pues podemos dar por resuelto el tema. plau2

Mil gracias a ambos.
Saludos.

23
WeeWX / Re:Problemas con los reinicios de weewx
« en: 15 de Mayo del 2020, 16:44:34 pm »
pi@raspberrypi:~ $ ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.8  33712  8044 ?        Ss   may14   0:16 /sbin/init
root         2  0.0  0.0      0     0 ?        S    may14   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        I<   may14   0:00 [rcu_gp]
root         4  0.0  0.0      0     0 ?        I<   may14   0:00 [rcu_par_gp]
root         8  0.0  0.0      0     0 ?        I<   may14   0:00 [mm_percpu_wq]
root         9  0.0  0.0      0     0 ?        S    may14   0:03 [ksoftirqd/0]
root        10  0.0  0.0      0     0 ?        I    may14   0:23 [rcu_sched]
root        11  0.0  0.0      0     0 ?        I    may14   0:00 [rcu_bh]
root        12  0.0  0.0      0     0 ?        S    may14   0:00 [migration/0]
root        13  0.0  0.0      0     0 ?        S    may14   0:00 [cpuhp/0]
root        14  0.0  0.0      0     0 ?        S    may14   0:00 [cpuhp/1]
root        15  0.0  0.0      0     0 ?        S    may14   0:00 [migration/1]
root        16  0.0  0.0      0     0 ?        S    may14   0:00 [ksoftirqd/1]
root        19  0.0  0.0      0     0 ?        S    may14   0:00 [cpuhp/2]
root        20  0.0  0.0      0     0 ?        S    may14   0:00 [migration/2]
root        21  0.0  0.0      0     0 ?        S    may14   0:02 [ksoftirqd/2]
root        24  0.0  0.0      0     0 ?        S    may14   0:00 [cpuhp/3]
root        25  0.0  0.0      0     0 ?        S    may14   0:00 [migration/3]
root        26  0.0  0.0      0     0 ?        S    may14   0:00 [ksoftirqd/3]
root        29  0.0  0.0      0     0 ?        S    may14   0:00 [kdevtmpfs]
root        30  0.0  0.0      0     0 ?        I<   may14   0:00 [netns]
root        35  0.0  0.0      0     0 ?        S    may14   0:00 [khungtaskd]
root        36  0.0  0.0      0     0 ?        S    may14   0:00 [oom_reaper]
root        37  0.0  0.0      0     0 ?        I<   may14   0:00 [writeback]
root        38  0.0  0.0      0     0 ?        S    may14   0:00 [kcompactd0]
root        39  0.0  0.0      0     0 ?        I<   may14   0:00 [crypto]
root        40  0.0  0.0      0     0 ?        I<   may14   0:00 [kblockd]
root        41  0.0  0.0      0     0 ?        S    may14   0:00 [watchdogd]
root        42  0.0  0.0      0     0 ?        I<   may14   0:00 [rpciod]
root        43  0.0  0.0      0     0 ?        I<   may14   0:00 [kworker/u9:0]
root        44  0.0  0.0      0     0 ?        I<   may14   0:00 [xprtiod]
root        47  0.0  0.0      0     0 ?        S    may14   0:00 [kswapd0]
root        48  0.0  0.0      0     0 ?        I<   may14   0:00 [nfsiod]
root        59  0.0  0.0      0     0 ?        I<   may14   0:00 [kthrotld]
root        60  0.0  0.0      0     0 ?        I<   may14   0:00 [iscsi_eh]
root        61  0.0  0.0      0     0 ?        I<   may14   0:00 [dwc_otg]
root        62  0.0  0.0      0     0 ?        I<   may14   0:00 [DWC Notificatio]
root        63  0.0  0.0      0     0 ?        S<   may14   0:00 [vchiq-slot/0]
root        64  0.0  0.0      0     0 ?        S<   may14   0:00 [vchiq-recy/0]
root        65  0.0  0.0      0     0 ?        S<   may14   0:00 [vchiq-sync/0]
root        66  0.0  0.0      0     0 ?        S    may14   0:00 [vchiq-keep/0]
root        68  0.0  0.0      0     0 ?        I<   may14   0:00 [mmc_complete]
root        72  0.0  0.0      0     0 ?        I<   may14   0:01 [kworker/1:1H-kblockd]
root        73  0.0  0.0      0     0 ?        S    may14   0:03 [jbd2/mmcblk0p2-]
root        74  0.0  0.0      0     0 ?        I<   may14   0:00 [ext4-rsv-conver]
root        76  0.0  0.0      0     0 ?        I<   may14   0:00 [ipv6_addrconf]
root        96  0.0  0.0      0     0 ?        I<   may14   0:07 [kworker/0:2H-kblockd]
root       114  0.1  1.0  41896 10696 ?        Ss   may14   1:33 /lib/systemd/systemd-journald
root       134  0.0  0.3  18044  3988 ?        Ss   may14   0:01 /lib/systemd/systemd-udevd
systemd+   211  0.0  0.5  22412  5636 ?        Ssl  may14   0:00 /lib/systemd/systemd-timesyncd
root       253  0.0  0.2   7972  2356 ?        Ss   may14   0:00 /usr/sbin/cron -f
root       255  0.0  0.0   3692   740 ?        SNs  may14   0:00 /usr/sbin/alsactl -E HOME=/run/alsa -s -n 19 -c rdaemon
root       256  0.0  0.5  13040  5684 ?        Ss   may14   0:00 /lib/systemd/systemd-logind
nobody     257  0.0  0.2   4320  2076 ?        Ss   may14   0:00 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --deviceglob /dev/input/event*
root       259  0.0  0.2  25512  2764 ?        Ssl  may14   0:21 /usr/sbin/rsyslogd -n -iNONE
avahi      263  0.0  0.2   5772  2588 ?        Ss   may14   0:00 avahi-daemon: running [raspberrypi.local]
message+   267  0.0  0.2   6560  2960 ?        Ss   may14   0:01 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
root       270  0.0  0.4  10740  4012 ?        Ss   may14   0:00 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
root       272  0.0  0.0  27656    80 ?        SLsl may14   1:12 /usr/sbin/rngd -r /dev/hwrng
avahi      281  0.0  0.0   5772   252 ?        S    may14   0:00 avahi-daemon: chroot helper
root       295  0.0  0.0      0     0 ?        I<   may14   0:00 [cfg80211]
root       368  0.0  0.1   2832  1652 ?        Ss   may14   0:00 /sbin/dhcpcd -q -w
root       379  0.0  0.1   4308  1372 tty1     Ss+  may14   0:00 /sbin/agetty -o -p -- \u --noclear tty1 linux
root       381  0.0  0.1   6612  1804 ?        Ss+  may14   0:00 /sbin/agetty -o -p -- \u --keep-baud 115200,38400,9600 ttyAMA0 vt220
root       387  0.0  0.5  10724  5576 ?        Ss   may14   0:22 /usr/sbin/sshd -D
root       388  0.0  1.6 191588 16796 ?        Ss   may14   0:06 /usr/sbin/apache2 -k start
www-data  4417  0.0  0.9 191924  9488 ?        S    08:59   0:00 /usr/sbin/apache2 -k start
root      6602  0.0  0.0      0     0 ?        I<   10:20   0:00 [kworker/2:0H-kblockd]
root      6806  0.0  0.0      0     0 ?        I    10:26   0:00 [kworker/3:1-cgroup_destroy]
root      9283  0.0  0.0      0     0 ?        I    11:18   0:00 [kworker/1:0-events]
root     12477  0.0  0.0      0     0 ?        I    12:15   0:00 [kworker/3:2-events]
root     15283  0.0  0.0      0     0 ?        I    13:38   0:01 [kworker/0:2-events_power_efficient]
root     15290  0.0  0.0      0     0 ?        I    13:38   0:00 [kworker/1:2-events]
root     15710  0.0  0.0      0     0 ?        I    14:02   0:00 [kworker/u8:2-events_unbound]
root     15897  0.0  0.0      0     0 ?        I<   14:10   0:00 [kworker/2:2H]
root     15899  0.0  0.0      0     0 ?        I<   14:10   0:00 [kworker/3:1H]
root     15985  0.0  0.0      0     0 ?        I    14:15   0:00 [kworker/2:0-events_freezable]
root     16045  0.0  0.6  12236  6272 ?        Ss   14:18   0:00 sshd: pi [priv]
pi       16053  0.0  0.6  14596  6812 ?        Ss   14:18   0:00 /lib/systemd/systemd --user
pi       16056  0.0  0.3  35252  3368 ?        S    14:18   0:00 (sd-pam)
root     16064  0.0  0.0      0     0 ?        I    14:18   0:00 [kworker/0:1-events_power_efficient]
pi       16071  0.0  0.3  12236  3640 ?        S    14:18   0:00 sshd: pi@pts/0
pi       16075  0.1  0.3   8608  3712 pts/0    Ss   14:18   0:01 -bash
root     16110  0.0  0.0      0     0 ?        I<   14:20   0:00 [kworker/1:2H]
root     16112  0.0  0.0      0     0 ?        I    14:20   0:00 [kworker/2:1-mm_percpu_wq]
root     16120  0.0  0.0      0     0 ?        I<   14:20   0:00 [kworker/0:1H]
root     16175  0.0  0.0      0     0 ?        I    14:24   0:00 [kworker/u8:0-events_unbound]
root     16303  0.0  0.0      0     0 ?        I<   14:25   0:00 [kworker/3:0H]
root     16307  0.0  0.0      0     0 ?        I<   14:25   0:00 [kworker/0:0H]
root     16311  0.0  0.0      0     0 ?        I    14:25   0:00 [kworker/2:2-events]
root     16318  0.0  0.0      0     0 ?        I    14:25   0:00 [kworker/0:0]
root     16356  0.0  0.0      0     0 ?        I<   14:28   0:00 [kworker/1:0H]
root     16422  0.0  0.0      0     0 ?        I    14:29   0:00 [kworker/3:0]
root     16434  0.0  0.0      0     0 ?        I    14:29   0:00 [kworker/u8:1]
pi       16435  0.0  0.2   9784  2560 pts/0    R+   14:30   0:00 ps aux
www-data 19115  0.0  0.9 191932  9496 ?        S    00:00   0:00 /usr/sbin/apache2 -k start
www-data 19116  0.0  0.9 192024  9540 ?        S    00:00   0:00 /usr/sbin/apache2 -k start
www-data 19117  0.0  1.1 192040 11180 ?        S    00:00   0:00 /usr/sbin/apache2 -k start
www-data 19119  0.0  0.9 192032  9544 ?        S    00:00   0:00 /usr/sbin/apache2 -k start
www-data 19120  0.0  0.9 192032  9544 ?        S    00:00   0:00 /usr/sbin/apache2 -k start
root     22383  3.3  3.8  91696 38320 ?        Sl   01:03  27:07 python /usr/bin/weewxd --daemon --pidfile=/run/weewx/weewx.pid /etc/weewx/weewx.conf
root     22477  0.0  0.0      0     0 ?        I<   01:05   0:00 [kworker/3:2H-kblockd]
www-data 23907  0.0  0.9 192032  9536 ?        S    01:48   0:00 /usr/sbin/apache2 -k start
www-data 23908  0.0  0.9 191652  9212 ?        S    01:48   0:00 /usr/sbin/apache2 -k start
www-data 25693  0.0  0.9 192032  9544 ?        S    03:13   0:00 /usr/sbin/apache2 -k start
www-data 25694  0.0  0.9 192032  9548 ?        S    03:13   0:00 /usr/sbin/apache2 -k start



Desde la mas absoluta ignorancia pregunto:
cuando pongo las lineas que genera la consola lo hago seleccionando el texto y con el boton derecho, click.
Esto copia el texto pero a su vez, hace como intro, y todo lo seleccionado, linea a linea lo envia a la terminal como comando para ejecutar.
La terminal devuelve error pero es posible que alguna linea haya provocado este lio ????.
No se si me haya explicado bien.......
Por prevenir males mayores, he utilizado ps aux > lista.txt para generar el listado en un archivo.

Segundo:
Borrar lineas.

total 92
drwxr-xr-x 5 pi   pi    4096 may 15 14:35 .
drwxr-xr-x 3 root root  4096 jul 10  2019 ..
-rw------- 1 pi   pi   22060 may 14 20:44 .bash_history
-rw-r--r-- 1 pi   pi     220 jul 10  2019 .bash_logout
-rw-r--r-- 1 pi   pi    3523 jul 10  2019 .bashrc
drwx------ 3 pi   pi    4096 may  1 15:43 .config
-rwxr-xr-x 1 pi   pi     263 mar  4 17:13 copiaweewx.sh
drwx------ 3 pi   pi    4096 oct 15  2019 .gnupg
-rw-r--r-- 1 pi   pi       0 may 15 14:35 lista2.txt
-rw-r--r-- 1 pi   pi    9108 may 15 14:32 lista.txt
drwxr-xr-x 3 pi   pi    4096 ene  6 00:16 .local
-rw-r--r-- 1 pi   pi     339 mar  9 23:02 meteoclimatic.php
-rw-r--r-- 1 pi   pi     807 jul 10  2019 .profile
-rw-r--r-- 1 pi   pi      66 ene  6 00:16 .selected_editor
-rwxr-xr-x 1 pi   pi     281 may 14 20:43 temp.sh
-rwxr-xr-x 1 pi   pi     303 may 14 20:44 temp.sh.save

Resultado: se han borrado y ya solo salen los archivos de siempre.
He listado los ocultos por si alguno no es necesario y lo puedo borrar tambien.
Los de color verde son los únicos que tenia hasta ahora.

24
WeeWX / Re:Problemas con los reinicios de weewx
« en: 14 de Mayo del 2020, 22:38:03 pm »
prueba a listar con sudo ls -la a ver qué sale

pi@raspberrypi:~ $ ls -la
total 108
drwxr-xr-x 5 pi   pi    4096 may 13 17:36  .
drwxr-xr-x 3 root root  4096 jul 10  2019  ..
-rw------- 1 pi   pi   19562 may 14 16:20  .bash_history
-rw-r--r-- 1 pi   pi     220 jul 10  2019  .bash_logout
-rw-r--r-- 1 pi   pi    3523 jul 10  2019  .bashrc
-rw-r--r-- 1 root root 11925 may 13 17:36 'been rotated since unit was started.                                                                                                              Log output is incomplete or unavailable.'
drwx------ 3 pi   pi    4096 may  1 15:43  .config
-rwxr-xr-x 1 pi   pi     263 mar  4 17:13  copiaweewx.sh
drwx------ 3 pi   pi    4096 oct 15  2019  .gnupg
-rw-r--r-- 1 root root  1323 may 13 17:36 'ince Wed 2020-05-13 17:32:09 UTC'
drwxr-xr-x 3 pi   pi    4096 ene  6 00:16  .local
-rw-r--r-- 1 pi   pi     339 mar  9 23:02  meteoclimatic.php
-rw-r--r-- 1 root root 11925 may 12 18:55 'ource configuration file or drop-ins                                                                                                              of systemd-timesyn cd.service changed on disk. Run systemctl daemon-reload to re                                                                                                             load units.'
-rw-r--r-- 1 root root   254 may 12 18:49 'pberrypi:~ $ sudo systemctl status sy                                                                                                             stemd-time-wait-sync'
-rw-r--r-- 1 root root   254 may 12 18:55 'pberrypi:~ $ sudo systemctl stop syst                                                                                                             emd-timesyncd'
-rw-r--r-- 1 pi   pi     807 jul 10  2019  .profile
-rw-r--r-- 1 pi   pi      66 ene  6 00:16  .selected_editor
-rwxr-xr-x 1 pi   pi     292 dic 17 18:44  temp.sh

Me parece raro el resultado ya que en la carpeta pi solo tengo 2 archivos
copiaweewx.sh, que es el script que hace todos los dias la copia de la bbdd de /var/lib/weewx a /media y posteriormente la comprime
temp.sh para monitorizar la temperatura
No se de donde sale, por ejemplo meteoclimatic.php que su ubicación es /var/www/html/

Jantoni, con respecto a la imagen de la sd, la hice desde el portatil y la orden exacta es
sudo dd if=/dev/mmcblk0 of=/home/rubendgl/meteo/meteopi.iso bs=1M status=progress

pi@raspberrypi:~ $ df -h
S.ficheros     Tamaño Usados  Disp Uso% Montado en
/dev/root         15G   2,0G   12G  14% /
devtmpfs         484M      0  484M   0% /dev
tmpfs            488M      0  488M   0% /dev/shm
tmpfs            488M    31M  457M   7% /run
tmpfs            5,0M   4,0K  5,0M   1% /run/lock
tmpfs            488M      0  488M   0% /sys/fs/cgroup
/dev/mmcblk0p1   253M    53M  200M  21% /boot
tmpfs             98M      0   98M   0% /run/user/1000

25
WeeWX / Re:Problemas con los reinicios de weewx
« en: 14 de Mayo del 2020, 16:57:54 pm »
Hoy voy a clonar la tarjeta de la raspi donde está funcionando el weewx para tener una imagen completa para cuando casque, que lo hará tarde o temprano.
De esta manera, sudo dd if=/dev/mmcblk0 of=/media/sdmeteopi.img, me tarda unos 15 minutos.
Por lo tanto es una buena forma de comprobar la sincronización del reloj.
Si supera esto, no hay mas que hablar.


PD:
    Pues debo decir que todo ha ido de maravilla. Ni un solo error en la carga de weewx, y todos los registros atrasados, al final estuvo parada media hora larga, se añadieron sin problemas.
Un millón de gracias, jantoni y jmviper por vuestra ayuda.

PD2: (offtopic)
    Ahora, al hacer un ls en /home/pi me sale esto.

pi@raspberrypi:~ $ ls
'been rotated since unit was started. Log output is incomplete or unavailable.'
 copiaweewx.sh
'ince Wed 2020-05-13 17:32:09 UTC'
 meteoclimatic.php
'ource configuration file or drop-ins of systemd-timesyn cd.service changed on disk. Run systemctl daemon-reload to reload units.'
'pberrypi:~ $ sudo systemctl status systemd-time-wait-sync'
'pberrypi:~ $ sudo systemctl stop systemd-timesyncd'

Todo funciona con normalidad y un ls en cualquier otro sitio muestra perfectamente el contenido, solo falla en la carpeta pi.
He probado systemctl daemon-reload y sigue fallando.
He probado a detener y reiniciar systemd-time-wait-sync y systemd-timesyncd y nada.
Reiniciar la raspberry tampoco lo soluciona.

26
WeeWX / Re:Problemas con los reinicios de weewx
« en: 13 de Mayo del 2020, 19:59:30 pm »
Pues tras finalizar los ajustes que me faltaban, por cierto,
Citar
solo falta quitar ntp (sudo apt purge ntp)
no estaba instalado.

He apagado la raspberry y como 1 minuto de espera la he vuelto a encender y este es el resultado.

pi@raspberrypi:/var/log $ sudo systemctl status systemd-time-wait-sync
● systemd-time-wait-sync.service - Wait Until Kernel Time Synchronized
   Loaded: loaded (/lib/systemd/system/systemd-time-wait-sync.service; enabled; vendor preset: enabled)
   Active: active (exited) since Wed 2020-05-13 17:43:02 UTC; 2min 58s ago
     Docs: man:systemd-time-wait-sync.service(8)
  Process: 103 ExecStart=/lib/systemd/systemd-time-wait-sync (code=exited, status=0/SUCCESS)
 Main PID: 103 (code=exited, status=0/SUCCESS)

feb 14 10:12:00 raspberrypi systemd-time-wait-sync[103]: adjtime state 5 status 40 time Thu 2019-02-14 10:11:59.759073 UTC
may 13 17:41:22 raspberrypi systemd-time-wait-sync[103]: adjtime state 5 status 40 time Wed 2020-05-13 17:41:22.968762 UTC
may 13 17:43:02 raspberrypi systemd-time-wait-sync[103]: adjtime state 0 status 2000 time Wed 2020-05-13 17:43:02.897174 UTC
may 13 17:43:02 raspberrypi systemd[1]: Started Wait Until Kernel Time Synchronized.
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
pi@raspberrypi:/var/log $ sudo systemctl status systemd-timesyncd
Warning: The unit file, source configuration file or drop-ins of systemd-timesyncd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● systemd-timesyncd.service - Network Time Synchronization
   Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
           └─disable-with-time-daemon.conf
   Active: active (running) since Wed 2020-05-13 17:41:22 UTC; 4min 54s ago
     Docs: man:systemd-timesyncd.service(8)
 Main PID: 214 (systemd-timesyn)
   Status: "Synchronized to time server for the first time 162.159.200.1:123 (0.debian.pool.ntp.org)."
    Tasks: 2 (limit: 2319)
   Memory: 3.0M
   CGroup: /system.slice/systemd-timesyncd.service
           └─214 /lib/systemd/systemd-timesyncd

feb 14 10:12:03 raspberrypi systemd[1]: Starting Network Time Synchronization...
feb 14 10:12:04 raspberrypi systemd-timesyncd[214]: System clock time unset or jumped backwards, restoring from recorded timestamp: Wed 2020-05-13 17:41:22 UTC
may 13 17:41:22 raspberrypi systemd[1]: Started Network Time Synchronization.
may 13 17:43:02 raspberrypi systemd-timesyncd[214]: Synchronized to time server for the first time 162.159.200.1:123 (0.debian.pool.ntp.org).
pi@raspberrypi:/var/log $ sudo service weewx status
● weewx.service - weewx weather system
   Loaded: loaded (/etc/systemd/system/weewx.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2020-05-13 17:43:03 UTC; 3min 30s ago
  Process: 419 ExecStart=/usr/bin/weewxd --daemon --pidfile=/run/weewx/weewx.pid /etc/weewx/weewx.conf (code=exited, status=0/SUCCESS)
 Main PID: 423 (python)
    Tasks: 5 (limit: 2319)
   Memory: 37.0M
   CGroup: /system.slice/weewx.service
           └─423 python /usr/bin/weewxd --daemon --pidfile=/run/weewx/weewx.pid /etc/weewx/weewx.conf

may 13 17:43:04 raspberrypi weewx[423]: engine: Starting main packet loop.
may 13 17:45:16 raspberrypi weewx[423]: manager: Added record 2020-05-13 17:45:00 UTC (1589391900) to database 'weewx.sdb'
may 13 17:45:16 raspberrypi weewx[423]: manager: Added record 2020-05-13 17:45:00 UTC (1589391900) to daily summary in 'weewx.sdb'
may 13 17:45:17 raspberrypi weewx[423]: restx: WeatherCloud: Published record 2020-05-13 17:45:00 UTC (1589391900)
may 13 17:45:17 raspberrypi weewx[423]: restx: AWEKAS: Published record 2020-05-13 17:45:00 UTC (1589391900)
may 13 17:45:18 raspberrypi weewx[423]: restx: StationRegistry: Published record 2020-05-13 17:45:00 UTC (1589391900)
may 13 17:45:18 raspberrypi weewx[423]: restx: Wunderground-PWS: Published record 2020-05-13 17:45:00 UTC (1589391900)
may 13 17:45:26 raspberrypi weewx[423]: cheetahgenerator: Generated 20 files for report StandardReport in 8.62 seconds
may 13 17:45:28 raspberrypi weewx[423]: imagegenerator: Generated 13 images for StandardReport in 2.09 seconds
may 13 17:45:28 raspberrypi weewx[423]: copygenerator: copied 9 files to /var/www/html




Y el log de weewx es este:

May 13 17:43:03 raspberrypi weewx[419]: engine: Initializing weewx version 3.9.2
May 13 17:43:03 raspberrypi weewx[419]: engine: Using Python 2.7.16 (default, Oct 10 2019, 22:02:15) #012[GCC 8.3.0]
May 13 17:43:03 raspberrypi weewx[419]: engine: Platform Linux-4.19.97-v7+-armv7l-with-debian-10.3
May 13 17:43:03 raspberrypi weewx[419]: engine: Locale is 'es_ES.UTF-8'
May 13 17:43:03 raspberrypi weewx[419]: engine: pid file is /run/weewx/weewx.pid
May 13 17:43:03 raspberrypi weewx[423]: engine: Using configuration file /etc/weewx/weewx.conf
May 13 17:43:03 raspberrypi weewx[423]: engine: Loading station type Vantage (weewx.drivers.vantage)
May 13 17:43:04 raspberrypi weewx[423]: engine: StdConvert target unit is 0x10
May 13 17:43:04 raspberrypi weewx[423]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, dewpoint=prefer_hardware, appTemp=prefer$
May 13 17:43:04 raspberrypi weewx[423]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
May 13 17:43:04 raspberrypi weewx[423]: engine: Archive will use data binding wx_binding
May 13 17:43:04 raspberrypi weewx[423]: engine: Record generation will be attempted in 'hardware'
May 13 17:43:04 raspberrypi weewx[423]: engine: Using archive interval of 300 seconds (specified by hardware)
May 13 17:43:04 raspberrypi weewx[423]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
May 13 17:43:04 raspberrypi weewx[423]: manager: Starting backfill of daily summaries
May 13 17:43:04 raspberrypi weewx[423]: restx: StationRegistry: Station will be registered.
May 13 17:43:04 raspberrypi weewx[423]: restx: Wunderground-PWS: Data for station INIGRN7 will be posted
May 13 17:43:04 raspberrypi weewx[423]: restx: PWSweather: Posting not enabled.
May 13 17:43:04 raspberrypi weewx[423]: restx: CWOP: Posting not enabled.
May 13 17:43:04 raspberrypi weewx[423]: restx: WOW: Posting not enabled.
May 13 17:43:04 raspberrypi weewx[423]: restx: AWEKAS: Data will be uploaded for user pnsc16
May 13 17:43:04 raspberrypi weewx[423]: restx: WeatherCloud: service version is 0.11
May 13 17:43:04 raspberrypi weewx[423]: restx: WeatherCloud: Data will be uploaded for id=d87c7ffbe24b0539
May 13 17:43:04 raspberrypi weewx[423]: engine: Starting up weewx version 3.9.2
May 13 17:43:04 raspberrypi weewx[423]: engine: Clock error is 0.62 seconds (positive is fast)
May 13 17:43:04 raspberrypi weewx[423]: engine: Starting main packet loop.
May 13 17:45:16 raspberrypi weewx[423]: manager: Added record 2020-05-13 17:45:00 UTC (1589391900) to database 'weewx.sdb'
May 13 17:45:16 raspberrypi weewx[423]: manager: Added record 2020-05-13 17:45:00 UTC (1589391900) to daily summary in 'weewx.sdb'
May 13 17:45:17 raspberrypi weewx[423]: restx: WeatherCloud: Published record 2020-05-13 17:45:00 UTC (1589391900)
May 13 17:45:17 raspberrypi weewx[423]: restx: AWEKAS: Published record 2020-05-13 17:45:00 UTC (1589391900)
May 13 17:45:18 raspberrypi weewx[423]: restx: StationRegistry: Published record 2020-05-13 17:45:00 UTC (1589391900)
May 13 17:45:18 raspberrypi weewx[423]: restx: Wunderground-PWS: Published record 2020-05-13 17:45:00 UTC (1589391900)
May 13 17:45:26 raspberrypi weewx[423]: cheetahgenerator: Generated 20 files for report StandardReport in 8.62 seconds
May 13 17:45:28 raspberrypi weewx[423]: imagegenerator: Generated 13 images for StandardReport in 2.09 seconds
May 13 17:45:28 raspberrypi weewx[423]: copygenerator: copied 9 files to /var/www/html

Ya no salen los avisos de error a la hora de añadir los registros a la base de datos.

27
WeeWX / Re:Problemas con los reinicios de weewx
« en: 13 de Mayo del 2020, 17:04:47 pm »
He seguido todos los pasos hasta justo antes del punto donde me indicas de eliminar que se cargue con /etc/init.d
y eso es debido a que creo que no está funcionando bien.

pi@raspberrypi:~ $ sudo systemctl status systemd-timesyncd
● systemd-timesyncd.service - Network Time Synchronization
   Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
           └─disable-with-time-daemon.conf
   Active: inactive (dead)
     Docs: man:systemd-timesyncd.service(8)
pi@raspberrypi:~ $ sudo systemctl list-unit-files | grep systemd-time-wait-sync.service
systemd-time-wait-sync.service         disabled
pi@raspberrypi:~ $ sudo systemctl enable systemd-time-wait-sync.service
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-time-wait-sync.service → /lib/systemd/system/                                                                               systemd-time-wait-sync.service.
pi@raspberrypi:~ $ sudo nano /etc/systemd/system/weewx.service
pi@raspberrypi:~ $ sudo systemctl daemon-reload
pi@raspberrypi:~ $ sudo /etc/init.d/weewx restart
[ ok ] Restarting weewx (via systemctl): weewx.service.
pi@raspberrypi:~ $ sudo service weewx status
● weewx.service - weewx weather system
   Loaded: loaded (/etc/systemd/system/weewx.service; disabled; vendor preset: enabled)
   Active: active (running) since Wed 2020-05-13 14:58:06 UTC; 12s ago
  Process: 9997 ExecStart=/usr/bin/weewxd --daemon --pidfile=/run/weewx/weewx.pid /etc/weewx/weewx.conf (code=exited, status=0/SUCCESS)
 Main PID: 10001 (python)
    Tasks: 5 (limit: 2319)
   Memory: 7.2M
   CGroup: /system.slice/weewx.service
           └─10001 python /usr/bin/weewxd --daemon --pidfile=/run/weewx/weewx.pid /etc/weewx/weewx.conf

may 13 14:58:06 raspberrypi weewx[10001]: restx: Wunderground-PWS: Data for station INIGRN7 will be posted
may 13 14:58:06 raspberrypi weewx[10001]: restx: PWSweather: Posting not enabled.
may 13 14:58:06 raspberrypi weewx[10001]: restx: CWOP: Posting not enabled.
may 13 14:58:06 raspberrypi weewx[10001]: restx: WOW: Posting not enabled.
may 13 14:58:06 raspberrypi weewx[10001]: restx: AWEKAS: Data will be uploaded for user pnsc16
may 13 14:58:06 raspberrypi weewx[10001]: restx: WeatherCloud: service version is 0.11
may 13 14:58:06 raspberrypi weewx[10001]: restx: WeatherCloud: Data will be uploaded for id=d87c7ffbe24b0539
may 13 14:58:06 raspberrypi weewx[10001]: engine: Starting up weewx version 3.9.2
may 13 14:58:07 raspberrypi weewx[10001]: engine: Clock error is 0.97 seconds (positive is fast)
may 13 14:58:07 raspberrypi weewx[10001]: engine: Starting main packet loop.

Ese disabled me mosquea y prefiero no seguir no sea que pierda el acceso a weewx .

28
WeeWX / Re:Problemas con los reinicios de weewx
« en: 12 de Mayo del 2020, 21:06:39 pm »
Bueno, pues lo siguiente que he probado ha sido.

pi@raspberrypi:~ $ sudo systemctl start systemd-time-wait-sync
pi@raspberrypi:~ $ sudo systemctl status systemd-time-wait-sync
● systemd-time-wait-sync.service - Wait Until Kernel Time Synchronized
   Loaded: loaded (/lib/systemd/system/systemd-time-wait-sync.service; disabled; vendor preset: enab
   Active: active (exited) since Tue 2020-05-12 18:59:26 UTC; 8s ago
     Docs: man:systemd-time-wait-sync.service(8)
  Process: 17839 ExecStart=/lib/systemd/systemd-time-wait-sync (code=exited, status=0/SUCCESS)
 Main PID: 17839 (code=exited, status=0/SUCCESS)

may 12 18:59:26 raspberrypi systemd[1]: Starting Wait Until Kernel Time Synchronized...
may 12 18:59:26 raspberrypi systemd-time-wait-sync[17839]: adjtime state 0 status 2001 time Tue 2020
may 12 18:59:26 raspberrypi systemd[1]: Started Wait Until Kernel Time Synchronized.
pi@raspberrypi:~ $ date
mar may 12 18:59:42 UTC 2020

Ahora si sale como activo ese servicio, no se. Seguramente la haya liado gorda y ni me atrevo a reiniciar para probar.

29
WeeWX / Re:Problemas con los reinicios de weewx
« en: 12 de Mayo del 2020, 20:58:09 pm »
Hola Rubén

Prueba a realizar el segundo paso para quitar el falso reloj:

https://github.com/weewx/weewx/wiki/Raspberry-Pi

$ sudo systemctl stop systemd-timesyncd
$ sudo systemctl disable systemd-timesyncd


Eso quitaría la sincronización de hora que usa la raspi.

También en el enlace al foro que hay en esa página se explica que ese servicio dependería de otro llamado systemd-time-wait-sync que esperaría a que se hubiese sincronizado la hora con el servidor NTP

Qué te pone al ejecutar sudo systemctl status systemd-time-wait-sync ??

Bien, pues este es el resultado:

Código: [Seleccionar]
pi@raspberrypi:~ $ sudo systemctl stop systemd-timesyncd
Warning: The unit file, source configuration file or drop-ins of systemd-timesyn
cd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
pi@raspberrypi:~ $ sudo systemctl disable systemd-timesyncd
Removed /etc/systemd/system/dbus-org.freedesktop.timesync1.service.
Removed /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service.
pi@raspberrypi:~ $ sudo systemctl status systemd-time-wait-sync
● systemd-time-wait-sync.service - Wait Until Kernel Time Synchronized
   Loaded: loaded (/lib/systemd/system/systemd-time-wait-sync.service; disabled; vendor preset: enab
   Active: inactive (dead)
     Docs: man:systemd-time-wait-sync.service(8)

30
WeeWX / Re:Problemas con los reinicios de weewx
« en: 11 de Mayo del 2020, 19:15:30 pm »

Puedes hacer una prueba??

Reiniciar la raspi y, en cuanto puedas ejecuta el comando

date

A ver que fecha y hora aparece

Código: [Seleccionar]
pi@raspberrypi:~ $ date
lun may 11 16:30:31 UTC 2020
pi@raspberrypi:~ $ date
lun may 11 16:32:25 UTC 2020

En el primer date, el reloj del ordenador marcaba las 18:32 con lo que ahí ya existe un desfase de 2 minutos en la raspberry, esperé unos 5 segundos y volví a ejecutar date y entonces ya si la Pi sacó la hora correcta.
Pues efectivamente parece ser que el problema es que se carga antes weewx que la sincronización de la hora.
Pero si no tiene instalado el fake-clock, como puede ser esto ??. Por lo que me comentaste anteriormente, debería arrancar en 1970.

Páginas: 1 [2] 3 4 5