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

Po sklonowaniu pluginu i dodaniu urządzenia miałem brak dostępu do web panelu. #4

Closed xury77 closed 5 years ago

xury77 commented 6 years ago

Witam. Wykonałem wszystko według instrukcji i po tym od razu nie miałem dostępu do panelu domoticza. Restarty domoticza i raspberry nie pomagały. Dopiero fizyczne usuniecie katalogu z plugins ożywiło domoticza. Nie wiem co źle wykonałem. Pozdrawiam Sebastian

lrybak commented 6 years ago

Cześć. Czy to była pierwsza instalacja czy aktualizacja? Jakiej wersji domoticza używasz?

xury77 commented 6 years ago

Cześć. To była pierwsza instalacja. Na wersji 4.9700. Po sklonowaniu repo z git'a i restarcie wybrałem domoticz-airly następnie wpisałem Api key i id czujnika w moim mieście (24) i zatwierdziłem. Chwilę po tym otrzymałem komunikat o braku dostępu do urządzeń. A potem już był brak dostępu do wszystkiego. Operację powtarzałem kilka razy, bo myślałem, że źle wpisywałem ID. Jednak jak bym nie pisał to zawsze miałem ten sam efekt. Domoticz na raspbianie jessie. Mam zainstalowany python 2.7.9 oraz python 3.4.2

lrybak commented 6 years ago

Masz może logi domoticza? Jeśli nie to czy mógłbyś spróbować to powtórzyć i zebrać logi?

DarekLin commented 5 years ago

Część.
Bardzo interesujący plugin. Byłoby miło go uruchomić (; Ale mam podobny objaw co kolega. Proba załączenia debagowania plugina zawiesza całkowicie domoticza. Konieczne było usuniecie plugina. Nowa instalacja na stabilnej a następnie beta wersji 4.10239 na rspi3 z ubuntu 16.04 W logu domoticza bez właczonego debugowania widzę coś takiego : Error: airly2 hardware (6) thread seems to have ended unexpectedly

kofec commented 5 years ago

o odpal go z palca i wrzuć logi - od samego startu. U mnie np to wyglda tak:

`root@OpenWrtRPiKotlownia:~# /usr/bin/domoticz -noupdates -approot /usr/share/domoticz/ -debuglevel -syslog daemon -userdata /var/lib/domoticz/ -sslwww 0
2018-11-29 20:56:14.134  Status: Domoticz V4.9700 (c)2012-2018 GizMoCuz
2018-11-29 20:56:14.136  Status: Build Hash: b97777b, Date: 2018-06-23 16:18:06
2018-11-29 20:56:14.138  Status: Startup Path: /usr/share/domoticz/
domoticz: Domoticz is starting up....
domoticz: Domoticz running...
domoticz: Sunrise: 07:14:00 SunSet: 15:43:00
2018-11-29 20:56:14.383  Sunrise: 07:14:00 SunSet: 15:43:00
domoticz: Day length: 08:29:00 Sun at south: 11:05:00
2018-11-29 20:56:14.386  Day length: 08:29:00 Sun at south: 11:05:00
domoticz: Civil twilight start: 06:37:00 Civil twilight end: 16:20:00
2018-11-29 20:56:14.389  Civil twilight start: 06:37:00 Civil twilight end: 16:20:00
domoticz: Nautical twilight start: 05:56:00 Nautical twilight end: 17:00:00
2018-11-29 20:56:14.392  Nautical twilight start: 05:56:00 Nautical twilight end: 17:00:00
domoticz: Astronomical twilight start: 05:18:00 Astronomical twilight end: 17:39:00
2018-11-29 20:56:14.395  Astronomical twilight start: 05:18:00 Astronomical twilight end: 17:39:00
domoticz: EventSystem: reset all events...
2018-11-29 20:56:14.398  Status: EventSystem: reset all events...
domoticz: PluginSystem: Started, Python version '3.6.5'.
2018-11-29 20:56:15.146  Status: PluginSystem: Started, Python version '3.6.5'.
domoticz: Active notification Subsystems: email, pushover (2/13)
2018-11-29 20:56:15.216  Active notification Subsystems: email, pushover (2/13)
domoticz: WebServer(HTTP) started on address: :: with port 8080
2018-11-29 20:56:15.223  Status: WebServer(HTTP) started on address: :: with port 8080
domoticz: Proxymanager started.
2018-11-29 20:56:15.236  Status: Proxymanager started.
domoticz: Starting shared server on: :::6144
2018-11-29 20:56:15.251  Starting shared server on: :::6144
domoticz: RxQueue: queue worker started...
2018-11-29 20:56:15.256  Status: RxQueue: queue worker started...
domoticz: TCPServer: shared server started...
2018-11-29 20:56:15.258  Status: TCPServer: shared server started...
domoticz: Hardware Monitor: Started
2018-11-29 20:56:17.264  Status: Hardware Monitor: Started
domoticz: Sysfs GPIO: Startup - polling:yes interrupts:no debounce:50msec inputs:1 outputs:6
2018-11-29 20:56:17.353  Status: Sysfs GPIO: Startup - polling:yes interrupts:no debounce:50msec inputs:1 outputs:6
domoticz: WOL: Started
2018-11-29 20:56:17.357  Status: WOL: Started
domoticz: Kodi: Started
2018-11-29 20:56:17.360  Status: Kodi: Started
domoticz: (AirlyWyzynna) Started.
2018-11-29 20:56:17.365  Status: (AirlyWyzynna) Started.
domoticz: (Enigma2Black41) Started.
2018-11-29 20:56:17.368  Status: (Enigma2Black41) Started.
domoticz: (AirPurifier2) Started.
2018-11-29 20:56:17.370  Status: (AirPurifier2) Started.
domoticz: (LanControlerPietro) Started.
2018-11-29 20:56:17.377  Status: (LanControlerPietro) Started.
domoticz: (LanControlerPiwnica) Started.
2018-11-29 20:56:17.381  Status: (LanControlerPiwnica) Started.
domoticz: Pinger: Started
2018-11-29 20:56:17.386  Status: Pinger: Started
domoticz: EventSystem: reset all events...
2018-11-29 20:56:17.390  Status: EventSystem: reset all events...
domoticz: EventSystem: reset all device statuses...
2018-11-29 20:56:17.398  Status: EventSystem: reset all device statuses...
domoticz: PluginSystem: Entering work loop.
2018-11-29 20:56:17.425  Status: PluginSystem: Entering work loop.
domoticz: Kodi: (Kodi Salon) Starting thread.
2018-11-29 20:56:17.477  Kodi: (Kodi Salon) Starting thread.
domoticz: Kodi: Starting I/O service thread.
2018-11-29 20:56:17.584  Kodi: Starting I/O service thread.
domoticz: Domoticz: TCP connected to: 192.168.x.xx:6144
2018-11-29 20:56:18.365  Status: Domoticz: TCP connected to: 192.168.xx.xx:6144
domoticz: Domoticz: TCP connected to: 192.168.x.xx:6144
2018-11-29 20:56:18.367  Status: Domoticz: TCP connected to: 192.168.xx.xx:6144

domoticz: (AudiculaPiPoddasze) Temp (Pokoj_Ali_temp)
2018-11-29 20:56:21.458  (AudiculaPiPoddasze) Temp (Pokoj_Ali_temp)
domoticz: (AudiculaPiPoddasze) Temp (Sypialnia_temp)

domoticz: (AirlyWyzynna) Initialized version 0.2.2, author 'fisher'
2018-11-29 20:56:23.429  Status: (AirlyWyzynna) Initialized version 0.2.2, author 'fisher'
domoticz: (AirlyWyzynna) Entering work loop.
2018-11-29 20:56:23.445  Status: (AirlyWyzynna) Entering work loop.
....
2018-11-29 20:56:24.082  Status: Python EventSystem: Initalizing event module.
domoticz: EventSystem: Queue thread started...
2018-11-29 20:56:24.096  Status: EventSystem: Queue thread started...
domoticz: EventSystem: Started
2018-11-29 20:56:24.102  Status: EventSystem: Started
domoticz: Satel Integra: receive error: other error
......
domoticz: (Enigma2Black41) Initialized version 3.0.0, author 'kofec'
2018-11-29 20:56:29.103  Status: (Enigma2Black41) Initialized version 3.0.0, author 'kofec'
domoticz: (Enigma2Black41) Entering work loop.
2018-11-29 20:56:29.107  Status: (Enigma2Black41) Entering work loop.
domoticz: (AudiculaPiPoddasze) Temp (Unknown)
2018-11-29 20:56:32.367  (AudiculaPiPoddasze) Temp (Unknown)
domoticz: (AudiculaPiPoddasze) General/Percentage ()
2018-11-29 20:56:32.373  (AudiculaPiPoddasze) General/Percentage ()
domoticz: (AudiculaPiKinowa) Temp (Unknown)
2018-11-29 20:56:35.294  (AudiculaPiKinowa) Temp (Unknown)
domoticz: (AirPurifier2) Initialized version 0.1.1, author 'kofec'
2018-11-29 20:56:37.597  Status: (AirPurifier2) Initialized version 0.1.1, author 'kofec'
domoticz: (AirPurifier2) Entering work loop.
2018-11-29 20:56:37.603  Status: (AirPurifier2) Entering work loop.
domoticz: (LanControlerPietro) Initialized version 2.0.0, author 'kofec'
2018-11-29 20:56:42.291  Status: (LanControlerPietro) Initialized version 2.0.0, author 'kofec'
domoticz: (LanControlerPietro) Entering work loop.
2018-11-29 20:56:42.305  Status: (LanControlerPietro) Entering work loop.
domoticz: (AudiculaPiKinowa) General/Percentage ()
2018-11-29 20:56:45.294  (AudiculaPiKinowa) General/Percentage ()
domoticz: (LanControlerPiwnica) Initialized version 2.0.0, author 'kofec'
2018-11-29 20:56:46.901  Status: (LanControlerPiwnica) Initialized version 2.0.0, author 'kofec'
domoticz: (LanControlerPiwnica) Entering work loop.
2018-11-29 20:56:46.905  Status: (LanControlerPiwnica) Entering work loop.
domoticz: (AirlyWyzynna) Debug logging mask set to: NONE
2018-11-29 20:56:46.991  (AirlyWyzynna) Debug logging mask set to: NONE
domoticz: (AirlyWyzynna) Rozpoczynanie aktualizacji urządzeń
2018-11-29 20:56:47.553  (AirlyWyzynna) Rozpoczynanie aktualizacji urządzeń
domoticz: (AirlyWyzynna) Aktualizacja unit=9; nValue=0; sValue=Airly - Wyżynna 30, Kraków<br/>Sponsor stacji: KrakówOddycha
2018-11-29 20:56:47.557  (AirlyWyzynna) Aktualizacja unit=9; nValue=0; sValue=Airly - Wyżynna 30, Kraków<br/>Sponsor stacji: KrakówOddycha
domoticz: (Satel) General/Alert (Ala)
2018-11-29 20:56:47.759  (Satel) General/Alert (Ala)
domoticz: (AirlyWyzynna) Rozpoczynanie aktualizacji urządzeń
2018-11-29 20:56:48.227  (AirlyWyzynna) Rozpoczynanie aktualizacji urządzeń
domoticz: (AirlyWyzynna) Aktualizacja unit=9; nValue=0; sValue=Airly - Wyżynna 30, Kraków<br/>Sponsor stacji: KrakówOddycha
2018-11-29 20:56:48.231  (AirlyWyzynna) Aktualizacja unit=9; nValue=0; sValue=Airly - Wyżynna 30, Kraków<br/>Sponsor stacji: KrakówOddycha
domoticz: (Enigma2Black41) Connecting to: 192.168.x.xx:80
2018-11-29 20:56:48.262  (Enigma2Black41) Connecting to: 192.168.x.xx:80
domoticz: (Satel) General/Alert (Ala)
2018-11-29 20:56:48.806  (Satel) General/Alert (Ala)
domoticz: (Enigma2Black41) Connected to Enigma2: GOS_2016-09-11 - Branch: master on model: ADB 5800SX
2018-11-29 20:56:48.908  (Enigma2Black41) Connected to Enigma2: GOS_2016-09-11 - Branch: master on model: ADB 5800SX
domoticz: (Enigma2Black41) Update 40:'40' (Enigma2Black41 - Power)
2018-11-29 20:56:48.951  (Enigma2Black41) Update 40:'40' (Enigma2Black41 - Power)
domoticz: (AirPurifier2) Debug logging mask set to: NONE
2018-11-29 20:56:48.988  (AirPurifier2) Debug logging mask set to: NONE
domoticz: (AirPurifier2) Device UNIT_MODE_CONTROL with id 10 exist
2018-11-29 20:56:48.993  (AirPurifier2) Device UNIT_MODE_CONTROL with id 10 exist
domoticz: (AirPurifier2) Device UNIT_MODE_CONTROL with id 11 exist
2018-11-29 20:56:48.996  (AirPurifier2) Device UNIT_MODE_CONTROL with id 11 exist
domoticz: (AirPurifier2) Device UNIT_MOTOR_SPEED_FAVORITE with id 12 exist
2018-11-29 20:56:48.999  (AirPurifier2) Device UNIT_MOTOR_SPEED_FAVORITE with id 12 exist
`
kofec commented 5 years ago

widze ze jest tez flaga debug. Mozna by ja wlaczyc

DarekLin commented 5 years ago

bez palca (; log domoticza po starcie wyglada tak:

2018-11-29 21:02:46.151 Status: Domoticz V4.10239 (c)2012-2018 GizMoCuz 2018-11-29 21:02:46.151 Status: Build Hash: 33192317, Date: 2018-11-29 17:22:23 2018-11-29 21:02:46.151 Status: System: Raspberry Pi 2018-11-29 21:02:46.152 Status: Startup Path: /home/darlin/domoticz/ 2018-11-29 21:02:46.899 Status: EventSystem: reset all events... 2018-11-29 21:02:46.990 Status: PluginSystem: Started, Python version '3.5.2'. 2018-11-29 21:02:47.061 Starting shared server on: :::6144 2018-11-29 21:02:47.001 Status: WebServer(HTTP) started on address: :: with port 8085 2018-11-29 21:02:47.011 Status: WebServer(SSL) started on address: :: with port 443 2018-11-29 21:02:47.012 Status: Proxymanager started. 2018-11-29 21:02:47.061 Status: TCPServer: shared server started... 2018-11-29 21:02:47.061 Status: RxQueue: queue worker started... 2018-11-29 21:02:49.067 OnkyoAVTCP: Send NRIQSTN 2018-11-29 21:02:49.177 OnkyoAVTCP: Send SLIQSTN 2018-11-29 21:02:49.177 OnkyoAVTCP: Send PWRQSTN 2018-11-29 21:02:49.177 OnkyoAVTCP: Send MVLQSTN 2018-11-29 21:02:49.177 OnkyoAVTCP: Send SLZQSTN 2018-11-29 21:02:49.177 OnkyoAVTCP: Send ZPWQSTN 2018-11-29 21:02:49.177 OnkyoAVTCP: Send ZVLQSTN 2018-11-29 21:02:49.177 OnkyoAVTCP: Send HDOQSTN 2018-11-29 21:02:49.228 OnkyoAVTCP: Packet received: 6 SLI01 2018-11-29 21:02:49.262 OnkyoAVTCP: Packet received: 6 PWR01 2018-11-29 21:02:49.262 OnkyoAVTCP: Packet received: 6 MVL1D 2018-11-29 21:02:49.266 (Onkyo) Light/Switch (Master power) 2018-11-29 21:02:49.273 OnkyoAVTCP: Packet received: 6 SLZ2B 2018-11-29 21:02:49.295 OnkyoAVTCP: Packet received: 6 ZPW00 2018-11-29 21:02:49.299 (Onkyo) Light/Switch (Zone 2 power) 2018-11-29 21:02:49.307 OnkyoAVTCP: Packet received: 7 ZVLN/A 2018-11-29 21:02:49.326 OnkyoAVTCP: Packet received: 6 HDO01 2018-11-29 21:02:49.062 Status: Wunderground: Worker started... 2018-11-29 21:02:49.063 Status: Pinger: Worker started... 2018-11-29 21:02:49.063 Status: EventSystem: reset all events... 2018-11-29 21:02:49.063 Status: EventSystem: reset all device statuses... 2018-11-29 21:02:49.067 Status: OnkyoAVTCP: connected to: 192.168.10.86:60128 2018-11-29 21:02:49.177 Status: Python EventSystem: Initalizing event module. 2018-11-29 21:02:49.177 Status: EventSystem: Started 2018-11-29 21:02:49.178 Status: EventSystem: Queue thread started... 2018-11-29 21:02:49.400 Status: PluginSystem: Entering work loop. 2018-11-29 21:02:59.391 (WU) Temp + Humidity + Baro (Barometr) 2018-11-29 21:02:59.395 (WU) Wind (Wiatr) 2018-11-29 21:02:59.398 (WU) UV (UV) 2018-11-29 21:02:59.404 (WU) Rain (Deszcz) 2018-11-29 21:02:59.408 (WU) General/Solar Radiation (Solar Radiation) 2018-11-29 21:04:57.778 Status: (airly) Started. 2018-11-29 21:06:04.022 Error: airly hardware (6) thread seems to have ended unexpectedly 2018-11-29 21:06:18.025 Error: airly hardware (6) thread seems to have ended unexpectedly 2018-11-29 21:06:32.028 Error: airly hardware (6) thread seems to have ended unexpectedly 2018-11-29 21:06:46.031 Error: airly hardware (6) thread seems to have ended unexpectedly 2018-11-29 21:07:00.033 Error: airly hardware (6) thread seems to have ended unexpectedly 2018-11-29 21:07:14.036 Error: airly hardware (6) thread seems to have ended unexpectedly 2018-11-29 21:07:28.039 Error: airly hardware (6) thread seems to have ended unexpectedly 2018-11-29 21:07:42.041 Error: airly hardware (6) thread seems to have ended unexpectedly 2018-11-29 21:07:56.044 Error: airly hardware (6) thread seems to have ended unexpectedly 2018-11-29 21:08:10.047 Error: airly hardware (6) thread seems to have ended unexpectedly 2018-11-29 21:08:24.049 Error: airly hardware (6) thread seems to have ended unexpectedly

DarekLin commented 5 years ago

log ze startu domoticza z cli wygląda podobnie

lrybak commented 5 years ago

Namnożyło się trochę wątków. Jeśli problem się powtarza proszę spróbować usunąć stację i dodać ponownie. Jeśli nadal będą występować problemy proszę o podanie nr wersji Domoticz oraz id stacji