lrybak / domoticz-airly

A Python plugin for Domoticz to access airly API for smog information in Poland
MIT License
10 stars 8 forks source link

"AttributeError" - Domoticz 4.970, Python 3.5.3, Raspbian Stretch #5

Closed jkasperczyk closed 5 years ago

jkasperczyk commented 5 years ago

2018-11-02 09:02:51.176 (Airly) onStop called 2018-11-02 09:02:51.176 (Airly) Debug logging mask set to: NONE 2018-11-02 09:02:51.771 (Airly) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL 2018-11-02 09:02:51.771 (Airly) 'Mode1':'IA1kIUtbdp44qBRqxVjlxh8CYfOCxmd3' 2018-11-02 09:02:51.771 (Airly) 'DomoticzHash':'a3a45906' 2018-11-02 09:02:51.771 (Airly) 'Key':'AIRLY' 2018-11-02 09:02:51.771 (Airly) 'Author':'fisher' 2018-11-02 09:02:51.771 (Airly) 'Name':'Airly' 2018-11-02 09:02:51.771 (Airly) 'Version':'0.3.0' 2018-11-02 09:02:51.771 (Airly) 'DomoticzVersion':'4.9700' 2018-11-02 09:02:51.771 (Airly) 'HomeFolder':'/home/pi/domoticz/plugins/domoticz-airly/' 2018-11-02 09:02:51.771 (Airly) 'HardwareID':'32' 2018-11-02 09:02:51.771 (Airly) 'DomoticzBuildTime':'2018-06-23 16:24:51' 2018-11-02 09:02:51.771 (Airly) 'Port':'0' 2018-11-02 09:02:51.771 (Airly) 'Mode3':'15' 2018-11-02 09:02:51.772 (Airly) 'Mode2':'i2531' 2018-11-02 09:02:51.772 (Airly) 'Mode6':'Debug' 2018-11-02 09:02:51.772 (Airly) Device count: 0 2018-11-02 09:02:51.772 (Airly) Pushing 'PollIntervalDirective' on to queue 2018-11-02 09:02:51.772 (Airly) onHeartbeat called 2018-11-02 09:02:51.772 (Airly) Processing 'PollIntervalDirective' message 2018-11-02 09:02:51.772 (Airly) Heartbeat interval set to: 20. 2018-11-02 09:02:51.157 Status: (Airly) Stop directive received. 2018-11-02 09:02:51.357 Status: (Airly) Stopping threads. 2018-11-02 09:02:51.410 Status: (Airly) Exiting work loop. 2018-11-02 09:02:51.410 Status: (Airly) Stopped. 2018-11-02 09:02:51.410 Status: (Airly) Started. 2018-11-02 09:02:51.769 Status: (Airly) Initialized version 0.3.0, author 'fisher' 2018-11-02 09:02:51.769 Status: (Airly) Entering work loop. 2018-11-02 09:02:51.772 Error: (Airly) 'onStart' failed 'AttributeError'. 2018-11-02 09:02:51.772 Error: (Airly) ----> Line 669 in /home/pi/domoticz/plugins/domoticz-airly/plugin.py, function onStart 2018-11-02 09:02:51.772 Error: (Airly) ----> Line 286 in /home/pi/domoticz/plugins/domoticz-airly/plugin.py, function onStart 2018-11-02 09:02:51.772 Error: (Airly) ----> Line 417 in /home/pi/domoticz/plugins/domoticz-airly/plugin.py, function onHeartbeat

lrybak commented 5 years ago

Cześć, dzieje się tak cały czas czy tylko okazyjnie? Czy możesz podesłać ID stacji dla której to występuje?

wh1stl3r commented 5 years ago

Cześć, podpinam się z podobnym problemem. Tym razem wersja 4.10078, instalacja zgodnie z instrukcją. Log statusu: 2018-11-26 18:47:32.653 Status: Domoticz V4.10078 (c)2012-2018 GizMoCuz 2018-11-26 18:47:32.653 Status: Build Hash: a668baf-modified, Date: 2018-10-18 08:54:38 2018-11-26 18:47:32.654 Status: Startup Path: /usr/local/domoticz/ 2018-11-26 18:47:32.820 Status: EventSystem: reset all events... 2018-11-26 18:47:33.149 Status: PluginSystem: Started, Python version '3.5.1'. 2018-11-26 18:47:33.234 Status: WebServer(HTTP) started on address: :: with port 8084 2018-11-26 18:47:33.275 Status: WebServer(SSL) started on address: :: with port 8443 2018-11-26 18:47:33.305 Status: Proxymanager started. 2018-11-26 18:47:33.336 Status: RxQueue: queue worker started... 2018-11-26 18:47:33.336 Status: TCPServer: shared server started... 2018-11-26 18:47:35.395 Status: OpenWeatherMap: Started 2018-11-26 18:47:35.415 Status: OpenWeatherMap: Started 2018-11-26 18:47:35.435 Status: (Airly - Stabłowice) Started. 2018-11-26 18:47:35.445 Status: (Airly - Skórzewo) Started. 2018-11-26 18:47:35.455 Status: (Airly - Poznań (Sierdzka 10)) Started. 2018-11-26 18:47:35.465 Status: (Airly - Poznań (Hetmańska)) Started. 2018-11-26 18:47:35.485 Status: EventSystem: reset all events... 2018-11-26 18:47:35.486 Status: EventSystem: reset all device statuses... 2018-11-26 18:47:35.915 Status: PluginSystem: Entering work loop. 2018-11-26 18:47:35.925 Status: OpenZWave: using config in: /usr/local/domoticz/Config/ 2018-11-26 18:47:35.935 Status: OpenZWave: Starting... 2018-11-26 18:47:35.935 Status: OpenZWave: Version: 1.4-3245-gdd403887-dirty 2018-11-26 18:47:36.320 Status: OpenZWave: Driver Ready 2018-11-26 18:47:39.190 Status: (Airly - Stabłowice) Initialized version 0.3.0, author 'fisher' 2018-11-26 18:47:39.213 Status: (Airly - Stabłowice) Entering work loop. 2018-11-26 18:47:39.838 Status: Python EventSystem: Initalizing event module. 2018-11-26 18:47:39.881 Status: EventSystem: Started 2018-11-26 18:47:39.883 Status: EventSystem: Queue thread started... 2018-11-26 18:47:41.430 Status: OpenZWave: Awake Nodes queried 2018-11-26 18:47:42.716 Status: (Airly - Skórzewo) Initialized version 0.3.0, author 'fisher' 2018-11-26 18:47:42.732 Status: (Airly - Skórzewo) Entering work loop. 2018-11-26 18:47:44.125 Status: (Airly - Poznań (Sierdzka 10)) Initialized version 0.3.0, author 'fisher' 2018-11-26 18:47:44.131 Status: (Airly - Poznań (Sierdzka 10)) Entering work loop. 2018-11-26 18:47:45.079 Status: (Airly - Poznań (Hetmańska)) Initialized version 0.3.0, author 'fisher' 2018-11-26 18:47:45.082 Status: (Airly - Poznań (Hetmańska)) Entering work loop. Log błędów: 2018-11-26 18:47:45.113 Error: (Airly - Stabłowice) 'onStart' failed 'AttributeError'. 2018-11-26 18:47:45.113 Error: (Airly - Stabłowice) ----> Line 669 in '/usr/local/domoticz/var/plugins/domoticz-airly/plugin.py', function onStart 2018-11-26 18:47:45.113 Error: (Airly - Stabłowice) ----> Line 286 in '/usr/local/domoticz/var/plugins/domoticz-airly/plugin.py', function onStart 2018-11-26 18:47:45.114 Error: (Airly - Stabłowice) ----> Line 417 in '/usr/local/domoticz/var/plugins/domoticz-airly/plugin.py', function onHeartbeat 2018-11-26 18:47:45.118 Error: (Airly - Skórzewo) 'onStart' failed 'AttributeError'. 2018-11-26 18:47:45.118 Error: (Airly - Skórzewo) ----> Line 669 in '/usr/local/domoticz/var/plugins/domoticz-airly/plugin.py', function onStart 2018-11-26 18:47:45.118 Error: (Airly - Skórzewo) ----> Line 286 in '/usr/local/domoticz/var/plugins/domoticz-airly/plugin.py', function onStart 2018-11-26 18:47:45.118 Error: (Airly - Skórzewo) ----> Line 417 in '/usr/local/domoticz/var/plugins/domoticz-airly/plugin.py', function onHeartbeat 2018-11-26 18:47:45.132 Error: (Airly - Poznań (Sieradzka 10)) 'onStart' failed 'AttributeError'. 2018-11-26 18:47:45.132 Error: (Airly - Poznań (Sieardzka 10)) ----> Line 669 in '/usr/local/domoticz/var/plugins/domoticz-airly/plugin.py', function onStart 2018-11-26 18:47:45.132 Error: (Airly - Poznań (Sieradzka 10)) ----> Line 286 in '/usr/local/domoticz/var/plugins/domoticz-airly/plugin.py', function onStart 2018-11-26 18:47:45.132 Error: (Airly - Poznań (Sieradzka 10)) ----> Line 417 in '/usr/local/domoticz/var/plugins/domoticz-airly/plugin.py', function onHeartbeat 2018-11-26 18:47:45.137 Error: (Airly - Poznań (Hetmańska)) 'onStart' failed 'AttributeError'. 2018-11-26 18:47:45.137 Error: (Airly - Poznań (Hetmańska)) ----> Line 669 in '/usr/local/domoticz/var/plugins/domoticz-airly/plugin.py', function onStart 2018-11-26 18:47:45.137 Error: (Airly - Poznań (Hetmańska)) ----> Line 286 in '/usr/local/domoticz/var/plugins/domoticz-airly/plugin.py', function onStart 2018-11-26 18:47:45.137 Error: (Airly - Poznań (Hetmańska)) ----> Line 417 in '/usr/local/domoticz/var/plugins/domoticz-airly/plugin.py', function onHeartbeat ID stacji: Airly - Poznań (Hetmańska) i928 Airly - Poznań (Sieradzka 10) i2096 Airly - Skórzewo i2898 Airly - Stabłowice i2709 Efekt taki, że nie widać żadnej z stacji :/ Pozdrawiam i proszę o info czy coś źle zrobiłem. Jarek

lrybak commented 5 years ago

Jarek, wpisuj id stacji numerycznie bez i