Software > WeeWX

No se añaden registros a la base de datos

(1/6) > >>

Wlarues:
Hola, después de los últimos problemas, explicados en:
http://forum.meteoclimatic.net/index.php/topic,882.msg6506.html

Me encuentro tras solucionarlos que algo está mal. Nada más encender la Raspberry después de un par de días sin funcionar, se ha generado una página web, correspondiente a las 16:40h (y esto ha ocurrido a las 17:15h). Después de eso, al parecer se siguen generando páginas web, pero son esta misma constantemente, es decir, no actualizan los datos.

El log lo explica mejor que yo:


--- Código: ---Oct 29 15:15:33 pi1 weewx[3060]: manager: added record 2016-10-29 14:40:00 UTC (1477752000) to database 'weewx.sdb'
Oct 29 15:15:33 pi1 weewx[3060]: restx: AWEKAS: Published record 2016-10-29 13:20:00 UTC (1477747200)
Oct 29 15:15:33 pi1 weewx[3060]: manager: added record 2016-10-29 14:40:00 UTC (1477752000) to daily summary in 'weewx.sdb'
Oct 29 15:15:33 pi1 weewx[3060]: restx: PWSWeather: Published record 2016-10-29 14:10:00 UTC (1477750200)
Oct 29 15:15:33 pi1 weewx[3060]: engine: Starting main packet loop.
Oct 29 15:15:33 pi1 weewx[3060]: restx: AWEKAS: Published record 2016-10-29 13:25:00 UTC (1477747500)
Oct 29 15:15:33 pi1 weewx[3060]: restx: Wunderground-PWS: Published record 2016-10-29 14:05:00 UTC (1477749900)
Oct 29 15:15:33 pi1 weewx[3060]: restx: WeatherCloud: Published record 2016-10-29 14:40:00 UTC (1477752000)
Oct 29 15:15:34 pi1 weewx[3060]: restx: PWSWeather: Published record 2016-10-29 14:15:00 UTC (1477750500)
Oct 29 15:15:34 pi1 weewx[3060]: restx: AWEKAS: Published record 2016-10-29 13:30:00 UTC (1477747800)
Oct 29 15:15:34 pi1 weewx[3060]: restx: Wunderground-PWS: Published record 2016-10-29 14:10:00 UTC (1477750200)
Oct 29 15:15:34 pi1 weewx[3060]: restx: AWEKAS: Published record 2016-10-29 13:35:00 UTC (1477748100)
Oct 29 15:15:34 pi1 weewx[3060]: restx: PWSWeather: Published record 2016-10-29 14:20:00 UTC (1477750800)
Oct 29 15:15:34 pi1 weewx[3060]: restx: Wunderground-PWS: Published record 2016-10-29 14:15:00 UTC (1477750500)
Oct 29 15:15:35 pi1 weewx[3060]: restx: AWEKAS: Published record 2016-10-29 13:40:00 UTC (1477748400)
Oct 29 15:15:35 pi1 weewx[3060]: restx: PWSWeather: Published record 2016-10-29 14:25:00 UTC (1477751100)
Oct 29 15:15:35 pi1 weewx[3060]: restx: Wunderground-PWS: Published record 2016-10-29 14:20:00 UTC (1477750800)
Oct 29 15:15:35 pi1 weewx[3060]: restx: AWEKAS: Published record 2016-10-29 13:45:00 UTC (1477748700)
Oct 29 15:15:35 pi1 weewx[3060]: restx: PWSWeather: Published record 2016-10-29 14:30:00 UTC (1477751400)
Oct 29 15:15:36 pi1 weewx[3060]: restx: AWEKAS: Published record 2016-10-29 13:50:00 UTC (1477749000)
Oct 29 15:15:36 pi1 weewx[3060]: restx: PWSWeather: Published record 2016-10-29 14:35:00 UTC (1477751700)
Oct 29 15:15:36 pi1 weewx[3060]: restx: Wunderground-PWS: Published record 2016-10-29 14:25:00 UTC (1477751100)
Oct 29 15:15:36 pi1 weewx[3060]: restx: AWEKAS: Published record 2016-10-29 13:55:00 UTC (1477749300)
Oct 29 15:15:36 pi1 weewx[3060]: restx: PWSWeather: Published record 2016-10-29 14:40:00 UTC (1477752000)
Oct 29 15:15:36 pi1 weewx[3060]: restx: AWEKAS: Published record 2016-10-29 14:00:00 UTC (1477749600)
Oct 29 15:15:36 pi1 weewx[3060]: restx: Wunderground-PWS: Published record 2016-10-29 14:30:00 UTC (1477751400)
Oct 29 15:15:37 pi1 weewx[3060]: restx: AWEKAS: Published record 2016-10-29 14:05:00 UTC (1477749900)
Oct 29 15:15:37 pi1 weewx[3060]: restx: Wunderground-PWS: Published record 2016-10-29 14:35:00 UTC (1477751700)
Oct 29 15:15:37 pi1 weewx[3060]: restx: AWEKAS: Published record 2016-10-29 14:10:00 UTC (1477750200)
Oct 29 15:15:37 pi1 weewx[3060]: restx: AWEKAS: Published record 2016-10-29 14:15:00 UTC (1477750500)
Oct 29 15:15:38 pi1 weewx[3060]: restx: Wunderground-PWS: Published record 2016-10-29 14:40:00 UTC (1477752000)
Oct 29 15:15:38 pi1 weewx[3060]: restx: AWEKAS: Published record 2016-10-29 14:20:00 UTC (1477750800)
Oct 29 15:15:38 pi1 weewx[3060]: restx: AWEKAS: Published record 2016-10-29 14:25:00 UTC (1477751100)
Oct 29 15:15:38 pi1 weewx[3060]: restx: AWEKAS: Published record 2016-10-29 14:30:00 UTC (1477751400)
Oct 29 15:15:39 pi1 weewx[3060]: restx: AWEKAS: Published record 2016-10-29 14:35:00 UTC (1477751700)
Oct 29 15:15:39 pi1 weewx[3060]: restx: AWEKAS: Published record 2016-10-29 14:40:00 UTC (1477752000)
Oct 29 15:15:40 pi1 weewx[3060]: vantage: LOOP #2; read error. Try #1
Oct 29 15:15:40 pi1 weewx[3060]:    ****  Expected to read 99 chars; got 0 instead
Oct 29 15:18:05 pi1 weewx[3060]: engine: Terminating weewx version 3.2.1
Oct 29 15:19:18 pi1 weewx[3264]: engine: Initializing weewx version 3.2.1
Oct 29 15:19:18 pi1 weewx[3264]: engine: Using Python 2.7.3 (default, Mar 18 2014, 05:13:23) #012[GCC 4.6.3]
Oct 29 15:19:18 pi1 weewx[3264]: engine: Platform Linux-4.1.12+-armv6l-with-debian-7.8
Oct 29 15:19:18 pi1 weewx[3264]: engine: pid file is /var/run/weewx.pid
Oct 29 15:19:18 pi1 weewx[3270]: engine: Using configuration file /etc/weewx/weewx.conf
Oct 29 15:19:18 pi1 weewx[3270]: engine: Loading station type Vantage (weewx.drivers.vantage)
Oct 29 15:19:19 pi1 weewx[3270]: engine: StdConvert target unit is 0x10
Oct 29 15:19:19 pi1 weewx[3270]: engine: Archive will use data binding wx_binding
Oct 29 15:19:19 pi1 weewx[3270]: engine: Record generation will be attempted in 'hardware'
Oct 29 15:19:19 pi1 weewx[3270]: engine: Using archive interval of 300 seconds
Oct 29 15:19:19 pi1 weewx[3270]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Oct 29 15:19:19 pi1 weewx[3270]: engine: Starting backfill of daily summaries
Oct 29 15:19:19 pi1 weewx[3270]: engine: Daily summaries up to date.
Oct 29 15:19:20 pi1 weewx[3270]: restx: StationRegistry: Station will be registered.
Oct 29 15:19:20 pi1 weewx[3270]: restx: Wunderground-PWS: Data for station IARAGNLA3 will be posted
Oct 29 15:19:20 pi1 weewx[3270]: restx: PWSWeather: Data for station Wlarues22 will be posted
Oct 29 15:19:20 pi1 weewx[3270]: restx: AWEKAS: Data will be uploaded for user Wlarues
Oct 29 15:19:20 pi1 weewx[3270]: restx: WeatherCloud: service version is 0.10
Oct 29 15:19:20 pi1 weewx[3270]: restx: WeatherCloud: Data will be uploaded for id=aceee44b51a593bd
Oct 29 15:19:20 pi1 weewx[3270]: engine: Starting up weewx version 3.2.1
Oct 29 15:19:20 pi1 weewx[3270]: engine: Clock error is 0.10 seconds (positive is fast)
Oct 29 15:19:21 pi1 weewx[3270]: engine: Starting main packet loop.
Oct 29 15:21:07 pi1 weewx[3270]: cheetahgenerator: Generated 32 files for report StandardReport in 48.82 seconds
Oct 29 15:22:29 pi1 weewx[3270]: genimages: Generated 33 images for StandardReport in 82.07 seconds
Oct 29 15:23:15 pi1 weewx[3270]: reportengine: ftp'd 82 files in 45.50 seconds
Oct 29 15:23:34 pi1 weewx[3270]: cheetahgenerator: Generated 6 files for report Meteosabi in 18.21 seconds
Oct 29 15:23:36 pi1 weewx[3270]: genimages: Generated 6 images for Meteosabi in 2.36 seconds
Oct 29 15:23:54 pi1 weewx[3270]: reportengine: ftp'd 24 files in 17.49 seconds
Oct 29 15:25:36 pi1 weewx[3270]: cheetahgenerator: Generated 32 files for report StandardReport in 17.83 seconds
Oct 29 15:25:40 pi1 weewx[3270]: genimages: Generated 8 images for StandardReport in 4.49 seconds
Oct 29 15:25:55 pi1 weewx[3270]: reportengine: ftp'd 40 files in 14.87 seconds
Oct 29 15:26:08 pi1 weewx[3270]: cheetahgenerator: Generated 6 files for report Meteosabi in 12.75 seconds
Oct 29 15:26:10 pi1 weewx[3270]: genimages: Generated 6 images for Meteosabi in 2.19 seconds
Oct 29 15:26:20 pi1 weewx[3270]: reportengine: ftp'd 12 files in 9.43 seconds
Oct 29 15:28:18 pi1 weewx[3270]: engine: Shutting down StdReport thread
Oct 29 15:28:19 pi1 weewx[3270]: engine: Terminating weewx version 3.2.1
Oct 29 15:28:28 pi1 weewx[3559]: engine: Initializing weewx version 3.2.1
Oct 29 15:28:28 pi1 weewx[3559]: engine: Using Python 2.7.3 (default, Mar 18 2014, 05:13:23) #012[GCC 4.6.3]
Oct 29 15:28:28 pi1 weewx[3559]: engine: Platform Linux-4.1.12+-armv6l-with-debian-7.8
Oct 29 15:28:28 pi1 weewx[3559]: engine: pid file is /var/run/weewx.pid
Oct 29 15:28:28 pi1 weewx[3566]: engine: Using configuration file /etc/weewx/weewx.conf
Oct 29 15:28:28 pi1 weewx[3566]: engine: Loading station type Vantage (weewx.drivers.vantage)
Oct 29 15:28:29 pi1 weewx[3566]: vantage: No <ACK> received from console
Oct 29 15:28:29 pi1 weewx[3566]: engine: Unable to load driver: No <ACK> received from Vantage console
Oct 29 15:28:29 pi1 weewx[3566]:     ****  Exiting...
Oct 29 15:30:24 pi1 weewx[3639]: engine: Initializing weewx version 3.2.1
Oct 29 15:30:24 pi1 weewx[3639]: engine: Using Python 2.7.3 (default, Mar 18 2014, 05:13:23) #012[GCC 4.6.3]
Oct 29 15:30:24 pi1 weewx[3639]: engine: Platform Linux-4.1.12+-armv6l-with-debian-7.8
Oct 29 15:30:24 pi1 weewx[3639]: engine: pid file is /var/run/weewx.pid
Oct 29 15:30:24 pi1 weewx[3646]: engine: Using configuration file /etc/weewx/weewx.conf
Oct 29 15:30:24 pi1 weewx[3646]: engine: Loading station type Vantage (weewx.drivers.vantage)
Oct 29 15:30:25 pi1 weewx[3646]: engine: StdConvert target unit is 0x10
Oct 29 15:30:25 pi1 weewx[3646]: engine: Archive will use data binding wx_binding
Oct 29 15:30:25 pi1 weewx[3646]: engine: Record generation will be attempted in 'hardware'
Oct 29 15:30:25 pi1 weewx[3646]: engine: Using archive interval of 300 seconds
Oct 29 15:30:25 pi1 weewx[3646]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Oct 29 15:30:25 pi1 weewx[3646]: engine: Starting backfill of daily summaries
Oct 29 15:30:25 pi1 weewx[3646]: engine: Daily summaries up to date.
Oct 29 15:30:25 pi1 weewx[3646]: restx: StationRegistry: Station will be registered.
Oct 29 15:30:25 pi1 weewx[3646]: restx: Wunderground-PWS: Data for station IARAGNLA3 will be posted
Oct 29 15:30:25 pi1 weewx[3646]: restx: PWSWeather: Data for station Wlarues22 will be posted
Oct 29 15:30:25 pi1 weewx[3646]: restx: AWEKAS: Data will be uploaded for user Wlarues
Oct 29 15:30:25 pi1 weewx[3646]: restx: WeatherCloud: service version is 0.10
Oct 29 15:30:26 pi1 weewx[3646]: restx: WeatherCloud: Data will be uploaded for id=aceee44b51a593bd
Oct 29 15:30:26 pi1 weewx[3646]: engine: Starting up weewx version 3.2.1
Oct 29 15:30:26 pi1 weewx[3646]: engine: Clock error is 0.37 seconds (positive is fast)
Oct 29 15:30:27 pi1 weewx[3646]: engine: Starting main packet loop.
Oct 29 15:36:09 pi1 weewx[3646]: cheetahgenerator: Generated 32 files for report StandardReport in 49.96 seconds
Oct 29 15:36:13 pi1 weewx[3646]: genimages: Generated 8 images for StandardReport in 4.49 seconds
Oct 29 15:36:32 pi1 weewx[3646]: reportengine: ftp'd 57 files in 18.50 seconds
Oct 29 15:36:46 pi1 weewx[3646]: engine: Shutting down StdReport thread
Oct 29 15:36:55 pi1 weewx[3646]: cheetahgenerator: Generated 6 files for report Meteosabi in 22.52 seconds
Oct 29 15:36:57 pi1 weewx[3646]: genimages: Generated 6 images for Meteosabi in 2.21 seconds
Oct 29 15:37:06 pi1 weewx[3646]: engine: Unable to shut down StdReport thread
Oct 29 15:37:07 pi1 weewx[3646]: engine: Terminating weewx version 3.2.1
Oct 29 15:37:13 pi1 weewx[3646]: reportengine: ftp'd 24 files in 15.39 seconds
Oct 29 15:38:08 pi1 weewx[2285]: engine: Initializing weewx version 3.2.1
Oct 29 15:38:08 pi1 weewx[2285]: engine: Using Python 2.7.3 (default, Mar 18 2014, 05:13:23) #012[GCC 4.6.3]
Oct 29 15:38:08 pi1 weewx[2285]: engine: Platform Linux-4.1.12+-armv6l-with-debian-7.8
Oct 29 15:38:08 pi1 weewx[2285]: engine: pid file is /var/run/weewx.pid
Oct 29 15:38:09 pi1 weewx[2321]: engine: Using configuration file /etc/weewx/weewx.conf
Oct 29 15:38:09 pi1 weewx[2321]: engine: Loading station type Vantage (weewx.drivers.vantage)
Oct 29 15:38:10 pi1 weewx[2321]: engine: StdConvert target unit is 0x10
Oct 29 15:38:10 pi1 weewx[2321]: engine: Archive will use data binding wx_binding
Oct 29 15:38:10 pi1 weewx[2321]: engine: Record generation will be attempted in 'hardware'
Oct 29 15:38:10 pi1 weewx[2321]: engine: Using archive interval of 300 seconds
Oct 29 15:38:10 pi1 weewx[2321]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Oct 29 15:38:10 pi1 weewx[2321]: engine: Starting backfill of daily summaries
Oct 29 15:38:10 pi1 weewx[2321]: engine: Daily summaries up to date.
Oct 29 15:38:10 pi1 weewx[2321]: restx: StationRegistry: Station will be registered.
Oct 29 15:38:10 pi1 weewx[2321]: restx: Wunderground-PWS: Data for station IARAGNLA3 will be posted
Oct 29 15:38:11 pi1 weewx[2321]: restx: PWSWeather: Data for station Wlarues22 will be posted
Oct 29 15:38:11 pi1 weewx[2321]: restx: AWEKAS: Data will be uploaded for user Wlarues
Oct 29 15:38:11 pi1 weewx[2321]: restx: WeatherCloud: service version is 0.10
Oct 29 15:38:11 pi1 weewx[2321]: restx: WeatherCloud: Data will be uploaded for id=aceee44b51a593bd
Oct 29 15:38:11 pi1 weewx[2321]: engine: Starting up weewx version 3.2.1
Oct 29 15:38:11 pi1 weewx[2321]: engine: Clock error is 0.28 seconds (positive is fast)
Oct 29 15:38:12 pi1 weewx[2321]: engine: Starting main packet loop.
Oct 29 15:41:07 pi1 weewx[2321]: cheetahgenerator: Generated 32 files for report StandardReport in 48.42 seconds
Oct 29 15:41:12 pi1 weewx[2321]: genimages: Generated 8 images for StandardReport in 4.56 seconds
Oct 29 15:41:31 pi1 weewx[2321]: reportengine: ftp'd 57 files in 17.76 seconds
Oct 29 15:41:48 pi1 weewx[2321]: cheetahgenerator: Generated 6 files for report Meteosabi in 16.84 seconds
Oct 29 15:41:50 pi1 weewx[2321]: genimages: Generated 6 images for Meteosabi in 2.28 seconds

--- Fin del código ---

Como se ve, he reiniciado varias veces para ver si se corregía pero no es así.
Se generan las páginas y se suben por FTP, pero en ningún momento se añaden registros a la base de datos, ni se suben a Wunderground, Awekas...
Este comportamiento nunca lo había visto y no sé a qué se puede deber, dado que si no hubiera comunicación entre consola y Raspi daría un error y no haría lo del FTP (o eso creo, vamos).

El error de:

--- Código: ---Oct 29 15:28:29 pi1 weewx[3566]: vantage: No <ACK> received from console"
--- Fin del código ---
Es habitual cuando arranco Weewx, y con volver a arrancarlo se soluciona. Pero el error de:

--- Código: ---Oct 29 15:15:40 pi1 weewx[3060]: vantage: LOOP #2; read error. Try #1
Oct 29 15:15:40 pi1 weewx[3060]:    ****  Expected to read 99 chars; got 0 instead
--- Fin del código ---
Tampoco lo había visto nunca.

¿Alguna sugerencia?

Gracias y saludos

Wlarues:
Se me ha olvidado decir, que la hora en la consola antes del inicio exitoso de la Raspi era las 09:30, y tras encenderla se ha cambiado automáticamente a las 15:15.

No sé si este dato es importante, pero lo indico por si acaso.

EDITO: acabo de ver que a pesar de que la actualización de datos ha sido a las 14:40, ha cogido una temperatura máxima "futurista" a las 15:21
http://www.climaynievepirineos.com/estaciones/larues/index.html
Saludos

Wlarues:
Con nuevos avances, he visto que la base de datos sí que se va actualizando (la fecha de modificación cambia), pero el último registro en la hoja "archive" es de las 16:40h

Sin embargo, en otras hojas hay cosas que cambian. Por ejemplo, en la hoja "archive_day_barometer" el registro de la presión mínima data de las 18:35h.

Sinceramente, no entiendo para nada este comportamiento, es bastante absurdo...

Saludos

Wlarues:
Acabo de hacer otra prueba, he añadido a la base de datos la lluvia que había perdido con mis problemas de señal de hace unos días (aún no lo había hecho  ::)). Con la nueva "actualización" la lluvia anual ha cambiado correctamente, pero sigue sin coger los nuevos datos actuales.

De hecho, con estas "actualizaciones" los máximos, mínimos y promedios cambian, pero los datos actuales no  ??? ???
Sigo sin entenderlo...

jantoni:
Este error, el de mítiples LOOP en el acceso a la consola, ya lo tratamos en el antiguo foro.

Por lo general, se debe a que hay varios Weewx funcionando, cosa lógica después de todos los problemas que has tenido de alimentación.

Para limpiarlo todo vamos a hacer, si es lo que yo me imagino:

Sal de weewx como es habitual

/etc/init.d/weewx stop

Luego


--- Código: ---root@raspberrypi:~# ps aux | grep weewx
root      2073  9.6 39.6 156332 92984 ?        Sl   sep29 4175:47 python /usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf
root     23561  0.0  0.7   3584  1752 pts/0    S+   19:58   0:00 grep weewx
root@raspberrypi:~#

--- Fin del código ---

Anota el pid de cada weewx que esté funcionando (en este caso el 2073) y, posteriormente

sudo kill -9 pid       (el pid lo sustituyes por el número de proceso que verás con el comando anterior)

esto mata a weewx.....si aparecen varios weewx funcionando, mata los procesos de todos ellos.

A continuación vete a /var/run y localiza si hay algún fichero weewx.pid, si lo hubiera borralo

sudo rm -f /var/run/weewx.pid

Reinicia la raspberry. Si es lo que me imagino, todo volverá a la normalidad.

Navegación

[0] Índice de Mensajes

[#] Página Siguiente

Ir a la versión completa