Supla<->MQTT - Instalacja

User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

ERR_ to początek nazwy funkcji. W tym co wysłałeś widzę na pierwszy rzut oka tylko ostrzeżenia. Binarka się utworzyła ?
SUPLA.... Nareszcie w domu.
User avatar
uchnast.michal
Posts: 1334
Joined: Tue Jun 04, 2019 11:37 am
Has thanked: 7 times

Post

pzygmunt wrote: Sun Apr 12, 2020 7:48 pm ERR_ to początek nazwy funkcji.
Faktycznie ;p
Wygląda, że jest komplet plików.

Code: Select all

 /home/pi/supla-core/supla-mqtt-client/Release# ./supla-mqtt-client -config ../config/config_template.yaml
Proxy się utworzył, dodałem identyfikator dostępu i w tym momencie jest błąd.

Może coś jeszcze w konfiguracji? command.yaml i state.yaml zostawiłem domyślne.

Supla-dev działa prawidłowo
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

Uruchom z gdb
SUPLA.... Nareszcie w domu.
User avatar
uchnast.michal
Posts: 1334
Joined: Tue Jun 04, 2019 11:37 am
Has thanked: 7 times

Post

Nie potrafię uruchomić z dgb:(

Code: Select all

No executable file specified.
Use the "file" or "exec-file" command.
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

apt-get install gdb
SUPLA.... Nareszcie w domu.
jack23
Posts: 5
Joined: Mon Apr 13, 2020 4:50 pm

Post

Cześć,

Jestem początkującym użytkownikiem Supli:) Potrzebuję uruchomić komunikację przez MQTT (Domoticz, Node-red itd). Świetnie, że jest już taka możliwość.

Mam jednak problem z instalacją https://github.com/SUPLA/supla-core/tre ... qtt-client

Komenda:
git clone https://github.com/SUPLA/supla-core.git
nie tworzy katalogu "supla-core/supla-mqtt-client", więc nie mogę przejść do kompilacji.

Próba wywołania:
pi@pi:~/supla-core $ git checkout -b mqtt-experimental remotes/origin/mqtt-experimental

kończy się tak:
Branch mqtt-experimental set up to track remote branch mqtt-experimental from origin.
Switched to a new branch 'mqtt-experimental'

Czy coś robię źle? DZięki za podpowiedź.

Pozdrawiam wszystkich forumowiczów,
Jacek
User avatar
uchnast.michal
Posts: 1334
Joined: Tue Jun 04, 2019 11:37 am
Has thanked: 7 times

Post

pzygmunt wrote: Mon Apr 13, 2020 4:30 pm apt-get install gdb
mam zainstalowany gdb, lecz gdy go uruchomię mam w wierszu (dgb) to nie wiem jak z jego poziomu uruchomić /home/pi/supla-core/supla-mqtt-client/Release/supla-mqtt-client

Code: Select all

(gdb) run file /home/pi/supla-core/supla-mqtt-client/Release/supla-mqtt-client
Starting program:  file /home/pi/supla-core/supla-mqtt-client/Release/supla-mqtt-client
No executable file specified.
Use the "file" or "exec-file" command.
Chyba, że mam skompilować w dgb?;p Wynik dodałem w załączniku.
W mqttexplorerze widzę moją suplę i wszystkie urządzenia lecz błąd nadal występuje.
Z góry dzięki za pomoc i za cierpliwość do mnie:)

EDIT
Udało się!
Zmieniłem protocol_version na 8 i gitara :)
You do not have the required permissions to view the files attached to this post.
Last edited by uchnast.michal on Mon Apr 13, 2020 7:44 pm, edited 4 times in total.
User avatar
uchnast.michal
Posts: 1334
Joined: Tue Jun 04, 2019 11:37 am
Has thanked: 7 times

Post

jack23 wrote: Mon Apr 13, 2020 4:59 pm Próba wywołania:
pi@pi:~/supla-core $ git checkout -b mqtt-experimental remotes/origin/mqtt-experimental

kończy się tak:
Branch mqtt-experimental set up to track remote branch mqtt-experimental from origin.
Switched to a new branch 'mqtt-experimental'

Code: Select all

cd /home/pi
git clone https://github.com/SUPLA/supla-core.git -b mqtt-experimental
cd supla-core
cd supla-mqtt-client/Release
make all
U mnie tak poszło
jack23
Posts: 5
Joined: Mon Apr 13, 2020 4:50 pm

Post

uchnast.michal wrote: Mon Apr 13, 2020 5:16 pm git clone https://github.com/SUPLA/supla-core.git -b mqtt-experimental
Dzięki! Ruszyło. j
User avatar
uchnast.michal
Posts: 1334
Joined: Tue Jun 04, 2019 11:37 am
Has thanked: 7 times

Post

jack23 wrote: Mon Apr 13, 2020 5:22 pm
uchnast.michal wrote: Mon Apr 13, 2020 5:16 pm git clone https://github.com/SUPLA/supla-core.git -b mqtt-experimental
Dzięki! Ruszyło. j
Na czym uruchamiasz, jeżeli Raspberry pi zero to pewnie teraz zatrzymasz się na tym co ja :)

Return to “MQTT”