Domoticz 0.1.0

magx2
Posty: 351
Rejestracja: śr maja 17, 2017 1:27 pm
Kontakt:

Cześć!

Mamy już pierwszą wersję pluginu dla Domoticza! https://github.com/SUPLA/supla-domoticz

W tej chwili wspierane są tylko światła i przełączniki. Dajcie znać co trzeba zaimplementować w następnej kolejności.
Java 4 Life :twisted:

API Java
GUI
Server Mock

andras
Posty: 463
Rejestracja: pt gru 30, 2016 5:51 pm

Witam

Co może być przyczyną tego ?

pi@raspberrypi:~/domoticz/plugins/supla-domoticz $ pip3 install --requirement requirements.txt --target
-bash: pip3: command not found
magx2
Posty: 351
Rejestracja: śr maja 17, 2017 1:27 pm
Kontakt:

Nie masz pipa ( :lol: ). Zainstaluje go tak:

Kod: Zaznacz cały

sudo apt-get -y install python3-pip
PS
Jaki system? RPi?
Java 4 Life :twisted:

API Java
GUI
Server Mock

isom
Posty: 48
Rejestracja: sob paź 27, 2018 6:09 am

U mnie na Raspi ta wtyczka nie startuje
RBpi najnowszy kernel z maja 2019
domoticz v 4,9700
Python 3.5.3
Wtyczki Pythona takie jak Shelly , Pi Monitor działają

Supla nie stratuje
logi
2019-07-08 18:25:06.674 Status: PluginSystem: Started, Python version '3.5.3'.
2019-07-08 18:25:06.808 Status: WebServer(HTTP) started on address: :: with port 8084
2019-07-08 18:25:06.829 Status: WebServer(SSL) started on address: :: with port 443
2019-07-08 18:25:06.833 Status: Proxymanager started.
2019-07-08 18:25:06.835 Status: Camera: settings (re)loaded
2019-07-08 18:25:06.844 Status: RxQueue: queue worker started...
2019-07-08 18:25:06.845 Status: TCPServer: shared server started...
2019-07-08 18:25:08.846 Status: (Monitoring) Started.
2019-07-08 18:25:08.846 Status: (Shelly) Started.
2019-07-08 18:25:08.847 Status: EventSystem: reset all events...
2019-07-08 18:25:08.848 Status: EventSystem: reset all device statuses...
2019-07-08 18:25:08.877 Status: PluginSystem: Entering work loop.
2019-07-08 18:25:09.967 (Monitoring) Debug logging mask set to: NONE
2019-07-08 18:25:09.187 Status: (Monitoring) Entering work loop.
2019-07-08 18:25:09.188 Status: (Monitoring) Initialized version 2.1.0, author 'Xorfor'
2019-07-08 18:25:09.628 Status: (Shelly) Entering work loop.
2019-07-08 18:25:09.628 Status: (Shelly) Initialized version 0.3.1
2019-07-08 18:25:09.847 Status: MQTT: Connecting to localhost:1883
2019-07-08 18:25:09.949 Status: Python EventSystem: Initalizing event module.
2019-07-08 18:25:09.950 Status: EventSystem: Started
2019-07-08 18:25:09.950 Status: EventSystem: Queue thread started...
2019-07-08 18:25:10.013 Status: MQTT: connected to: localhost:1883
2019-07-08 18:25:10.113 Status: MQTT: Subscribed
2019-07-08 18:28:22.777 Status: (Supla ) Started.
2019-07-08 18:28:23.126 Error: (supla) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/supla-domoticz/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2019-07-08 18:28:23.126 Error: (Supla ) Module Import failed, exception: 'ImportError'
2019-07-08 18:28:23.126 Error: (Supla ) Module Import failed: ' Name: requests'
2019-07-08 18:28:23.127 Error: (Supla ) Error Line details not available.
Awatar użytkownika
vojtek
Posty: 48
Rejestracja: wt maja 09, 2017 5:23 pm
Lokalizacja: Chełm

pi@Domoticz:~/domoticz/plugins/supla-domoticz $ pip3 install --requirement requirements.txt --target

Usage:
pip install [options] <requirement specifier> [package-index-options] ...
pip install [options] -r <requirements file> [package-index-options] ...
pip install [options] [-e] <vcs project url> ...
pip install [options] [-e] <local project path> ...
pip install [options] <archive url/path> ...

--target option requires 1 argument

W mnie wyświetla się coś takiego .
elektryk nie saper myli się kilka razy :)
Awatar użytkownika
vojtek
Posty: 48
Rejestracja: wt maja 09, 2017 5:23 pm
Lokalizacja: Chełm

2019-07-08 18:28:53.042 Status: (Serwer Supla) Stop directive received.
2019-07-08 18:28:53.042 Status: (Serwer Supla) Exiting work loop.
2019-07-08 18:28:53.343 Status: (Serwer Supla) Stopping threads.
2019-07-08 18:28:53.343 Status: (Serwer Supla) Stopped.
2019-07-08 18:28:53.343 Status: (Serwer Supla) Started.
2019-07-08 18:28:54.807 Status: (Serwer Supla) Entering work loop.
2019-07-08 18:28:54.808 Status: (Serwer Supla) Initialized version 0.1.0, author 'Supla Team'
2019-07-08 18:28:55.249 Error: (Serwer Supla) 'onStart' failed 'KeyError'.
2019-07-08 18:28:55.249 Error: (Serwer Supla) ----> Line 218 in '/home/pi/domoticz/plugins/supla-domoticz/plugin.py', function onStart
2019-07-08 18:28:55.249 Error: (Serwer Supla) ----> Line 92 in '/home/pi/domoticz/plugins/supla-domoticz/plugin.py', function onStart
2019-07-08 18:28:55.249 Error: (Serwer Supla) ----> Line 97 in '/home/pi/domoticz/plugins/supla-domoticz/plugin.py', function create_devices
2019-07-08 18:29:34.842 (Serwer Supla) Updating devices...
2019-07-08 18:30:14.850 (Serwer Supla) Updating devices...
2019-07-08 18:30:54.841 (Serwer Supla) Updating devices...

A tak wygląda log w domoticzu
elektryk nie saper myli się kilka razy :)
magx2
Posty: 351
Rejestracja: śr maja 17, 2017 1:27 pm
Kontakt:

@isom
Nie zrobiles tego

Kod: Zaznacz cały

pip3 install --requirement requirements.txt --target .
@vojtek
Tu jest kropka na koncu

Kod: Zaznacz cały

pip3 install --requirement requirements.txt --target .
Java 4 Life :twisted:

API Java
GUI
Server Mock

Awatar użytkownika
vojtek
Posty: 48
Rejestracja: wt maja 09, 2017 5:23 pm
Lokalizacja: Chełm

Dzięki za podpowiedź ale dalej mam jakiś błąd :
2019-07-08 20:34:32.062 Error: (Serwer Supla) 'onStart' failed 'KeyError'.
2019-07-08 20:34:32.062 Error: (Serwer Supla) ----> Line 218 in '/home/pi/domoticz/plugins/supla-domoticz/plugin.py', function onStart
2019-07-08 20:34:32.062 Error: (Serwer Supla) ----> Line 92 in '/home/pi/domoticz/plugins/supla-domoticz/plugin.py', function onStart
2019-07-08 20:34:32.062 Error: (Serwer Supla) ----> Line 97 in '/home/pi/domoticz/plugins/supla-domoticz/plugin.py', function create_devices
2019-07-08 20:35:11.626 (Serwer Supla) Updating devices...
2019-07-08 20:35:51.612 (Serwer Supla) Updating devices...

Supla jest w urzadzeniach dodaje token ale nie dodaje urzadzeń. Chyba przy instalacji namieszałem
elektryk nie saper myli się kilka razy :)
isom
Posty: 48
Rejestracja: sob paź 27, 2018 6:09 am

@vojtek włącz debug wtyczki masz to opisane na github , wygląda że mamy te same błędy

2019-07-08 20:53:29.066 Status: (Moduły Supla) Started.
2019-07-08 20:53:31.077 (Moduły Supla) onStart called | OAuth Token ZjI1NzRlMjNiNmUwM2M3NmI2YjAzMWUwYzNmNTZkMmU5YzI0ZDMxYjRmNDhlM2NmMjc0MTBiYzNhxxxxxxxxxxxnIxLnN1cGxhLm9yZw== | Refresh Time=30
2019-07-08 20:53:31.078 (Moduły Supla) 'HomeFolder':'/home/pi/domoticz/plugins/supla-domoticz/'
2019-07-08 20:53:31.078 (Moduły Supla) 'Key':'supla'
2019-07-08 20:53:31.078 (Moduły Supla) 'Name':'Moduły Supla'
2019-07-08 20:53:31.078 (Moduły Supla) 'Author':'Supla Team'
2019-07-08 20:53:31.078 (Moduły Supla) 'Mode2':'30'
2019-07-08 20:53:31.078 (Moduły Supla) 'DomoticzVersion':'4.9700'
2019-07-08 20:53:31.078 (Moduły Supla) 'HardwareID':'14'
2019-07-08 20:53:31.078 (Moduły Supla) 'DomoticzHash':'a3a45906'
2019-07-08 20:53:31.078 (Moduły Supla) 'Port':'0'
2019-07-08 20:53:31.078 (Moduły Supla) 'Version':'0.1.0'
2019-07-08 20:53:31.078 (Moduły Supla) 'Mode1':'ZjI1NzRlMjNiNmUwM2M3NmI2YjAzMWUwYzNmNTZkMmU5YzI0ZDMxYjRmNDhlM2NmMjc0MTBiYzNhYxxxxxxxxxxxnIxLnN1cGxhLm9yZw=='
2019-07-08 20:53:31.078 (Moduły Supla) 'DomoticzBuildTime':'2018-06-23 16:24:51'
2019-07-08 20:53:31.078 (Moduły Supla) Device count: 0
2019-07-08 20:53:31.079 (Moduły Supla) api> get(https://svr1.supla.org/api/v2.3.0/iodevices)
2019-07-08 20:53:31.023 Status: (Moduły Supla) Initialized version 0.1.0, author 'Supla Team'
2019-07-08 20:53:31.022 Status: (Moduły Supla) Entering work loop.
2019-07-08 20:53:31.693 Error: (Moduły Supla) 'onStart' failed 'KeyError'.
2019-07-08 20:53:31.693 Error: (Moduły Supla) ----> Line 218 in /home/pi/domoticz/plugins/supla-domoticz/plugin.py, function onStart
2019-07-08 20:53:31.693 Error: (Moduły Supla) ----> Line 92 in /home/pi/domoticz/plugins/supla-domoticz/plugin.py, function onStart
2019-07-08 20:53:31.693 Error: (Moduły Supla) ----> Line 97 in /home/pi/domoticz/plugins/supla-domoticz/plugin.py, function create_devices
2019-07-08 20:53:40.563 (Moduły Supla) onHeartbeat called
2019-07-08 20:53:50.538 (Moduły Supla) onHeartbeat called
2019-07-08 20:54:00.535 (Moduły Supla) onHeartbeat called
2019-07-08 20:54:10.560 (Moduły Supla) onHeartbeat called
2019-07-08 20:54:10.560 (Moduły Supla) Updating devices...
2019-07-08 20:54:20.585 (Moduły Supla) onHeartbeat called
2019-07-08 20:54:30.556 (Moduły Supla) onHeartbeat called

jeszcze dorzucę fotkę zawartości pluginu https://drive.google.com/open?id=17rrv6 ... 4GwodFUEsh
magx2
Posty: 351
Rejestracja: śr maja 17, 2017 1:27 pm
Kontakt:

Fuck! Juz wiem o co kaman! Jest blad w kodzie. Long story short, dajcie mi czas to naprawie ;)
Java 4 Life :twisted:

API Java
GUI
Server Mock

ODPOWIEDZ

Wróć do „Domoticz”