Meteoclimatic
Software => WeeWX => Mensaje iniciado por: Telares en 06 de Septiembre del 2019, 09:04:32 am
-
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.
-
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
-
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
-
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
-
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.
-
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.
Estaba escribiendo ésto mientras
Creo que está solucionado. El caso fue que ayer debido a interferencias, que de vez en cuando genera un variador de frecuencia, apareció lluvia, temperatura y viento anómalos. Otras veces edito la base de datos con DBBrowser y quito el dato erróneo. Ayer como eran varios datos lo que hice fue poner "NULL" en la línea entera de "archive". Creo que fue ésto lo que provocó el bloqueo.
Gracias.
-
He puesto la ruta y ahora está "trabajando", a ver...
-
root@raspberrypi:~# wee_database /etc/weewx/weewx.conf --fix-strings
Using configuration file /etc/weewx/weewx.conf
Using database binding 'wx_binding', which is bound to database 'archive_sqlite'
Preparing Null String Fix, this may take a while...
Checking record: 252245; Timestamp: 2019-09-06 08:09:43 UTC (1567757383)
No null strings found.
Applied Null String Fix in 129.91 seconds.
-
Bien, ahora, después de otro susto, ya actualiza correctamente. Parece que recupera los datos muy lentamente, pero eso debe ser propio de las raspberris. Gracias de nuevo.
-
Ok perfecto
A mí también weewx cuando lee datalogger en la Orange Pi se tira un buen rato...eso sí tengo el intervalo en un minuto y se nota.
También uso DB browser y si he tenido alguna fila mal la he borrado directamente. Mejor eso que ponerla a null por este motivo de los strings.
Saludos