Autor Tema: Novato con problemas no funciona Weewx  (Leído 11503 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado jmviper

  • Investigación
  • Hero Member
  • ******
  • Mensajes: 4.403
  • "Vortex Complex"
    • Ver Perfil
    • www.meteoarchena.es
  • Estación: Archena - ESMUR3000000030600B
Re:Novato con problemas no funciona Weewx
« Respuesta #15 en: 18 de Abril del 2020, 15:19:23 pm »
Y viendo el log que has puesto de weewx efectivamente no está grabando nada en la base de datos.

Puede que la consola no esté en hora o haya tenido registros desordenados por un cambio de fecha o de la consola o de la raspi.

Prueba a volcar el datalogger a la base de datos haciendo antes copia de seguridad de ésta con sudo wee_device --dump deteniendo weewx antes.

Después ponlo en marcha a ver que tal va.


Archena, Valle de Ricote (Murcia). 120 msnm. 19.622 hab.
Davis Vantage Pro2 Plus

www.meteoarchena.es

Desconectado Aralar

  • Newbie
  • *
  • Mensajes: 31
    • Ver Perfil
  • Estación: Abaltzisketa
Re:Novato con problemas no funciona Weewx
« Respuesta #16 en: 19 de Abril del 2020, 12:46:45 pm »
Como se quedó la consola sin electricidad tuve que actualizar la fecha y la hora.
Puede que sea por eso.
Así que conviene una copia de seguridad de los datos y borrar el datalogger?
O como tengo wview en el otro raspberry los datos estarán en este?

Desconectado jmviper

  • Investigación
  • Hero Member
  • ******
  • Mensajes: 4.403
  • "Vortex Complex"
    • Ver Perfil
    • www.meteoarchena.es
  • Estación: Archena - ESMUR3000000030600B
Re:Novato con problemas no funciona Weewx
« Respuesta #17 en: 19 de Abril del 2020, 13:45:23 pm »
Como he dicho anteriormente haz copia de base datos y vuelca el datalogger en la base de datos de weewx y ponlo en marcha y comprueba cómo va.

A todo esto... cuál es tu estación en meteoclimatic ?? Por el nombre de tu localidad hay una en meteoclimatic https://www.meteoclimatic.net/perfil/ESEUS2000000020269A

Lleva sin actualizar desde 2015... espero que sea para volver a enviar datos a meteoclimatic y en caso de que no sea esa estación de que pienses enviarlos.


Archena, Valle de Ricote (Murcia). 120 msnm. 19.622 hab.
Davis Vantage Pro2 Plus

www.meteoarchena.es

Desconectado Aralar

  • Newbie
  • *
  • Mensajes: 31
    • Ver Perfil
  • Estación: Abaltzisketa
Re:Novato con problemas no funciona Weewx
« Respuesta #18 en: 19 de Abril del 2020, 14:00:43 pm »
Tienes razón.
Es esa estación. Antes lo tenía con un viejo Pc y cuando puse el raspberry no supe como ponerlo en marcha para enviarlos a meteoclimatic. Espero ponerlo ahora.

He volcado los datos pero al meterme para ver los datos desde el navegador sigue igual.


Desconectado jmviper

  • Investigación
  • Hero Member
  • ******
  • Mensajes: 4.403
  • "Vortex Complex"
    • Ver Perfil
    • www.meteoarchena.es
  • Estación: Archena - ESMUR3000000030600B
Re:Novato con problemas no funciona Weewx
« Respuesta #19 en: 19 de Abril del 2020, 14:03:04 pm »
Ok

Reinicia weewx y seguidamente adjunta las últimas líneas de su log desde que se ha puesto en marcha a ver lo que dice.


Archena, Valle de Ricote (Murcia). 120 msnm. 19.622 hab.
Davis Vantage Pro2 Plus

www.meteoarchena.es

Desconectado Aralar

  • Newbie
  • *
  • Mensajes: 31
    • Ver Perfil
  • Estación: Abaltzisketa
Re:Novato con problemas no funciona Weewx
« Respuesta #20 en: 19 de Abril del 2020, 14:10:33 pm »
Lo siento pero como miro el log?

Y tampoco se como mirar la base de datos.

Desconectado jmviper

  • Investigación
  • Hero Member
  • ******
  • Mensajes: 4.403
  • "Vortex Complex"
    • Ver Perfil
    • www.meteoarchena.es
  • Estación: Archena - ESMUR3000000030600B
Re:Novato con problemas no funciona Weewx
« Respuesta #21 en: 19 de Abril del 2020, 15:12:49 pm »
Lo de mirar el log ya lo has hecho antes en este mismo hilo:

https://forum.meteoclimatic.net/index.php/topic,2759.msg21806.html#msg21806

sudo tail -f /var/log/weewx.log

puedes controlar el total de últimas líneas del log con sudo tail -n 25 /var/log/weewx.log cambiando el número 25 por el que quieras. Sobre todo lo mejor es ver qué dice el programa en su inicio para ver si da alguna clase de error o advertencia y por eso lo de reiniciarlo y seguidamente poner su log.

Si en el log no ponen líneas del estilo:

Apr 19 15:00:01 localhost weewx[27844]: manager: Added record 2020-04-19 15:00:00 CEST (1587301200) to database 'weewx.sdb'
Apr 19 15:00:02 localhost weewx[27844]: manager: Added record 2020-04-19 15:00:00 CEST (1587301200) to daily summary in 'weewx.sdb'


es que weewx no está grabando en la base de datos. Como ya dije también en una anterior respuesta para ver la última escritura de weewx en la base de datos ejecuta ls -l /var/lib/weewx y saldrá su fecha de última modificación. Seguramente muestre la hora en la que le volcaste el datalogger si no está grabando nuevos registros.




Archena, Valle de Ricote (Murcia). 120 msnm. 19.622 hab.
Davis Vantage Pro2 Plus

www.meteoarchena.es

Desconectado jantoni

  • Hero Member
  • *****
  • Mensajes: 3.754
    • Ver Perfil
  • Estación: ESMAD2800000028522A
Re:Novato con problemas no funciona Weewx
« Respuesta #22 en: 19 de Abril del 2020, 18:04:06 pm »
Bueno, creo que tenemos que recapitular, porque me da la sensación que tú no sabes lo que te estamos diciendo, y nosotros no acabamos de entender lo que te pasa.

Como ya te hemos dicho, el log es la fuente de sabiduría y el que nos va a decir lo que pasa por las tripas de Weewx.

Así que, vamos por partes.

Lo primero es tener un log en condiciones. La instalación de Weewx pone el log con todo el sistema. Y eso no nos interesa.

Vamos a parar primero Weewx.

Código: [Seleccionar]
sudo /etc/init.d/weewx stop
Ahora vamos a generar un log específico para Weewx

Código: [Seleccionar]

sudo echo ":programname,startswith,\"weewx\"" /var/log/weewx.log | sudo tee -a /etc/rsyslog.d/99-weewx.conf > /dev/null

sudo echo ":programname,startswith,\"weewx\"" \~\ | sudo tee -a /etc/rsyslog.d/99-weewx.conf > /dev/null

echo -e "/var/log/weewx.log {\n  $WEELOGPER\n  missingok\n  rotate $WEELOGMAX\n  compress\n  delaycompress\n  notifempty\n  sharedscripts\n  postrotate\n  /etc/init.d/rsyslog stop\n  /etc/init.d/rsyslog start\n  endscript\n}" | sudo tee -a /etc/logrotate.d/weewx > /dev/null

service rsyslog restart

Ya tenemos un log preparado solo para Weewx. Este log estará en el fichero /var/log/weewx.log

Ahora, antes de hacer nada más, vamos a comprobar que Weewx se comunica con la consola de la Davis.

Código: [Seleccionar]
sudo weewxd /etc/weewx/weewx.con
Veremos como pasan los paquetes de datos:

Citar
jantoni@orangepipc:~$ sudo weewxd /etc/weewx/weewx.conf
LOOP:   2020-04-19 15:39:41 UTC (1587310781) appTemp: 65.1722540623, barometer: 29.765, cloudbase: 6433.98862952, consBatteryVoltage: 4.33, dateTime: 1587310781, dayET: 0.0, dayRain: 0.19685039375, dewpoint: 48.0148500301, extraAlarm1: 0, extraAlarm2: 0, extraAlarm3: 0, extraAlarm4: 0, extraAlarm5: 0, extraAlarm6: 0, extraAlarm7: 0, extraAlarm8: 0, forecastIcon: 7, forecastRule: 172, heatindex: 67.3, humidex: 68.7142229048, inDewpoint: 56.3623033737, inHumidity: 56.0, insideAlarm: 0, inTemp: 73.0, leafWet1: 0.0, leafWet2: 0.0, leafWet3: 0.0, leafWet4: 0.0, maxSolarRad: 566.379986785, monthET: 0.0, monthRain: 1.5275590555, outHumidity: 50.0, outsideAlarm1: 0, outsideAlarm2: 0, outTemp: 67.3, rain: None, rainAlarm: 0, rainRate: 0.0, soilLeafAlarm1: 0, soilLeafAlarm2: 0, soilLeafAlarm3: 0, soilLeafAlarm4: 0, soilMoist1: 0.0, soilMoist2: 0.0, soilMoist3: 0.0, soilMoist4: 0.0, stormRain: 0.5826771655, stormStart: 1587168000, sunrise: 1587277740, sunset: 1587326220, trendIcon: -20, txBatteryStatus: 1, usUnits: 1, windchill: 67.3, windDir: 348.0, windGust: 3.0, windGustDir: 348.0, windSpeed: 3.0, windSpeed10: 2.0, yearET: 0.0, yearRain: 2.76377952825
LOOP:   2020-04-19 15:39:41 UTC (1587310781) appTemp: 65.1722540623, barometer: 29.765, cloudbase: 6433.98862952, consBatteryVoltage: 4.33, dateTime: 1587310781, dayET: 0.0, dayRain: 0.19685039375, dewpoint: 48.0148500301, extraAlarm1: 0, extraAlarm2: 0, extraAlarm3: 0, extraAlarm4: 0, extraAlarm5: 0, extraAlarm6: 0, extraAlarm7: 0, extraAlarm8: 0, forecastIcon: 7, forecastRule: 172, heatindex: 67.3, humidex: 68.7142229048, inDewpoint: 56.3623033737, inHumidity: 56.0, insideAlarm: 0, inTemp: 73.0, leafWet1: 0.0, leafWet2: 0.0, leafWet3: 0.0, leafWet4: 0.0, maxSolarRad: 566.379986785, monthET: 0.0, monthRain: 1.5275590555, outHumidity: 50.0, outsideAlarm1: 0, outsideAlarm2: 0, outTemp: 67.3, rain: 0.0, rainAlarm: 0, rainRate: 0.0, soilLeafAlarm1: 0, soilLeafAlarm2: 0, soilLeafAlarm3: 0, soilLeafAlarm4: 0, soilMoist1: 0.0, soilMoist2: 0.0, soilMoist3: 0.0, soilMoist4: 0.0, stormRain: 0.5826771655, stormStart: 1587168000, sunrise: 1587277740, sunset: 1587326220, trendIcon: -20, txBatteryStatus: 1, usUnits: 1, windchill: 67.3, windDir: 348.0, windGust: 3.0, windGustDir: 348.0, windSpeed: 3.0, windSpeed10: 2.0, yearET: 0.0, yearRain: 2.76377952825

Como ya vemos que Weewx recibe los paquetes (LOOP) de la consola de la Davis, paramos con CTRL-C ya que esto solo nos interesa para probar.

Si no aparecen estos paquetes (LOOP) entonces tenemos un problema de comunicación.

A continuación vamos a interrogar a la consola por sus datos:

Código: [Seleccionar]
sudo wee_device /etc/weewx/weewx.conf --info
Tendremos el resultado aquí:

Citar
jantoni@orangepipc:~$ sudo wee_device /etc/weewx/weewx.conf --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:                         Jul 28 2009
      Version:                      2.11

    CONSOLE SETTINGS:
      Archive interval:             300 (seconds)
      Altitude:                     625 (meter)
      Wind cup type:                large
      Rain bucket type:             0.2 mm
      Rain year start:              1
      Onboard time:                 2020-04-19 15:42:37

    CONSOLE DISPLAY UNITS:
      Barometer:                    mbar
      Temperature:                  degree_10C
      Rain:                         mm
      Wind:                         km_per_hour

    CONSOLE STATION INFO:
      Latitude (onboard):           +40.3°
      Longitude (onboard):          -3.5°
      Use manual or auto DST?       MANUAL
      DST setting:                  OFF
      Use GMT offset or zone code?  ZONE_CODE
      Time zone code:               21
      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:       20805
      Total packets missed:         1065
      Number of resynchronizations: 3
      Longest good stretch:         2259
      Number of CRC errors:         12

    BAROMETER CALIBRATION DATA:
      Current barometer reading:    29.766 inHg
      Altitude:                     2051 feet
      Dew point:                    49 F
      Virtual temperature:          60 F
      Humidity correction factor:   2.9
      Correction ratio:             1.076
      Correction constant:          +0.000 inHg
      Gain:                         0.000
      Offset:                       -28.000

    OFFSETS:
      Wind direction:               +0 deg
      Inside Temperature:           +0.0 F
      Inside Humidity:              +0 %
      Outside Temperature:          +0.0 F
      Outside Humidity:             +0 %

Puede que a ti te salga un poco diferente, ya que yo uso una Davis Vue, pero sin datalogger.

Una vez que vemos que todo está en orden, tenemos que decidir por el tema de la antigua base de datos de Wview.

Yo, personalmente, la copiaría a Weewx

Para copiarla tan solo tienes que hacer:

Código: [Seleccionar]
sudo cp /directorioorigen/ficheroorigen /var/lib/weewx/weewx.sdb
Ahora solo queda arrancar Weewx, pero antes vamos a abrir una nueva consola de Linux para ver el log.

Abrimos una nueva consola y tecleamos

Código: [Seleccionar]
sudo tail -f /var/log/weewx/log
y arrancamos, en la otra consola Linux, Weewx

Código: [Seleccionar]
sudo /etc/init.d/weewx start
Si el driver y la configuración de Weewx no tiene problemas críticos, aparecerá esto

Citar
jantoni@orangepipc:~$ sudo /etc/init.d/weewx start
[ ok ] Starting weewx (via systemctl): weewx.service.
jantoni@orangepipc:~$

Que nos indica que el servidor Weewx ha arrancado y se ha puesto a currar.

Y, en la ventana, o consola Linux del log, nos aparecerá algo como esto:

Citar
jantoni@orangepipc:~$ sudo tail -f /var/log/weewx.log
[sudo] password for jantoni:
Apr 19 15:43:16 localhost weewx[14421]: engine: Initializing weewx version 3.9.2
Apr 19 15:43:16 localhost weewx[14421]: engine: Using Python 2.7.16 (default, Oct 10 2019, 22:02:15) #012[GCC 8.3.0]
Apr 19 15:43:16 localhost weewx[14421]: engine: Platform Linux-5.4.20-sunxi-armv7l-with-debian-10.3
Apr 19 15:43:16 localhost weewx[14421]: engine: Locale is 'LC_CTYPE=es_ES.UTF-8;LC_NUMERIC=es_ES.UTF-8;LC_TIME=es_ES.UTF-8;LC_COLLATE=es_ES.UTF-8;LC_MONETARY=es_ES.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=es_ES.UTF-8;LC_NAME=es_ES.UTF-8;LC_ADDRESS=es_ES.UTF-8;LC_TELEPHONE=es_ES.UTF-8;LC_MEASUREMENT=es_ES.UTF-8;LC_IDENTIFICATION=es_ES.UTF-8'
Apr 19 15:43:16 localhost weewx[14421]: engine: pid file is /var/run/weewx.pid
Apr 19 15:43:16 localhost weewx[14411]: Starting weewx weather system: weewx.
Apr 19 15:43:16 localhost weewx[14425]: engine: Using configuration file /etc/weewx/weewx.conf
Apr 19 15:43:16 localhost weewx[14425]: engine: Loading station type Vantage (weewx.drivers.vantage)
Apr 19 15:43:16 localhost weewx[14425]: engine: StdConvert target unit is 0x1
Apr 19 15:43:16 localhost weewx[14425]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, heatindex=prefer_hardware, maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, cloudbase=prefer_hardware
Apr 19 15:43:16 localhost weewx[14425]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Apr 19 15:43:16 localhost weewx[14425]: engine: Archive will use data binding wx_binding
Apr 19 15:43:16 localhost weewx[14425]: engine: Record generation will be attempted in 'software'
Apr 19 15:43:16 localhost weewx[14425]: engine: Using archive interval of 300 seconds (software record generation)
Apr 19 15:43:16 localhost weewx[14425]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Apr 19 15:43:16 localhost weewx[14425]: manager: Starting backfill of daily summaries
Apr 19 15:43:16 localhost weewx[14425]: restx: StationRegistry: Station will be registered.
Apr 19 15:43:16 localhost weewx[14425]: restx: Wunderground-RF: Data for station IMADRIDR2 will be posted
Apr 19 15:43:16 localhost weewx[14425]: restx: PWSWeather: Data for station JANTONI will be posted
Apr 19 15:43:16 localhost weewx[14425]: restx: CWOP: Data for station EA4TN will be posted
Apr 19 15:43:16 localhost weewx[14425]: restx: WOW: Data for station 454086484 will be posted
Apr 19 15:43:16 localhost weewx[14425]: restx: AWEKAS: Data will be uploaded for user jantoni
Apr 19 15:43:16 localhost weewx[14425]: restx: WeatherCloud: service version is 0.11
Apr 19 15:43:16 localhost weewx[14425]: restx: WeatherCloud: Data will be uploaded for id=f3ae348cde14312d
Apr 19 15:43:16 localhost weewx[14425]: restx: Windy: version is 0.6
Apr 19 15:43:16 localhost weewx[14425]: restx: Windy: Data will be uploaded to https://stations.windy.com/pws/update
Apr 19 15:43:16 localhost weewx[14425]: engine: Starting up weewx version 3.9.2
Apr 19 15:43:16 localhost weewx[14425]: engine: Clock error is 3.09 seconds (positive is fast)
Apr 19 15:43:17 localhost weewx[14425]: engine: Starting main packet loop.
Apr 19 15:45:15 localhost weewx[14425]: manager: Added record 2020-04-19 15:45:00 UTC (1587311100) to database 'weewx.sdb'
Apr 19 15:45:15 localhost weewx[14425]: manager: Added record 2020-04-19 15:45:00 UTC (1587311100) to daily summary in 'weewx.sdb'
Apr 19 15:45:16 localhost weewx[14425]: restx: StationRegistry: Published record 2020-04-19 15:45:00 UTC (1587311100)
Apr 19 15:45:16 localhost weewx[14425]: restx: WeatherCloud: Published record 2020-04-19 15:45:00 UTC (1587311100)
Apr 19 15:45:20 localhost weewx[14425]: cheetahgenerator: Generated 10 files for report SeasonsReport in 5.21 seconds
Apr 19 15:45:22 localhost weewx[14425]: imagegenerator: Generated 14 images for SeasonsReport in 1.55 seconds
Apr 19 15:45:22 localhost weewx[14425]: copygenerator: copied 5 files to /var/www/html/weewx/davis1
Apr 19 15:45:22 localhost weewx[14425]: Belchertown Extension: version 1.0.1
Apr 19 15:45:33 localhost weewx[14425]: cheetahgenerator: Generated 11 files for report Belchertown in 10.63 seconds
Apr 19 15:45:33 localhost weewx[14425]: copygenerator: copied 31 files to /var/www/html/weewx
Apr 19 15:45:47 localhost weewx[14425]: ftpgenerator: ftp'd 77 files in 12.00 seconds


Bien. Paremos un momento.

Si es la primera vez que se ejecuta Weewx con la base de datos antigua. El proceso va a tardar bastante tiempo. Bastante.

Esto es debido a que Weewx, a partir de la versión 3.6 o 3.7 cambio la base de datos. Mientras que Wview mantiene 2 bases de datos, la de los registros y la de máximas y mínimas, Weewx ahora solo mantiene 1 base de datos.

La base de datos mantiene dos tablas, la de los registros y la de máximas y mínimas.

Como recordarás, En Wview, si querías rehacer la base de datos de máximas y mínimas, tan solo la tenías que borrar y, al reiniciar Wview, este se encargaba de volver a crear dicha base de datos.

Pues este proceso es idéntico en Weewx, salvo que lo hace todo dentro de la misma base de datos (con 2 tablas) en lugar de 2 bases de datos con 1 tabla cada uno.

Este proceso tarda un tiempo y puedes ver como todo "se congela".

Una vez que todo empieza a funcionar, verás como discurre el log de una forma similar a la indicada anteriormente.

Y cada vez que se genere un registro verás algo como esto:

Citar
Apr 19 15:45:15 localhost weewx[14425]: manager: Added record 2020-04-19 15:45:00 UTC (1587311100) to database 'weewx.sdb'
Apr 19 15:45:15 localhost weewx[14425]: manager: Added record 2020-04-19 15:45:00 UTC (1587311100) to daily summary in 'weewx.sdb'

Que nos indica que Weewx ha añadido un registro a la base de datos de registro y a la de máximas y mínimas. Fíjate en las fechas.....es superimportante si estás registrando problemas con la base de datos. Esto es así, porque si el último registro que tiene Weewx en la base de datos es POSTERIOR al momento actual (por problemas del reloj), no va a incorporar nuevos registros hasta que se pase esa fecha y hora incorrecta.

Es uno de los principales escollos con Weewx, aunque es algo normal, y que ya ocurría con Wview. De lo contrario, la base de datos quedaría absolutamente inservible a la mínima de cambio.

Recomiendo quitar el falso reloj de la Raspberry Pi, SIEMPRE

Citar
Apr 19 15:45:20 localhost weewx[14425]: cheetahgenerator: Generated 10 files for report SeasonsReport in 5.21 seconds
Apr 19 15:45:22 localhost weewx[14425]: imagegenerator: Generated 14 images for SeasonsReport in 1.55 seconds
Apr 19 15:45:22 localhost weewx[14425]: copygenerator: copied 5 files to /var/www/html/weewx/davis1
Apr 19 15:45:22 localhost weewx[14425]: Belchertown Extension: version 1.0.1
Apr 19 15:45:33 localhost weewx[14425]: cheetahgenerator: Generated 11 files for report Belchertown in 10.63 seconds
Apr 19 15:45:33 localhost weewx[14425]: copygenerator: copied 31 files to /var/www/html/weewx
Apr 19 15:45:47 localhost weewx[14425]: ftpgenerator: ftp'd 77 files in 12.00 seconds

Aquí tienes información que nos dice que, el generador de gráficos ha generado XX gráficos para el skin SeasonS, el que instala por defecto Weewx, y XX gráficos para el Skin Belchertown.

Todos los gráficos e informes NOAA son grabados en los directorios indicados, AUNQUE NO HAYA SERVIDOR WEB.

Por último, en mi caso, el skin FTP se encarga de subirlos a mi web.
« Última modificación: 19 de Abril del 2020, 21:23:15 pm por jantoni »

Desconectado jantoni

  • Hero Member
  • *****
  • Mensajes: 3.754
    • Ver Perfil
  • Estación: ESMAD2800000028522A
Re:Novato con problemas no funciona Weewx
« Respuesta #23 en: 19 de Abril del 2020, 18:07:48 pm »
Ahora, a partir de este momento, lo que nos tienes que decir, con exactitud, es lo que pasa.

Y digo esto, porque cada uno es un mundo.

Yo pasé de Wview a Weewx sin ningún tipo de problema. Pero es la ventaja de no tener datalogger. Yo solo leo los datos de la consola según se generan, pero la consola no almacena absolutamente nada (fuente de muchos problemas)

Ah.....para quitar el falso reloj:

Código: [Seleccionar]
sudo apt-get purge --yes fake-hwclock
Y no es necesario tener servidor web, si no lo quieres.

Con un programa como Filezilla o Bitvise Tunnelier, podrás abrir una sesión SFTP y podrás navegar dentro de los directorios. Haciendo click en los ficheros, los podrás ver en tu navegador.

« Última modificación: 19 de Abril del 2020, 18:10:02 pm por jantoni »

Desconectado Aralar

  • Newbie
  • *
  • Mensajes: 31
    • Ver Perfil
  • Estación: Abaltzisketa
Re:Novato con problemas no funciona Weewx
« Respuesta #24 en: 20 de Abril del 2020, 08:54:54 am »
Siento mucho no explicar bien lo que pasa y no entender lo que me decís. No tengo ni idea de informática. Intento seguir los pasos que ponéis en los foros. Las horas que paso o pierdo intentando recordar como lo hice para configurarlo o intentando arreglarlo cuando haya algún problema.
Además no tengo mucho tiempo para hacer esto y no tengo la estación tan a mano.

A veces pienso en aparcar la rasberry y poner algo como la datalogger ip o el datalogger que descubrí el otro día.
De momento voy a intentar hacerlo así.
Gracias y luego os cuento.

Desconectado jantoni

  • Hero Member
  • *****
  • Mensajes: 3.754
    • Ver Perfil
  • Estación: ESMAD2800000028522A
Re:Novato con problemas no funciona Weewx
« Respuesta #25 en: 20 de Abril del 2020, 09:40:56 am »
Te aseguro que yo, de informática, no tengo ni idea.

Te lo aseguro.

Quizás lo mejor es que empieces de cero con el script meteowee.

Y, una vez instalado, vemos los problemas que tengas.

Desconectado Aralar

  • Newbie
  • *
  • Mensajes: 31
    • Ver Perfil
  • Estación: Abaltzisketa
Re:Novato con problemas no funciona Weewx
« Respuesta #26 en: 20 de Abril del 2020, 15:32:08 pm »
Bueno

Vayamos por partes.
Te digo todo lo que me aparece al dar cada paso.

sudo tail -f /var/log/weewx.log
Apr 20 15:23:11 raspberrypi weewx[26087]: engine: Starting up weewx version 3.9.2
Apr 20 15:23:11 raspberrypi weewx[26087]: engine: Starting up weewx version 3.9.2
Apr 20 15:23:11 raspberrypi weewx[26087]: engine: Clock error is 0.67 seconds (positive is fast)
Apr 20 15:23:11 raspberrypi weewx[26087]: engine: Clock error is 0.67 seconds (positive is fast)
Apr 20 15:23:12 raspberrypi weewx[26087]: engine: Starting main packet loop.
Apr 20 15:23:12 raspberrypi weewx[26087]: engine: Starting main packet loop.
Apr 20 15:25:05 raspberrypi weewx[26087]: engine: Main loop exiting. Shutting engine down.
Apr 20 15:25:05 raspberrypi weewx[26087]: engine: Main loop exiting. Shutting engine down.
Apr 20 15:25:05 raspberrypi weewx[26087]: engine: Keyboard interrupt.
Apr 20 15:25:05 raspberrypi weewx[26087]: engine: Keyboard interrupt.


sudo tail -n 25 /var/log/weewx.log
Apr 20 15:23:10 raspberrypi weewx[26087]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Apr 20 15:23:10 raspberrypi weewx[26087]: manager: Starting backfill of daily summaries
Apr 20 15:23:10 raspberrypi weewx[26087]: manager: Starting backfill of daily summaries
Apr 20 15:23:11 raspberrypi weewx[26087]: restx: StationRegistry: Registration not requested.
Apr 20 15:23:11 raspberrypi weewx[26087]: restx: StationRegistry: Registration not requested.
Apr 20 15:23:11 raspberrypi weewx[26087]: restx: Wunderground-PWS: Data for station IGIPUZKO5 will be posted
Apr 20 15:23:11 raspberrypi weewx[26087]: restx: Wunderground-PWS: Data for station IGIPUZKO5 will be posted
Apr 20 15:23:11 raspberrypi weewx[26087]: restx: PWSweather: Posting not enabled.
Apr 20 15:23:11 raspberrypi weewx[26087]: restx: PWSweather: Posting not enabled.
Apr 20 15:23:11 raspberrypi weewx[26087]: restx: CWOP: Posting not enabled.
Apr 20 15:23:11 raspberrypi weewx[26087]: restx: CWOP: Posting not enabled.
Apr 20 15:23:11 raspberrypi weewx[26087]: restx: WOW: Posting not enabled.
Apr 20 15:23:11 raspberrypi weewx[26087]: restx: WOW: Posting not enabled.
Apr 20 15:23:11 raspberrypi weewx[26087]: restx: AWEKAS: Posting not enabled.
Apr 20 15:23:11 raspberrypi weewx[26087]: restx: AWEKAS: Posting not enabled.
Apr 20 15:23:11 raspberrypi weewx[26087]: engine: Starting up weewx version 3.9.2
Apr 20 15:23:11 raspberrypi weewx[26087]: engine: Starting up weewx version 3.9.2
Apr 20 15:23:11 raspberrypi weewx[26087]: engine: Clock error is 0.67 seconds (positive is fast)
Apr 20 15:23:11 raspberrypi weewx[26087]: engine: Clock error is 0.67 seconds (positive is fast)
Apr 20 15:23:12 raspberrypi weewx[26087]: engine: Starting main packet loop.
Apr 20 15:23:12 raspberrypi weewx[26087]: engine: Starting main packet loop.
Apr 20 15:25:05 raspberrypi weewx[26087]: engine: Main loop exiting. Shutting engine down.
Apr 20 15:25:05 raspberrypi weewx[26087]: engine: Main loop exiting. Shutting engine down.
Apr 20 15:25:05 raspberrypi weewx[26087]: engine: Keyboard interrupt.
Apr 20 15:25:05 raspberrypi weewx[26087]: engine: Keyboard interrupt.



Desconectado Aralar

  • Newbie
  • *
  • Mensajes: 31
    • Ver Perfil
  • Estación: Abaltzisketa
Re:Novato con problemas no funciona Weewx
« Respuesta #27 en: 20 de Abril del 2020, 15:35:07 pm »
sudo weewxd /etc/weewx/weewx.conf

LOOP:   2020-04-20 15:33:36 CEST (1587389616) appTemp: 54.7249404189, barometer: 29.803, cloudbase: 1650.68422915, consBatteryVoltage: 4.81, dateTime: 1587389616, dayET: 0.0, dayRain: 0.031496063, dewpoint: 52.7177893917, extraAlarm1: 0, extraAlarm2: 0, extraAlarm3: 0, extraAlarm4: 0, extraAlarm5: 0, extraAlarm6: 0, extraAlarm7: 0, extraAlarm8: 0, forecastIcon: 6, forecastRule: 45, heatindex: 55.0, humidex: 58.6147321519, inDewpoint: 57.0203157414, inHumidity: 80.0, insideAlarm: 0, inTemp: 63.3, leafWet4: 0.0, maxSolarRad: None, monthET: 0.0, monthRain: 1.8425196855, outHumidity: 92.0, outsideAlarm1: 0, outsideAlarm2: 0, outTemp: 55.0, rain: None, rainAlarm: 0, rainRate: 0.0, soilLeafAlarm1: 0, soilLeafAlarm2: 0, soilLeafAlarm3: 0, soilLeafAlarm4: 0, stormRain: 1.04724409475, stormStart: 1586988000, sunrise: 1587359880, sunset: 1587409020, trendIcon: -20, txBatteryStatus: 1, usUnits: 1, windchill: 55.0, windDir: 109.0, windGust: 2.0, windGustDir: 109.0, windSpeed: 2.0, windSpeed10: 0.0, yearET: 0.0, yearRain: 11.6692913415
LOOP:   2020-04-20 15:33:36 CEST (1587389616) appTemp: 54.7249404189, barometer: 29.803, cloudbase: 1650.68422915, consBatteryVoltage: 4.81, dateTime: 1587389616, dayET: 0.0, dayRain: 0.031496063, dewpoint: 52.7177893917, extraAlarm1: 0, extraAlarm2: 0, extraAlarm3: 0, extraAlarm4: 0, extraAlarm5: 0, extraAlarm6: 0, extraAlarm7: 0, extraAlarm8: 0, forecastIcon: 6, forecastRule: 45, heatindex: 55.0, humidex: 58.6147321519, inDewpoint: 57.0203157414, inHumidity: 80.0, insideAlarm: 0, inTemp: 63.3, leafWet4: 0.0, maxSolarRad: None, monthET: 0.0, monthRain: 1.8425196855, outHumidity: 92.0, outsideAlarm1: 0, outsideAlarm2: 0, outTemp: 55.0, rain: 0.0, rainAlarm: 0, rainRate: 0.0, soilLeafAlarm1: 0, soilLeafAlarm2: 0, soilLeafAlarm3: 0, soilLeafAlarm4: 0, stormRain: 1.04724409475, stormStart: 1586988000, sunrise: 1587359880, sunset: 1587409020, trendIcon: -20, txBatteryStatus: 1, usUnits: 1, windchill: 55.0, windDir: 109.0, windGust: 2.0, windGustDir: 109.0, windSpeed: 2.0, windSpeed10: 0.0, yearET: 0.0, yearRain: 11.6692913415



sudo wee_device /etc/weewx/weewx.conf --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 Pro2
   
    CONSOLE FIRMWARE:
      Date:                         Sep 29 2009
      Version:                      1.90
   
    CONSOLE SETTINGS:
      Archive interval:             600 (seconds)
      Altitude:                     345 (meter)
      Wind cup type:                large
      Rain bucket type:             0.2 mm
      Rain year start:              1
      Onboard time:                 2020-04-20 15:34:31
     
    CONSOLE DISPLAY UNITS:
      Barometer:                    hPa
      Temperature:                  degree_10C
      Rain:                         mm
      Wind:                         km_per_hour
     
    CONSOLE STATION INFO:
      Latitude (onboard):           +43.0°
      Longitude (onboard):          -2.1°
      Use manual or auto DST?       MANUAL
      DST setting:                  OFF
      Use GMT offset or zone code?  GMT_OFFSET
      Time zone code:               N/A
      GMT offset:                   +2.0 hours
      Temperature logging:          LAST
      Retransmit channel:           OFF (0)
       
    TRANSMITTERS:
      Channel   Receive   Repeater  Type
         1      active      none    iss
         2      inactive    none    (N/A)
         3      inactive    none    (N/A)
         4      inactive    none    (N/A)
         5      inactive    none    (N/A)
         6      inactive    none    (N/A)
         7      inactive    none    (N/A)
         8      inactive    none    (N/A)

    RECEPTION STATS:
      Total packets received:       20579
      Total packets missed:         1302
      Number of resynchronizations: 0
      Longest good stretch:         430
      Number of CRC errors:         598
     
    BAROMETER CALIBRATION DATA:
      Current barometer reading:    29.802 inHg
      Altitude:                     1132 feet
      Dew point:                    53 F
      Virtual temperature:          54 F
      Humidity correction factor:   3.1
      Correction ratio:             1.042
      Correction constant:          +0.000 inHg
      Gain:                         0.000
      Offset:                       -38.000
     
    OFFSETS:
      Wind direction:               +0 deg
      Inside Temperature:           +0.0 F
      Inside Humidity:              +0 %
      Outside Temperature:          +0.0 F
      Outside Humidity:             +0 %

Desconectado jmviper

  • Investigación
  • Hero Member
  • ******
  • Mensajes: 4.403
  • "Vortex Complex"
    • Ver Perfil
    • www.meteoarchena.es
  • Estación: Archena - ESMUR3000000030600B
Re:Novato con problemas no funciona Weewx
« Respuesta #28 en: 20 de Abril del 2020, 15:47:04 pm »
sudo tail -n 50 /var/log/weewx.log

Ejecuta esto y copia y pega. Necesitamos más información en el log de porqué se cierra weewx.


Archena, Valle de Ricote (Murcia). 120 msnm. 19.622 hab.
Davis Vantage Pro2 Plus

www.meteoarchena.es

Desconectado Aralar

  • Newbie
  • *
  • Mensajes: 31
    • Ver Perfil
  • Estación: Abaltzisketa
Re:Novato con problemas no funciona Weewx
« Respuesta #29 en: 20 de Abril del 2020, 17:00:17 pm »
sudo tail -n 50 /var/log/weewx.log
Apr 20 16:39:52 raspberrypi weewx[225]: Starting weewx weather system: weewx.
Apr 20 16:39:52 raspberrypi weewx[225]: Starting weewx weather system: weewx.
Apr 20 16:39:53 raspberrypi weewx[426]: engine: Using configuration file /etc/weewx/weewx.conf
Apr 20 16:39:53 raspberrypi weewx[426]: engine: Using configuration file /etc/weewx/weewx.conf
Apr 20 16:39:53 raspberrypi weewx[426]: engine: Loading station type Vantage (weewx.drivers.vantage)
Apr 20 16:39:53 raspberrypi weewx[426]: engine: Loading station type Vantage (weewx.drivers.vantage)
Apr 20 16:39:58 raspberrypi weewx[426]: engine: StdConvert target unit is 0x1
Apr 20 16:39:58 raspberrypi weewx[426]: engine: StdConvert target unit is 0x1
Apr 20 16:39:58 raspberrypi weewx[426]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, heatindex=prefer_hardware, maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, cloudbase=prefer_hardware
Apr 20 16:39:58 raspberrypi weewx[426]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, heatindex=prefer_hardware, maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, cloudbase=prefer_hardware
Apr 20 16:39:58 raspberrypi weewx[426]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Apr 20 16:39:58 raspberrypi weewx[426]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Apr 20 16:39:58 raspberrypi weewx[426]: engine: Archive will use data binding wx_binding
Apr 20 16:39:58 raspberrypi weewx[426]: engine: Archive will use data binding wx_binding
Apr 20 16:39:58 raspberrypi weewx[426]: engine: Record generation will be attempted in 'hardware'
Apr 20 16:39:58 raspberrypi weewx[426]: engine: Record generation will be attempted in 'hardware'
Apr 20 16:39:58 raspberrypi weewx[426]: engine: The archive interval in the configuration file (300) does not match the station hardware interval (600).
Apr 20 16:39:58 raspberrypi weewx[426]: engine: The archive interval in the configuration file (300) does not match the station hardware interval (600).
Apr 20 16:39:58 raspberrypi weewx[426]: engine: Using archive interval of 600 seconds (specified by hardware)
Apr 20 16:39:58 raspberrypi weewx[426]: engine: Using archive interval of 600 seconds (specified by hardware)
Apr 20 16:39:58 raspberrypi weewx[426]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Apr 20 16:39:58 raspberrypi weewx[426]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Apr 20 16:39:58 raspberrypi weewx[426]: manager: Starting backfill of daily summaries
Apr 20 16:39:58 raspberrypi weewx[426]: manager: Starting backfill of daily summaries
Apr 20 16:40:00 raspberrypi weewx[426]: restx: StationRegistry: Registration not requested.
Apr 20 16:40:00 raspberrypi weewx[426]: restx: StationRegistry: Registration not requested.
Apr 20 16:40:00 raspberrypi weewx[426]: restx: Wunderground-PWS: Data for station IGIPUZKO5 will be posted
Apr 20 16:40:00 raspberrypi weewx[426]: restx: Wunderground-PWS: Data for station IGIPUZKO5 will be posted
Apr 20 16:40:00 raspberrypi weewx[426]: restx: PWSweather: Posting not enabled.
Apr 20 16:40:00 raspberrypi weewx[426]: restx: PWSweather: Posting not enabled.
Apr 20 16:40:00 raspberrypi weewx[426]: restx: CWOP: Posting not enabled.
Apr 20 16:40:00 raspberrypi weewx[426]: restx: CWOP: Posting not enabled.
Apr 20 16:40:01 raspberrypi weewx[426]: restx: WOW: Posting not enabled.
Apr 20 16:40:01 raspberrypi weewx[426]: restx: WOW: Posting not enabled.
Apr 20 16:40:01 raspberrypi weewx[426]: restx: AWEKAS: Posting not enabled.
Apr 20 16:40:01 raspberrypi weewx[426]: restx: AWEKAS: Posting not enabled.
Apr 20 16:40:01 raspberrypi weewx[426]: engine: Starting up weewx version 3.9.2
Apr 20 16:40:01 raspberrypi weewx[426]: engine: Starting up weewx version 3.9.2
Apr 20 16:40:01 raspberrypi weewx[426]: engine: Clock error is -2.22 seconds (positive is fast)
Apr 20 16:40:01 raspberrypi weewx[426]: engine: Clock error is -2.22 seconds (positive is fast)
Apr 20 16:40:02 raspberrypi weewx[426]: engine: Starting main packet loop.
Apr 20 16:40:02 raspberrypi weewx[426]: engine: Starting main packet loop.
Apr 20 16:40:22 raspberrypi weewx[426]: vantage: LOOP try #1; error: Expected to read 99 chars; got 2 instead
Apr 20 16:40:22 raspberrypi weewx[426]: vantage: LOOP try #1; error: Expected to read 99 chars; got 2 instead
Apr 20 16:51:01 raspberrypi weewx[426]: cheetahgenerator: Generated 8 files for report SeasonsReport in 39.73 seconds
Apr 20 16:51:01 raspberrypi weewx[426]: cheetahgenerator: Generated 8 files for report SeasonsReport in 39.73 seconds
Apr 20 16:51:59 raspberrypi weewx[426]: imagegenerator: Generated 57 images for SeasonsReport in 56.87 seconds
Apr 20 16:51:59 raspberrypi weewx[426]: imagegenerator: Generated 57 images for SeasonsReport in 56.87 seconds
Apr 20 16:51:59 raspberrypi weewx[426]: copygenerator: copied 5 files to /var/www/html/weewx
Apr 20 16:51:59 raspberrypi weewx[426]: copygenerator: copied 5 files to /var/www/html/weewx