Supla virtual device MQTT

Beku
Posts: 453
Joined: Tue Nov 06, 2018 1:49 pm

Post

[unix_http_server]
file=/var/run/supervisor.sock ; (the path to the socket file)
chmod=0770
chown=root:pi

U mnie to wygląda tak i działa...
andras
Posts: 636
Joined: Fri Dec 30, 2016 5:51 pm
Has thanked: 2 times
Been thanked: 4 times

Post

A u mnie nie chce :(
Beku
Posts: 453
Joined: Tue Nov 06, 2018 1:49 pm

Post

andras wrote: Mon Feb 24, 2020 8:53 pm A u mnie nie chce :(
Spróbuj coś poczytać. Nie tylko ty masz taki problem:

Code: Select all


https://github.com/Supervisor/supervisor/issues/173

andras
Posts: 636
Joined: Fri Dec 30, 2016 5:51 pm
Has thanked: 2 times
Been thanked: 4 times

Post

Z tym błędem ale supla-virtual-device się uruchamia automatycznie :)
szym3k
Posts: 270
Joined: Mon May 15, 2017 10:32 am

Post

Beku wrote: Mon Feb 24, 2020 6:25 pm dodałem trochę dodatkowych logów.

Proszę wykonaj:

Code: Select all


cd src/supla-dev/Debug
git pull
make all

i uruchom ponownie program. Daj znać co masz w logach

Code: Select all

suplalpine:/home/supla/supla-virtual-device# ./supla-virtual-device
SUPLA-VIRTUAL-DEVICE v1.0.1
DEBUG[1582624590.303039] searching channel with number 0
DEBUG[1582624590.303058] adding channel with number 0
DEBUG[1582624590.303068] adding channel with number 0
DEBUG[1582624590.303082] searching channel with number 0
DEBUG[1582624590.303094] c_number: 0
DEBUG[1582624590.303155] Protocol v12
DEBUG[1582624590.303168] Starting...
DEBUG[1582624590.303342] Device GUID: DBCD8AA0E51E8A513AB1E0AAD7BDC16D
DEBUG[1582624590.303507] initializing channels...
DEBUG[1582624590.303539] reading channel_0 value from file /home/supla/supla-filesensors/temp.txt
DEBUG[1582624590.303593] sending value of channel_0 to supla server...
Segmentation fault
suplalpine:/home/supla/supla-virtual-device# cd ..
suplalpine:/home/supla# cd supla-filesensors
suplalpine:/home/supla/supla-filesensors# cat temp.txt
11.94

Edit:
sprawdziłem jeszcze na publicznej chmurze - jest to samo.
Nie wiem co mogę jeszcze ew. sprawdzić.
Beku
Posts: 453
Joined: Tue Nov 06, 2018 1:49 pm

Post

szym3k wrote: Tue Feb 25, 2020 9:59 am
Beku wrote: Mon Feb 24, 2020 6:25 pm dodałem trochę dodatkowych logów.

Proszę wykonaj:

Code: Select all


cd src/supla-dev/Debug
git pull
make all

i uruchom ponownie program. Daj znać co masz w logach

Code: Select all

suplalpine:/home/supla/supla-virtual-device# ./supla-virtual-device
SUPLA-VIRTUAL-DEVICE v1.0.1
DEBUG[1582624590.303039] searching channel with number 0
DEBUG[1582624590.303058] adding channel with number 0
DEBUG[1582624590.303068] adding channel with number 0
DEBUG[1582624590.303082] searching channel with number 0
DEBUG[1582624590.303094] c_number: 0
DEBUG[1582624590.303155] Protocol v12
DEBUG[1582624590.303168] Starting...
DEBUG[1582624590.303342] Device GUID: DBCD8AA0E51E8A513AB1E0AAD7BDC16D
DEBUG[1582624590.303507] initializing channels...
DEBUG[1582624590.303539] reading channel_0 value from file /home/supla/supla-filesensors/temp.txt
DEBUG[1582624590.303593] sending value of channel_0 to supla server...
Segmentation fault
suplalpine:/home/supla/supla-virtual-device# cd ..
suplalpine:/home/supla# cd supla-filesensors
suplalpine:/home/supla/supla-filesensors# cat temp.txt
11.94

Edit:
sprawdziłem jeszcze na publicznej chmurze - jest to samo.
Nie wiem co mogę jeszcze ew. sprawdzić.
zrób jeszcze raz to samo. Poprawiłem coś.
szym3k
Posts: 270
Joined: Mon May 15, 2017 10:32 am

Post

Beku wrote: Tue Feb 25, 2020 10:12 am zrób jeszcze raz to samo. Poprawiłem coś.

Bingo! Działa! Świetna robota!

Code: Select all

DEBUG[1582629195.500437] searching channel with number 0
DEBUG[1582629195.500460] adding channel with number 0
DEBUG[1582629195.500481] adding channel with number 0
DEBUG[1582629195.500499] searching channel with number 0
DEBUG[1582629195.500509] c_number: 0
DEBUG[1582629195.500579] Protocol v12
DEBUG[1582629195.500597] Starting...
DEBUG[1582629195.500755] Device GUID: DBCD8AA0E51E8A513AB1E0AAD7BDC16D
DEBUG[1582629195.502144] initializing channels...
DEBUG[1582629195.502171] reading channel_0 value from file /home/supla/supla-filesensors/temp.txt
DEBUG[1582629195.502220] sending value of channel_0 to supla server...
DEBUG[1582629195.502283] initializing server connection...
DEBUG[1582629195.502367] entering main loop...
INFO[1582629195.502402] SSL version: OpenSSL 1.1.1d  10 Sep 2019
DEBUG[1582629195.505744] Connecting...
DEBUG[1582629195.512243] Connected with ECDHE-RSA-AES256-GCM-SHA384 encryption
DEBUG[1582629195.512274] Server certificates:
DEBUG[1582629195.512284] Subject: /OU=Domain Control Validated/OU=PositiveSSL/CN=XXX
DEBUG[1582629195.512304] Issuer: /C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA Domain Validation Secure Server CA
DEBUG[1582629195.512349] Register in progress...
DEBUG[1582629195.776688] setting callbacks for value changing...
DEBUG[1582629195.776729] callbacks are set
DEBUG[1582629195.776742] Registered and ready.
DEBUG[1582629205.5648] reading channel_0 value from file /home/supla/supla-filesensors/temp.txt
DEBUG[1582629205.5747] sending value of channel_0 to supla server...
Teraz mogę ustawiać wszystko! Jeszcze raz dziękuje za cierpliwość :)
Last edited by szym3k on Tue Feb 25, 2020 11:17 am, edited 1 time in total.
Beku
Posts: 453
Joined: Tue Nov 06, 2018 1:49 pm

Post

szym3k wrote: Tue Feb 25, 2020 11:16 am Bingo! Działa! Świetna robota!

Code: Select all

DEBUG[1582629195.500437] searching channel with number 0
DEBUG[1582629195.500460] adding channel with number 0
DEBUG[1582629195.500481] adding channel with number 0
DEBUG[1582629195.500499] searching channel with number 0
DEBUG[1582629195.500509] c_number: 0
DEBUG[1582629195.500579] Protocol v12
DEBUG[1582629195.500597] Starting...
DEBUG[1582629195.500755] Device GUID: DBCD8AA0E51E8A513AB1E0AAD7BDC16D
DEBUG[1582629195.502144] initializing channels...
DEBUG[1582629195.502171] reading channel_0 value from file /home/supla/supla-filesensors/temp.txt
DEBUG[1582629195.502220] sending value of channel_0 to supla server...
DEBUG[1582629195.502283] initializing server connection...
DEBUG[1582629195.502367] entering main loop...
INFO[1582629195.502402] SSL version: OpenSSL 1.1.1d  10 Sep 2019
DEBUG[1582629195.505744] Connecting...
DEBUG[1582629195.512243] Connected with ECDHE-RSA-AES256-GCM-SHA384 encryption
DEBUG[1582629195.512274] Server certificates:
DEBUG[1582629195.512284] Subject: /OU=Domain Control Validated/OU=PositiveSSL/CN=XXX
DEBUG[1582629195.512304] Issuer: /C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA Domain Validation Secure Server CA
DEBUG[1582629195.512349] Register in progress...
DEBUG[1582629195.776688] setting callbacks for value changing...
DEBUG[1582629195.776729] callbacks are set
DEBUG[1582629195.776742] Registered and ready.
DEBUG[1582629205.5648] reading channel_0 value from file /home/supla/supla-filesensors/temp.txt
DEBUG[1582629205.5747] sending value of channel_0 to supla server...
Teraz mogę ustawiać wszystko! Jeszcze raz dziękuje za cierpliwość :)
Pięknie 🙂
Beku
Posts: 453
Joined: Tue Nov 06, 2018 1:49 pm

Post

andras wrote: Mon Feb 24, 2020 8:53 pm A u mnie nie chce :(
Aby supervisor nie rzucał błędem to w pliku supervisord.conf musisz mieć wpisane chmod=0770

Ty masz wpisane chmod=0700

Zmień i zrestartuj supervisor poleceniem

sudo systemctl restart supervisor
andras
Posts: 636
Joined: Fri Dec 30, 2016 5:51 pm
Has thanked: 2 times
Been thanked: 4 times

Post

Tak to było to :)
dziękuję .

Return to “Projekty użytkowników”