Software > WeeWX

No actualiza plantilla

<< < (2/3) > >>

jmviper:
ls -l /var/lib/weewx/weewx.sdb es para listar la base de datos y comprobar cuando es la última vez que se ha escrito en ella.

Si está con fecha del 15 de noviembre es porque weewx no está escribiendo en ella por algún motivo.

Cuando copia a la base de datos el log de weewx pone algo así:

Nov 18 20:12:00 orangepipc weewx[2618]: manager: Added record 2019-11-18 20:12:00 CET (1574104320) to database 'weewx.sdb'
Nov 18 20:12:00 orangepipc weewx[2618]: manager: Added record 2019-11-18 20:12:00 CET (1574104320) to daily summary in 'weewx.sdb'

Si tienes la grabación de datos en la BBDD cada cinco minutos habría que mirar en el log si hay algún mensaje de error en esa hora (las 20:15, 20:20, 20:25... etc etc)

Se puede mirar en el log (no sé si lo tienes separado para weewx o es el de syslog o log del sistema) o en el comando que puse anteriormente sudo weewxd /etc/weewx/weewx.conf cuando sean esas grabaciones en la base de datos aparecerá en vez de LOOP: la palabra REC: que podría dar alguna clase de error.

Has mirado que Raspi y consola de la estación tengan la misma fecha y hora ?? Puedes probar a reiniciar weewx y con sudo tail -f /var/log/syslog ver lo que ocurre al ponerse en marcha. Después de reiniciarlo con sudo service weewx restart también puedes ir mirando su arranque con weewx service status (sudo delante no hace falta para ver el estado)

Oscar-EA5IEL:
Bueno, como no tenia bastante ahora también me falla el dhcpcd, me da FAILED to start dhcpcd on all interfaces y no puedo conectarme. Mañana lo seguiré intentando.

Oscar-EA5IEL:
Esto lo he sacado del weewx.log ha sido lo único que me ha llamado la atención, el resto no decía mucho, del registro en la base de datos no ponía ninguno excepto este:

Nov 18 23:30:14 raspberrypi weewx[1038]: vantage: Getting archive packets since 2019-11-15 07:30:00 CET (1573799400)
Nov 18 23:30:14 raspberrypi weewx[1038]: vantage: Gentle wake up of console successful
Nov 18 23:30:15 raspberrypi weewx[1038]: vantage: Retrieving 211 page(s); starting index= 3
Nov 18 23:30:15 raspberrypi weewx[1038]: vantage: DMPAFT complete: page timestamp 2019-11-15 02:55:00 CET (1573782900) less than final timestamp 2019-11-15 07:30:00 CET (1573799400)


jmviper:
Pues parece ser que algún registro está corrupto en el datalogger.

En la documentación de weewx están los pasos a seguir:

http://weewx.com/docs/usersguide.htm#html_generated_but_not_updated

concretamente en la sección Corrupt station memory. Las soluciones que da es quitar baterías a la consola y esperar uno o dos minutos (cuidado con qué hora regresa al conectarla de nuevo) y la otra borrar datalogger con sudo wee_device --clear-memory

Advierte que borrando datalogger, como es normal perderás los datos que hayan en él y ya no los podrás recuperar por lo que da una alternativa de volcar los registros a la base de datos aunque podrán haber registros duplicados con sudo wee_device --dump

http://weewx.com/docs/hardware.htm#vantage_dumping_the_logger_memory

Si hicieras esto último lo mejor es hacer antes copia de la base de datos por si saliera algo mal.

Oscar-EA5IEL:
Bueno JmViper, no tuve más remedio que borrar el datalogger y empezar desde el principio. No obstante conservo la sd con todos los datos pero inoperativa de momento.
Despues de instalar todo de nuevo en una sd nueva he conseguido hacer funcionar a weewx pero no consigo mandar los datos a meteoclimatic.
Cuando ejecuto php /root/meteoclimatic/meteoclimatic_http.php me dice lo siguiente; creo que tengo un problema en el formato de fechas.
Los ++++ son mis datos que los he quitado.

DATA2
ESPVA++++++++
+++++++++
$current.dateTime.format("%d-%m-%Y %H:%M")
$current.outTemp.formatted
$current.windSpeed.formatted
$current.windDir.formatted
$current.barometer.formatted
$current.outHumidity.formatted
$current.radiation.formatted
$current.UV.formatted
$day.outTemp.max.formatted
$day.outTemp.min.formatted
$day.outHumidity.max.formatted
$day.outHumidity.min.formatted
$day.barometer.max.formatted
$day.barometer.min.formatted
$day.windGust.max.formatted
$day.radiation.max.formatted
$day.UV.max.formatted
$day.rain.sum.formatted

$month.outTemp.max.formatted
$month.outTemp.min.formatted
$month.outHumidity.max.formatted
$month.outHumidity.min.formatted
$month.barometer.max.formatted
$month.barometer.min.formatted
$month.windGust.max.formatted
$month.radiation.max.formatted
$month.UV.max.formatted
$month.rain.sum.formatted
$year.outTemp.max.formatted
$year.outTemp.min.formatted
$year.outHumidity.max.formatted
$year.outHumidity.min.formatted
$year.barometer.max.formatted
$year.barometer.min.formatted
$year.windGust.max.formatted
$year.radiation.max.formatted
$year.UV.max.formatted
$year.rain.sum.formatted


$current.dateTime.format("%d-%m-%Y %H:%M")
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 51
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 55
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 56
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 57
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 58
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 59
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 60
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 61
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 69
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 70
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 71
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 72
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 73
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 74
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 75
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 77
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 78
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 79
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 80
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 81
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 82
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 83
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 84
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 85
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 86
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 87
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 88
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 89
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 90
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 91
PHP Warning:  A non-numeric value encountered in /root/meteoclimatic/meteoclimatic_http.php on line 92

GET /?
T=;;;;;;&H=;;;;;;&B=;;;;;;&W=;;;;;&P=;;&S=;;;&V=;;;&U=3a;ESPVA0300000003009E;79eb4b9fd9 HTTP/1.0
HOST: pool.meteoclimatic.com
User-Agent: Meteoclimatic_HTTP/1.0 (Davis Vantage Pro2)

-- 22/11/2019 22:17:14 --
HTTP/1.1 202 Accepted
Date: Fri, 22 Nov 2019 22:17:09 GMT
Server: Apache/2.4.10 (Debian)
X-Error: 202 Accepted
X-Errors: 1 < HUM < 100;1 < DHHM < 100;1 < DLHM < 100;1 < MHHM < 100;1 < MLHM < 100;1 < YHHM < 100;1 < YLHM < 100;950 < BAR < 1070;950 < DHBR < 1070;950 < DLBR < 1070;950 < MHBR < 1070;950 < MLBR < 1070;950 < YHBR < 1070;950 < YLBR < 1070
X-DigestKey:
Content-Length: 302
Content-Type: text/plain;charset=UTF-8

*ERR=1 < HUM < 100;1 < DHHM < 100;1 < DLHM < 100;1 < MHHM < 100;1 < MLHM < 100;1 < YHHM < 100;1 < YLHM < 100;950 < BAR < 1070;950 < DHBR < 1070;950 < DLBR < 1070;950 < MHBR < 1070;950 < MLBR < 1070;950 < YHBR < 1070;950 < YLBR < 1070
Ver: 3a - ID: ESPVA0300000003009E
Query Length: 87
202: Accepted


root@raspberrypi:~#

Navegación

[0] Índice de Mensajes

[#] Página Siguiente

[*] Página Anterior

Ir a la versión completa