Software > WeeWX

Bloqueado

(1/2) > >>

Telares:
Hola, desde ayer se ha quedado bloqueado WeeWx.

root@raspberrypi:~# sudo service weewx status
● weewx.service - LSB: weewx weather system
   Loaded: loaded (/etc/init.d/weewx)
   Active: active (exited) since vie 2019-09-06 06:52:31 UTC; 5min ago
  Process: 4810 ExecStop=/etc/init.d/weewx stop (code=exited, status=0/SUCCESS)
  Process: 4550 ExecReload=/etc/init.d/weewx reload (code=exited, status=0/SUCCESS)
  Process: 4851 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)

sep 06 06:55:12 raspberrypi weewx[4865]: ****    File "/usr/share/weewx/weewx/manager.py", line 1183, in _addSingleRecord
sep 06 06:55:12 raspberrypi weewx[4865]: ****      _day_summary.addRecord(record, weight=_weight)
sep 06 06:55:12 raspberrypi weewx[4865]: ****    File "/usr/share/weewx/weewx/accum.py", line 242, in addRecord
sep 06 06:55:12 raspberrypi weewx[4865]: ****      func(self, record, obs_type, add_hilo, weight)
sep 06 06:55:12 raspberrypi weewx[4865]: ****    File "/usr/share/weewx/weewx/accum.py", line 301, in add_value
sep 06 06:55:12 raspberrypi weewx[4865]: ****      self[obs_type].addSum(val, weight=weight)
sep 06 06:55:12 raspberrypi weewx[4865]: ****    File "/usr/share/weewx/weewx/accum.py", line 88, in addSum
sep 06 06:55:12 raspberrypi weewx[4865]: ****      self.sum     += val
sep 06 06:55:12 raspberrypi weewx[4865]: ****  TypeError: unsupported operand type(s) for +=: 'NoneType' and 'float'
sep 06 06:55:12 raspberrypi weewx[4865]: ****  Exiting.

Pero no lo entiendo. Alguien me puede ayudar? Gracias.

jmviper:
Hola Telares

Prueba esto en las soluciones de weewx:

http://www.weewx.com/docs/usersguide.htm#Strings_in_the_database

Puede que haya por ahí algún carácter problemático.

Saludos

Telares:
Gracias jmviper. Ejecuto y me sale ésto:

root@raspberrypi:~# wee_database weewx.conf --check-strings
Traceback (most recent call last):
  File "/usr/bin/wee_database", line 793, in <module>
    main()
  File "/usr/bin/wee_database", line 133, in main
    config_path, config_dict = weecfg.read_config(options.config_path, args)
  File "/usr/share/weewx/weecfg/__init__.py", line 221, in read_config
    locations=locations, file_name=file_name)
  File "/usr/share/weewx/weecfg/__init__.py", line 196, in find_file
    raise IOError("%s is not a file" % file_path)
IOError: weewx.conf is not a file

Telares:
Y:

root@raspberrypi:~# wee_database weewx.conf --fix-strings
Traceback (most recent call last):
  File "/usr/bin/wee_database", line 793, in <module>
    main()
  File "/usr/bin/wee_database", line 133, in main
    config_path, config_dict = weecfg.read_config(options.config_path, args)
  File "/usr/share/weewx/weecfg/__init__.py", line 221, in read_config
    locations=locations, file_name=file_name)
  File "/usr/share/weewx/weecfg/__init__.py", line 196, in find_file
    raise IOError("%s is not a file" % file_path)
IOError: weewx.conf is not a file

jmviper:
Reemplaza weewx.conf en ese comando por la ruta donde esté (/etc/weewx/weewx.conf). Si estás en /etc/weewx puedes ponerlo como lo has puesto.

Navegación

[0] Índice de Mensajes

[#] Página Siguiente

Ir a la versión completa