1
Davis Instruments / Re:Mantenimiento vue
« en: 11 de Julio del 2024, 18:29:39 pm »
Interesante,
Gracias.
Gracias.
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.
Paraste antes weewx ??
Sin comentarios......
pi@raspberrypi:~ $ sudo wee_device --info
Using configuration file /etc/weewx/weewx.conf
Using Vantage driver version 3.1.1 (weewx.drivers.vantage)
Querying...
Davis Vantage EEPROM settings:
CONSOLE TYPE: Vantage Vue
CONSOLE FIRMWARE:
Date: Mar 31 2016
Version: 4.20
CONSOLE SETTINGS:
Archive interval: 300 (seconds)
Altitude: 28 (meter)
Wind cup type: large
Rain bucket type: 0.2 mm
Rain year start: 1
Onboard time: 2022-02-16 21:44:47
CONSOLE DISPLAY UNITS:
Barometer: hPa
Temperature: degree_C
Rain: mm
Wind: km_per_hour
CONSOLE STATION INFO:
Latitude (onboard): +42.1°
Longitude (onboard): -8.8°
Use manual or auto DST? AUTO
DST setting: N/A
Use GMT offset or zone code? ZONE_CODE
Time zone code: 18
GMT offset: N/A
Temperature logging: LAST
Retransmit channel: OFF (0)
TRANSMITTERS:
Channel Receive Repeater Type
1 active none iss
2 active none (N/A)
3 active none (N/A)
4 active none (N/A)
5 active none (N/A)
6 active none (N/A)
7 active none (N/A)
8 active none (N/A)
RECEPTION STATS:
Total packets received: 30470
Total packets missed: 84
Number of resynchronizations: 0
Longest good stretch: 1404
Number of CRC errors: 17
BAROMETER CALIBRATION DATA:
Current barometer reading: 30.452 inHg
Altitude: 95 feet
Dew point: 55 F
Virtual temperature: 57 F
Humidity correction factor: 2.6
Correction ratio: 1.003
Correction constant: +0.000 inHg
Gain: 0.000
Offset: -18.000
OFFSETS:
Wind direction: +0 deg
Inside Temperature: +0.0 F
Inside Humidity: +0 %
Outside Temperature: +0.0 F
Outside Humidity: +0 %
pi@raspberrypi:~ $ sudo weewxd /etc/weewx/weewx.conf
REC: 2022-02-16 21:45:00 UTC (1645047900) altimeter: 1030.91612825, appTemp: 14.1228401778, barometer: 1031.22292212, cloudbase: 126.831758465, consBatteryVoltage: None, dateTime: 1645047900, dewpoint: 12.5483837775, ET: 0.0, forecastRule: 9, heatindex: 13.3333333333, highOutTemp: 56.1, humidex: 15.8832765958, inDewpoint: 14.2815266544, inHumidity: 82.0, inTemp: 17.3888888889, interval: 5, leafTemp1: -65.5555555556, leafTemp2: -67.7777777778, leafWet1: 8.0, leafWet2: 8.0, lowOutTemp: 55.9, maxSolarRad: None, outHumidity: 95.0, outTemp: 13.3333333333, pressure: 1027.69201197, rain: 0.0, rainRate: 0.0, rxCheckPercent: 99.9375, soilMoist1: 4.0, soilMoist2: 8.0, soilMoist3: 2.0, soilMoist4: 32.0, soilTemp1: -65.5555555556, soilTemp2: -67.7777777778, soilTemp3: -65.5555555556, soilTemp4: -67.7777777778, txBatteryStatus: None, usUnits: 16, windchill: 13.3333333333, windDir: None, windGust: 1.60934800001, windGustDir: 135.0, windrun: 0.0, windSpeed: 0.0
LOOP: 2022-02-16 21:45:48 UTC (1645047948) altimeter: 1030.94996988, appTemp: 14.1228401778, barometer: 1031.256786, cloudbase: 126.831758465, consBatteryVoltage: 4.82, dateTime: 1645047948, dayET: 0.0, dayRain: 0.140000000035, dewpoint: 12.5483837775, extraAlarm1: 0, extraAlarm2: 0, extraAlarm3: 0, extraAlarm4: 0, extraAlarm5: 0, extraAlarm6: 0, extraAlarm7: 0, extraAlarm8: 0, forecastIcon: 6, forecastRule: 9, heatindex: 13.3333333333, humidex: 15.8832765958, inDewpoint: 14.2815266544, inHumidity: 82.0, insideAlarm: 0, inTemp: 17.3888888889, leafWet4: 0.0, maxSolarRad: None, monthET: 0.0, monthRain: 2.12000000053, outHumidity: 95.0, outsideAlarm1: 0, outsideAlarm2: 0, outTemp: 13.3333333333, pressure: 1027.7257599, rain: None, rainAlarm: 0, rainRate: 0.0, soilLeafAlarm1: 0, soilLeafAlarm2: 0, soilLeafAlarm3: 0, soilLeafAlarm4: 0, stormRain: 2.10000000052, stormStart: 1644710400, sunrise: 1644996540, sunset: 1645034940, trendIcon: 0, txBatteryStatus: 0, usUnits: 16, windchill: 13.3333333333, windDir: None, windGust: 0.0, windGustDir: None, windSpeed: 0.0, windSpeed10: 1.60934800001, yearET: 0.0, yearRain: 2.12000000053
pi@raspberrypi:~ $ sudo wee_device --info
Using configuration file /etc/weewx/weewx.conf
Using Vantage driver version 3.1.1 (weewx.drivers.vantage)
Unable to wake up console... sleeping
Unable to wake up console... retrying
Unable to wake up console... sleeping
Unable to wake up console... retrying
Unable to wake up console... sleeping
Unable to wake up console... retrying
Traceback (most recent call last):
File "/usr/bin/wee_device", line 66, in <module>
main()
File "/usr/bin/wee_device", line 62, in main
device.configure(config_dict)
File "/usr/share/weewx/weewx/drivers/__init__.py", line 69, in configure
self.do_options(options, parser, config_dict, prompt)
File "/usr/share/weewx/weewx/drivers/vantage.py", line 1973, in do_options
station = Vantage(**config_dict[DRIVER_NAME])
File "/usr/share/weewx/weewx/drivers/vantage.py", line 489, in __init__
syslog.syslog(syslog.LOG_DEBUG, "vantage: Hardware name: %s" % self.hardware_name)
File "/usr/share/weewx/weewx/drivers/vantage.py", line 1256, in hardware_name
raise weewx.UnsupportedFeature("Unknown hardware type %d" % self.hardware_type)
weewx.UnsupportedFeature: Unknown hardware type 10
pi@raspberrypi:~ $
pi@raspberrypi:/var/lib/weewx $ ls -l
total 54624
-rw-r--r-- 1 root root 55934976 feb 16 19:00 weewx.sdb
pi@raspberrypi:/var/www/html $ ls -l
total 548
drwxr-xr-x 2 root root 4096 dic 3 2019 backgrounds
-rw-r--r-- 1 root root 6326 feb 16 19:05 daybarometer.png
-rw-r--r-- 1 root root 4413 feb 16 19:05 dayhumidity.png
-rw-r--r-- 1 root root 4946 feb 16 19:05 dayinside.png
-rw-r--r-- 1 root root 2854 feb 16 19:05 daypond.png
-rw-r--r-- 1 root root 2845 feb 16 19:05 dayradiation.png
-rw-r--r-- 1 root root 4523 feb 16 19:05 dayrain.png
-rw-r--r-- 1 root root 5174 feb 16 19:05 dayrx.png
-rw-r--r-- 1 root root 5682 feb 16 19:05 daytempchill.png
-rw-r--r-- 1 root root 7392 feb 16 19:05 daytempdew.png
-rw-r--r-- 1 root root 2740 feb 16 19:05 dayuv.png
-rw-r--r-- 1 root root 4676 feb 16 19:05 daywinddir.png
-rw-r--r-- 1 root root 10570 feb 16 19:05 daywind.png
-rw-r--r-- 1 root root 7102 feb 16 19:05 daywindvec.png
-rw-r--r-- 1 root root 9883 dic 9 2019 deunvistazo.png
-rw-r--r-- 1 root root 16958 feb 16 18:45 favicon.ico
-rw-r--r-- 1 root root 16354 feb 16 19:05 index.html
-rw-r--r-- 1 root root 16036 sep 7 12:02 index.html.save
-rw-r--r-- 1 root root 1682 dic 2 2019 index_orig.html
-rw-r--r-- 1 root root 512 feb 16 00:01 meteoclimatic1.html
-rw-r--r-- 1 root root 513 feb 16 19:05 meteoclimatic.html
-rw-r--r-- 1 root root 339 mar 9 2020 meteoclimatic.php
-rw-r--r-- 1 root root 18976 dic 2 2019 meteonigran.jpg
-rw-r--r-- 1 root root 564 feb 16 18:45 mobile.css
-rw-r--r-- 1 root root 2512 feb 16 19:05 mobile.html
-rw-r--r-- 1 root root 5468 feb 16 18:00 monthbarometer.png
-rw-r--r-- 1 root root 9995 feb 16 19:05 month.html
-rw-r--r-- 1 root root 5435 feb 16 18:00 monthinside.png
-rw-r--r-- 1 root root 2931 feb 16 19:05 monthp.html
-rw-r--r-- 1 root root 2605 feb 16 18:00 monthpond.png
-rw-r--r-- 1 root root 2597 feb 16 18:00 monthradiation.png
-rw-r--r-- 1 root root 3096 feb 16 18:00 monthrain.png
-rw-r--r-- 1 root root 4940 feb 16 18:00 monthrx.png
-rw-r--r-- 1 root root 6129 feb 16 18:00 monthtempchill.png
-rw-r--r-- 1 root root 8462 feb 16 18:00 monthtempdew.png
-rw-r--r-- 1 root root 2492 feb 16 18:00 monthuv.png
-rw-r--r-- 1 root root 5702 feb 16 18:00 monthwinddir.png
-rw-r--r-- 1 root root 7571 feb 16 18:00 monthwind.png
-rw-r--r-- 1 root root 5228 feb 16 18:00 monthwindvec.png
drwxr-xr-x 2 root root 4096 feb 16 19:05 NOAA
drwxr-xr-x 2 root root 4096 feb 16 19:05 RSS
drwxr-xr-x 3 root root 4096 feb 16 19:05 smartphone
-rw-r--r-- 1 root root 7099 feb 16 19:00 weekbarometer.png
-rw-r--r-- 1 root root 10057 feb 16 19:05 week.html
-rw-r--r-- 1 root root 7414 feb 16 19:00 weekhumidity.png
-rw-r--r-- 1 root root 7225 feb 16 19:00 weekinside.png
-rw-r--r-- 1 root root 2932 feb 16 19:05 weekp.html
-rw-r--r-- 1 root root 3300 feb 16 19:00 weekpond.png
-rw-r--r-- 1 root root 3289 feb 16 19:00 weekradiation.png
-rw-r--r-- 1 root root 3946 feb 16 19:00 weekrain.png
-rw-r--r-- 1 root root 6420 feb 16 19:00 weekrx.png
-rw-r--r-- 1 root root 6784 feb 16 19:00 weektempchill.png
-rw-r--r-- 1 root root 9159 feb 16 19:00 weektempdew.png
-rw-r--r-- 1 root root 3176 feb 16 19:00 weekuv.png
-rw-r--r-- 1 root root 6494 feb 16 19:00 weekwinddir.png
-rw-r--r-- 1 root root 9801 feb 16 19:00 weekwind.png
-rw-r--r-- 1 root root 7720 feb 16 19:00 weekwindvec.png
-rw-r--r-- 1 root root 3840 feb 16 18:45 weewx.css
-rw-r--r-- 1 root root 5741 feb 16 00:00 yearbarometer.png
-rw-r--r-- 1 root root 8027 feb 16 00:00 yearhilow.png
-rw-r--r-- 1 root root 7092 feb 16 19:05 year.html
-rw-r--r-- 1 root root 5539 feb 16 00:00 yearinside.png
-rw-r--r-- 1 root root 2289 feb 16 19:05 yearp.html
-rw-r--r-- 1 root root 2489 feb 16 00:00 yearpond.png
-rw-r--r-- 1 root root 2481 feb 16 00:00 yearradiation.png
-rw-r--r-- 1 root root 3788 feb 16 00:00 yearrain.png
-rw-r--r-- 1 root root 4222 feb 16 00:00 yearrx.png
-rw-r--r-- 1 root root 6528 feb 16 00:00 yeartempchill.png
-rw-r--r-- 1 root root 9044 feb 16 00:00 yeartempdew.png
-rw-r--r-- 1 root root 2375 feb 16 00:00 yearuv.png
-rw-r--r-- 1 root root 7118 feb 16 00:00 yearwinddir.png
-rw-r--r-- 1 root root 7876 feb 16 00:00 yearwind.png
-rw-r--r-- 1 root root 7588 feb 16 00:00 yearwindvec.png
Pues si es el final del log dejó de actualizar a las 1:20 UTC de hoy que es la fecha que tienen los archivos con ls -l
Clock error is 72671.49 seconds son 20 horas antes por lo que cuadra desde las 21:25 a las 1:20. Weewx comprueba la hora de la Davis y si está más de X segundos o minutos creo adelantada o retrasada su hora le pone la hora del sistema.
No sé si el problema es que en un reinicio anterior de la raspi no tuvo conexión a internet y se puso en marcha con una hora atrasada, suele suceder ya que estos dispositivos no tienen pila para guardar la hora como un PC la puede tener. Actualizó la consola de la Davis con esa hora atrasada y posiblemente haya lío de horas en el datalogger de la Davis y ya no actualice por eso. Se han visto muchos casos de esos.
Según cuentas que estás con cambio de router y tal se ha trastocado todo al no tener conexión a internet la raspi y no estar actualizado weewx.
Mira a ver qué hora tiene la BBDD de weewx en el sistema.Código: [Seleccionar]pi@raspberrypi:/var/lib/weewx $ ls -l
total 54228
-rw-r--r-- 1 root root 55525376 feb 10 01:03 weewx.sdb
Quizás te va a tocar borrar datalogger, se han quedado fechas mal en él, pero podrías perder los datos desde las 1:15. Prueba a ejecutar sudo wee_device --dump para que vuelque datalogger en la BBDD y después sudo wee_device --clear-memory para borrar datalogger, todo con weewx detenido y haciendo copia de la BBDD y ponlo en marcha otra vez a ver si se ha solventado el problema.Código: [Seleccionar]pi@raspberrypi:~ $ sudo wee_device --clear-memory
Using configuration file /etc/weewx/weewx.conf
Using Vantage driver version 3.1.1 (weewx.drivers.vantage)
Unable to wake up console... sleeping
Unable to wake up console... retrying
Unable to wake up console... sleeping
Unable to wake up console... retrying
Traceback (most recent call last):
File "/usr/bin/wee_device", line 66, in <module>
main()
File "/usr/bin/wee_device", line 62, in main
device.configure(config_dict)
File "/usr/share/weewx/weewx/drivers/__init__.py", line 69, in configure
self.do_options(options, parser, config_dict, prompt)
File "/usr/share/weewx/weewx/drivers/vantage.py", line 1973, in do_options
station = Vantage(**config_dict[DRIVER_NAME])
File "/usr/share/weewx/weewx/drivers/vantage.py", line 488, in __init__
self._setup()
File "/usr/share/weewx/weewx/drivers/vantage.py", line 1292, in _setup
self.rain_year_start = self._getEEPROM_value(0x2C)[0]
File "/usr/share/weewx/weewx/drivers/vantage.py", line 1376, in _getEEPROM_value
raise weewx.RetriesExceeded("While getting EEPROM data value at address 0x%X" % offset)
weewx.RetriesExceeded: While getting EEPROM data value at address 0x2C
Cuidado con ejecutar la raspi sin internet y reiniciarla sin ella. Te puedes encontrar con estas desagradables sorpresas.
Hola Ruben
Más que la fecha que pone en el interior de los archivos, que importa, es la que tienen los archivos en el sistema la que más importa, para ver si los está actualizando o no weewx.Código: [Seleccionar]pi@raspberrypi:/var/www/html $ ls -l
Esa fecha que pones...además de errónea es futura no ?? 03/09/22 01:00:00 todavía no hemos llegado a septiembre
total 456
drwxr-xr-x 2 root root 4096 dic 3 2019 backgrounds
-rw-r--r-- 1 root root 3790 feb 10 01:20 daybarometer.png
-rw-r--r-- 1 root root 4120 feb 10 01:20 dayhumidity.png
-rw-r--r-- 1 root root 3810 feb 10 01:20 dayinside.png
-rw-r--r-- 1 root root 2740 feb 10 01:20 daypond.png
-rw-r--r-- 1 root root 2733 feb 10 01:20 dayradiation.png
-rw-r--r-- 1 root root 2855 feb 10 01:20 dayrain.png
-rw-r--r-- 1 root root 4056 feb 10 01:20 dayrx.png
-rw-r--r-- 1 root root 4346 feb 10 01:20 daytempchill.png
-rw-r--r-- 1 root root 4144 feb 10 01:20 daytempdew.png
-rw-r--r-- 1 root root 2630 feb 10 01:20 dayuv.png
-rw-r--r-- 1 root root 3388 feb 10 01:20 daywinddir.png
-rw-r--r-- 1 root root 3607 feb 10 01:20 daywind.png
-rw-r--r-- 1 root root 4279 feb 10 01:20 daywindvec.png
-rw-r--r-- 1 root root 9883 dic 9 2019 deunvistazo.png
-rw-r--r-- 1 root root 16958 feb 10 01:05 favicon.ico
-rw-r--r-- 1 root root 16747 feb 10 01:20 index.html
-rw-r--r-- 1 root root 16036 sep 7 12:02 index.html.save
-rw-r--r-- 1 root root 1682 dic 2 2019 index_orig.html
-rw-r--r-- 1 root root 2760 feb 10 01:20 indexp.html
-rw-r--r-- 1 root root 510 feb 10 00:01 meteoclimatic1.html
-rw-r--r-- 1 root root 510 feb 10 01:20 meteoclimatic.html
-rw-r--r-- 1 root root 339 mar 9 2020 meteoclimatic.php
-rw-r--r-- 1 root root 18976 dic 2 2019 meteonigran.jpg
-rw-r--r-- 1 root root 564 feb 10 01:05 mobile.css
-rw-r--r-- 1 root root 2510 feb 10 01:20 mobile.html
-rw-r--r-- 1 root root 3227 feb 10 01:20 monthbarometer.png
-rw-r--r-- 1 root root 9990 feb 10 01:20 month.html
-rw-r--r-- 1 root root 3452 feb 10 01:20 monthinside.png
-rw-r--r-- 1 root root 2931 feb 10 01:20 monthp.html
-rw-r--r-- 1 root root 2525 feb 10 01:20 monthpond.png
-rw-r--r-- 1 root root 2518 feb 10 01:20 monthradiation.png
-rw-r--r-- 1 root root 2597 feb 10 01:20 monthrain.png
-rw-r--r-- 1 root root 3029 feb 10 01:20 monthrx.png
-rw-r--r-- 1 root root 3209 feb 10 01:20 monthtempchill.png
-rw-r--r-- 1 root root 2995 feb 10 01:20 monthtempdew.png
-rw-r--r-- 1 root root 2411 feb 10 01:20 monthuv.png
-rw-r--r-- 1 root root 2828 feb 10 01:20 monthwinddir.png
-rw-r--r-- 1 root root 2847 feb 10 01:20 monthwind.png
-rw-r--r-- 1 root root 3306 feb 10 01:20 monthwindvec.png
drwxr-xr-x 2 root root 4096 feb 10 01:20 NOAA
Y weewx lo pones recién reiniciado. Mira el log con weewx ya puesto en marcha un rato a ver si suelta algún error al generar los archivos.
pi@raspberrypi:/var/log $ tail -f weewx.log
Feb 10 01:03:15 raspberrypi weewx[805]: engine: Starting main packet loop.
Feb 10 01:05:22 raspberrypi weewx[805]: cheetahgenerator: Generated 20 files for report StandardReport in 7.41 seconds
Feb 10 01:05:36 raspberrypi weewx[805]: imagegenerator: Generated 51 images for StandardReport in 14.08 seconds
Feb 10 01:05:36 raspberrypi weewx[805]: copygenerator: copied 9 files to /var/www/html
Feb 10 01:10:17 raspberrypi weewx[805]: cheetahgenerator: Generated 20 files for report StandardReport in 2.61 seconds
Feb 10 01:10:31 raspberrypi weewx[805]: imagegenerator: Generated 51 images for StandardReport in 13.94 seconds
Feb 10 01:10:31 raspberrypi weewx[805]: copygenerator: copied 0 files to /var/www/html
Feb 10 01:15:17 raspberrypi weewx[805]: cheetahgenerator: Generated 20 files for report StandardReport in 2.62 seconds
Feb 10 01:15:31 raspberrypi weewx[805]: imagegenerator: Generated 51 images for StandardReport in 14.07 seconds
Feb 10 01:15:31 raspberrypi weewx[805]: copygenerator: copied 0 files to /var/www/html
pi@raspberrypi:/var/log $ sudo /etc/init.d/weewx restart
[ ok ] Restarting weewx (via systemctl): weewx.service^[[A.
pi@raspberrypi:/var/log $ tail -f weewx.log
Feb 9 21:25:30 raspberrypi weewx[474]: restx: PWSweather: Posting not enabled.
Feb 9 21:25:30 raspberrypi weewx[474]: restx: CWOP: Posting not enabled.
Feb 9 21:25:30 raspberrypi weewx[474]: restx: WOW: Posting not enabled.
Feb 9 21:25:30 raspberrypi weewx[474]: restx: AWEKAS: Data will be uploaded for user x
Feb 9 21:25:30 raspberrypi weewx[474]: restx: WeatherCloud: service version is 0.11
Feb 9 21:25:30 raspberrypi weewx[474]: restx: WeatherCloud: Data will be uploaded for id=x
Feb 9 21:25:30 raspberrypi weewx[474]: engine: Starting up weewx version 3.9.2
Feb 9 21:25:30 raspberrypi weewx[474]: engine: Clock error is 72671.49 seconds (positive is fast)
Feb 9 21:25:30 raspberrypi weewx[474]: vantage: Clock set to 2022-02-09 21:25:31 UTC (1644441931)
Feb 9 21:25:32 raspberrypi weewx[474]: engine: Starting main packet loop.
^C
pi@raspberrypi:/var/log $ date
mié feb 9 21:26:16 UTC 2022
pi@raspberrypi:/var/log $ date
jue feb 10 17:08:49 UTC 2022
pi@raspberrypi:/var/log $ sudo /etc/init.d/weewx stop
[ ok ] Stopping weewx (via systemctl): weewx.service.
pi@raspberrypi:/var/log $ sudo /etc/init.d/weewx start
[ ok ] Starting weewx (via systemctl): weewx.service.
pi@raspberrypi:/var/log $ tail -f weewx.log
Feb 10 17:10:36 raspberrypi weewx[2078]: restx: Wunderground-PWS: Data for station INIGRN7 will be posted
Feb 10 17:10:36 raspberrypi weewx[2078]: restx: PWSweather: Posting not enabled.
Feb 10 17:10:36 raspberrypi weewx[2078]: restx: CWOP: Posting not enabled.
Feb 10 17:10:36 raspberrypi weewx[2078]: restx: WOW: Posting not enabled.
Feb 10 17:10:36 raspberrypi weewx[2078]: restx: AWEKAS: Data will be uploaded for user x
Feb 10 17:10:36 raspberrypi weewx[2078]: restx: WeatherCloud: service version is 0.11
Feb 10 17:10:36 raspberrypi weewx[2078]: restx: WeatherCloud: Data will be uploaded for id=x
Feb 10 17:10:36 raspberrypi weewx[2078]: engine: Starting up weewx version 3.9.2
Feb 10 17:10:36 raspberrypi weewx[2078]: engine: Clock error is -0.38 seconds (positive is fast)
Feb 10 17:10:36 raspberrypi weewx[2078]: engine: Starting main packet loop.
y ahí se queda sin hacer nada, pi@raspberrypi:/var/log $ sudo raspi-config
Current default time zone: 'Etc/UTC'
Local time is now: Thu Feb 10 17:13:48 UTC 2022.
Universal Time is now: Thu Feb 10 17:13:48 UTC 2022.