Autor Tema: Nueva versión weewx 4.6.0 y 4.7.0  (Leído 5544 veces)

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

Desconectado dtalens

  • Full Member
  • ***
  • Mensajes: 160
    • Ver Perfil
    • MeteoPego
  • Estación: ESPVA0300000003780H
Nueva versión weewx 4.6.0 y 4.7.0
« en: 06 de Febrero del 2022, 07:54:43 am »
Cuidado!! porqué le he dado ha actualizar y el skin Belchertown no me cargaba correctamente. He tenido que volver a la versión anterior 4.5.1.

Alguien ha actualizado y le funciona bien?


Saludos,
« Última modificación: 31 de Marzo del 2022, 13:39:27 pm por dtalens »

Conectado jantoni

  • Hero Member
  • *****
  • Mensajes: 3.754
    • Ver Perfil
  • Estación: ESMAD2800000028522A
Re:Nueva versión weewx 4.6.0
« Respuesta #1 en: 06 de Febrero del 2022, 10:03:03 am »
Ya veo que has reportado el problema en Github.

Desconectado dtalens

  • Full Member
  • ***
  • Mensajes: 160
    • Ver Perfil
    • MeteoPego
  • Estación: ESPVA0300000003780H
Re:Nueva versión weewx 4.6.0
« Respuesta #2 en: 06 de Febrero del 2022, 10:18:34 am »
Hola Jantoni,

Ahora no estoy seguro si se debe algún cambio en el archivo weewx.conf ya que he conservado el que ya tenia o se debe a otra cosa. Por el error del log parece algún problema con los gráficos highcharts.

Conectado jantoni

  • Hero Member
  • *****
  • Mensajes: 3.754
    • Ver Perfil
  • Estación: ESMAD2800000028522A
Re:Nueva versión weewx 4.6.0
« Respuesta #3 en: 06 de Febrero del 2022, 10:30:45 am »
Con seguridad me equivoco.......pero entiendo que el mensaje de error te está diciendo que ese "%" no debería estar ahí

Busca en los archivos de configuración de Belchertown a ver si encuentras ese "%"

Desconectado jmviper

  • Investigación
  • Hero Member
  • ******
  • Mensajes: 4.403
  • "Vortex Complex"
    • Ver Perfil
    • www.meteoarchena.es
  • Estación: Archena - ESMUR3000000030600B
Re:Nueva versión weewx 4.6.0
« Respuesta #4 en: 06 de Febrero del 2022, 11:18:47 am »
Mira a ver si ha cambiado el campo [[StringFormats]] en el weewx.conf… has puesto la nueva versión ??


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

www.meteoarchena.es

Desconectado dtalens

  • Full Member
  • ***
  • Mensajes: 160
    • Ver Perfil
    • MeteoPego
  • Estación: ESPVA0300000003780H
Re:Nueva versión weewx 4.6.0
« Respuesta #5 en: 08 de Febrero del 2022, 16:28:34 pm »
Hola,

He probado con eliminar por completo la sección [[StringFormats]] en el fichero de weewx.conf y skin.conf y sigue con el mismo error:
Código: [Seleccionar]
Feb  8 16:00:35 minipc weewx[668909] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'user.belchertown.HighchartsJsonGenerator'
Feb  8 16:00:35 minipc weewx[668909] ERROR weewx.reportengine:         ****  invalid literal for int() with base 10: '%'
Feb  8 16:00:35 minipc weewx[668909] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Feb  8 16:00:35 minipc weewx[668909] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 197, in run
Feb  8 16:00:35 minipc weewx[668909] ERROR weewx.reportengine:         ****      obj.start()
Feb  8 16:00:35 minipc weewx[668909] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 378, in start
Feb  8 16:00:35 minipc weewx[668909] ERROR weewx.reportengine:         ****      self.run()
Feb  8 16:00:35 minipc weewx[668909] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/user/belchertown.py", line 2714, in run
Feb  8 16:00:35 minipc weewx[668909] ERROR weewx.reportengine:         ****      series_data = self.get_observation_data(
Feb  8 16:00:35 minipc weewx[668909] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/user/belchertown.py", line 3726, in get_observation_data
Feb  8 16:00:35 minipc weewx[668909] ERROR weewx.reportengine:         ****      usage_round = int(
Feb  8 16:00:35 minipc weewx[668909] ERROR weewx.reportengine:         ****  ValueError: invalid literal for int() with base 10: '%'
Feb  8 16:00:35 minipc weewx[668909] ERROR weewx.reportengine:         ****  Generator terminated

Me falta hacer la prueba con una instalación limpia...

Conectado jantoni

  • Hero Member
  • *****
  • Mensajes: 3.754
    • Ver Perfil
  • Estación: ESMAD2800000028522A
Re:Nueva versión weewx 4.6.0
« Respuesta #6 en: 08 de Febrero del 2022, 18:17:46 pm »
Una copia de ambos ficheros (sin passwords) podría ser útil

Aunque en Belchertown también podría afectar el fichero de configuración de los gráficos.

Desconectado jmviper

  • Investigación
  • Hero Member
  • ******
  • Mensajes: 4.403
  • "Vortex Complex"
    • Ver Perfil
    • www.meteoarchena.es
  • Estación: Archena - ESMUR3000000030600B
Re:Nueva versión weewx 4.6.0
« Respuesta #7 en: 08 de Febrero del 2022, 23:30:23 pm »
Lo de los strings lo dije porque Python suelta el error de invalid literal for int() with base 10: '%' que quiere decir que encuentra ese símbolo de porcentaje y no puede convertirlo a número entero (integer).

En la línea del error pone lo siguiente:

 usage_round = int(
                    self.skin_dict["Units"]["StringFormats"].get(obs_vt[1], "2f")[-2]
                )


por eso he dicho lo del error en Units StringFormats

Lo raro es si dices que has quitado esas secciones tanto en weewx.conf como en skin.conf cómo sigue saliendo ese error... reiniciaste weewx ?? A ver si hay alguna otra sección por ahí....




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

www.meteoarchena.es

Conectado jantoni

  • Hero Member
  • *****
  • Mensajes: 3.754
    • Ver Perfil
  • Estación: ESMAD2800000028522A
Re:Nueva versión weewx 4.6.0
« Respuesta #8 en: 09 de Febrero del 2022, 01:23:09 am »
En Belchertown hay muchas secciones que pueden afectar a Cheetah

Pero lo lógico es que sean

weewx.conf
skin.conf
graphs.conf

Ésta última creo que es el fichero que controla los gráficos....pero hablo de memoria, ahora mismo no tengo Belchertown corriendo en mi Weewx

Desconectado dtalens

  • Full Member
  • ***
  • Mensajes: 160
    • Ver Perfil
    • MeteoPego
  • Estación: ESPVA0300000003780H
Re:Nueva versión weewx 4.6.0
« Respuesta #9 en: 10 de Febrero del 2022, 09:35:55 am »
Hola jantoni,

Efectivamente parece que el problema viene por el archivo graph.conf. Ayer prové la nueva versión de weewx con el archivo genérico de graph.conf y no daba error. De hecho, prové a eliminar todos los "%" del archivo y no tuvo efecto, me falta mirarlo con más detenimiento.

Saludos,

Desconectado dtalens

  • Full Member
  • ***
  • Mensajes: 160
    • Ver Perfil
    • MeteoPego
  • Estación: ESPVA0300000003780H
Re:Nueva versión weewx 4.6.0
« Respuesta #10 en: 12 de Febrero del 2022, 12:24:41 pm »
Hola,

Un usuario de github ha encontrado el problema... es el contador de número de rayos:
Código: [Seleccionar]
[[lightning_strike_count]]
Al quitar la sección deja de dar el error.

https://github.com/poblabs/weewx-belchertown/issues/761

Desconectado jmviper

  • Investigación
  • Hero Member
  • ******
  • Mensajes: 4.403
  • "Vortex Complex"
    • Ver Perfil
    • www.meteoarchena.es
  • Estación: Archena - ESMUR3000000030600B
Re:Nueva versión weewx 4.6.0
« Respuesta #11 en: 12 de Febrero del 2022, 15:32:25 pm »
Son los riesgos de personalizar un skin, luego no se sabe de dónde te vienen los errores cuando se dan.



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

www.meteoarchena.es

Desconectado aerf

  • Jr. Member
  • **
  • Mensajes: 94
    • Ver Perfil
    • Olmeda del Rey Meteo
  • Estación: ESCLM1600000016216A
Re:Nueva versión weewx 4.6.0
« Respuesta #12 en: 26 de Febrero del 2022, 09:53:34 am »
Recomendable actualizar? Mejoras? Saludoss

Conectado jantoni

  • Hero Member
  • *****
  • Mensajes: 3.754
    • Ver Perfil
  • Estación: ESMAD2800000028522A
Re:Nueva versión weewx 4.6.0
« Respuesta #13 en: 26 de Febrero del 2022, 11:27:15 am »
Recomendable actualizar? Mejoras? Saludoss

4.6.2 02/10/2022
Removed diagnostic code that was inadverently left in the titlebar.inc file
in Seasons skin.


4.6.1 02/10/2022
Make the show_rss and show_reports flags work properly.  Fixes issue #739.

Added $to_list() utility for use in Cheetah templates.

Fixed a few more untranslated fields in Seasons skin.

Observaton types that use the `sum` extractor are set to None if no LOOP
packets contributed to the accumulator. Fixes issue #737.

Added ppm as default group_fraction.  Added default label string for ppm.

Added Norwegian translations. Thanks to user Aslak! PR #742.

Fixed problem that caused wee_database --check-strings/--fix-strings to fail on
TEXT fields. Fixes issue #738.


4.6.0 02/04/2022
Easy localization of all skins that come with WeeWX. Big thanks to user Karen,
who drove the effort! PR #665.

Allow options --date, --from, and --to to be used with wee_database --reweight.
PR #659. Thanks to user edi-x!

Added Cheetah helper functions $jsonize(), $rnd(), and $to_int().

The tag $alltime, formerly available as an example, is now a part of WeeWX core.

New SLE example $colorize(). New document on how to write SLEs.

Added conversions for unix_epoch_ms and unix_epoch_ns. Calculations in
celestial.inc now explicitly use unix_epoch.

Added almanac attribute "visible" and "visible_change". For example,
$almanac.sun.visible returns the amount of daylight, $almanac.sun.visible_change
the difference since yesterday.

Fixed problem that could cause weather xtypes services not to shut down
properly. PR #672. Thanks again to user edi-x!

Added Cheetah tag $filename, the relative path of the generated file. Useful
for setting canonical URLs. PR #671. Thanks again to user Karen!

XType get_scalar() and get_series() calls can now take extra keyword arguments.
PR #673.

Fixed problem where a bad clock packet could crash the WMR100 driver.

Davis documentation for LOOP2 10-minute wind gusts is wrong. The Vantage
actually emits mph, not tenths of mph. Changed driver so it now decodes the
field correctly. Fixes issue #686.

Sending a HUP signal to weewxd no longer causes the configuration file to be
reread.

Logging is not done until after the configuration file has been read. This
allows customized logging to start from the very beginning. Fixes issue #699.

Simplified the logging of Cheetah exceptions to show only what's relevant.
Fixes issue #700.

Include a requirements.txt file, for installing using pip. Thanks to user
Clément! PR #691.

Fixed problem where ConfigObj interpolation would interfere with setting
logging formats.

Added option --batch-size to the Vantage version of wee_device. See PR #693.

Slightly faster evaluation of the tag suffix 'has_data'.
New aggregation type 'not_null'.

A string in the database no longer raises an error. Fixes issue #695.

Added plot option 'skip_if_empty'. If set to True, and there is no non-null
data in the plot, then the plot will not be generated at all. If set to
a time domain (such as 'year'), then it will do the check over that domain.
See PR #702.

Parameterized the Seasons skin, making it considerably smaller, while requiring
less configuration. It now includes all types found in the wview-extended
schema. See PR #702.

New FTP option 'ftp_encoding' for oddball FTP servers that send their responses
back in something other than UTF-8.

Availability of the pyephem module and extended almanac data is now logged
during startup.

Added column for 'last contact' in the sensor status table in the Season skin
to help diagnose missing/flaky sensors.

Fix the weewx.debian and weewx-multi init scripts to work with non-root user.

Added sample tmpfiles configuration to ensure run directory on modern systems
when running weewx as non-root user.

Fixed bug that prevented the ssh port from being specified when using rsync.
Fixes issue #725.

Improved alphanumeric sorting of loop packet/archive record fields displayed
when WeeWX is run directly.

Added sample weewxd init file for 'service' based init on freebsd.  Thanks to
user ryan.

Added i18n-report utility to help check skins for translated strings.

Desconectado dtalens

  • Full Member
  • ***
  • Mensajes: 160
    • Ver Perfil
    • MeteoPego
  • Estación: ESPVA0300000003780H
Re:Nueva versión weewx 4.6.0
« Respuesta #14 en: 26 de Febrero del 2022, 11:28:42 am »
Mejoras... La verdad que no se nota nada. Me ha dado más problemas que otra cosa.

Saludos,