supla-device na Linux

User avatar
lukfud
Posts: 2118
Joined: Thu Nov 23, 2017 11:33 pm
Location: Warszawa

Post

klew wrote: Mon Nov 21, 2022 12:29 pm
lukfud wrote: Mon Nov 21, 2022 11:49 am Zauważyłem że zmienna SUPLA_DEVICE_PATH jest usuwana po kompilacji.
Nie jest usuwana. Natomiast jeśli wykonuje się ją z linii poleceń, to ustawiana jest tylko dla obecnej sesji. Po zamknięciu terminala nie ustawia się ona sama automatycznie.
Jeśli ma być ustawiana automatycznie to trzeba dodać to np. w jakimś .bash_rc albo innym pliku, który w Twoim systemie jest ładowany przy uruchamianiu sesji.
Ok, dzięki za wyjaśnienie ;)
https://www.facebook.com/groups/supladiy/
User avatar
lukfud
Posts: 2118
Joined: Thu Nov 23, 2017 11:33 pm
Location: Warszawa

Post

klew wrote: Mon May 23, 2022 8:37 am
dorzucisz "setDefaultState" ? ;)
https://www.facebook.com/groups/supladiy/
User avatar
iborkim
Posts: 79
Joined: Sat Jun 11, 2016 10:59 am

Post

Falownik Afore (sofar) jest obsługiwany ? Jeżeli tak to poproszę o przykład.
Wziąłem udział w Supla Offline Party 2023
User avatar
klew
Posts: 8765
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław

Post

lukfud wrote: Mon Nov 21, 2022 6:30 pm
klew wrote: Mon May 23, 2022 8:37 am
dorzucisz "setDefaultState" ? ;)
Dorzuciłem issue: https://github.com/SUPLA/supla-device/issues/30 ;)
Widzimy się na Supla Offline Party vol. 2 :!:
User avatar
klew
Posts: 8765
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław

Post

iborkim wrote: Mon Nov 21, 2022 6:45 pm Falownik Afore (sofar) jest obsługiwany ? Jeżeli tak to poproszę o przykład.
Jeszcze nie jest. Dodałem issue: https://github.com/SUPLA/supla-device/issues/31
Widzimy się na Supla Offline Party vol. 2 :!:
User avatar
lukfud
Posts: 2118
Joined: Thu Nov 23, 2017 11:33 pm
Location: Warszawa

Post

klew wrote: Mon Nov 21, 2022 9:03 pm
lukfud wrote: Mon Nov 21, 2022 6:30 pm
klew wrote: Mon May 23, 2022 8:37 am
dorzucisz "setDefaultState" ? ;)
Dorzuciłem issue: https://github.com/SUPLA/supla-device/issues/30 ;)
Dzięki :)
https://www.facebook.com/groups/supladiy/
bigthomas
Posts: 234
Joined: Mon Aug 12, 2019 3:35 pm

Post

Podpowiedzcie ... czy jestem w stanie uruchomić kilka procesów supla-device z różnymi konfiguracjami?
Chciałbym rozdzielić konfigurację na kilka urządzeń, tak aby na cloud supli widniały jako osobne urządzenia.
Ewentualnie jakby można było w pliku konfiguracyjnym to rozdzielić.
User avatar
klew
Posts: 8765
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław

Post

bigthomas wrote: Thu Nov 24, 2022 10:21 am Podpowiedzcie ... czy jestem w stanie uruchomić kilka procesów supla-device z różnymi konfiguracjami?
Chciałbym rozdzielić konfigurację na kilka urządzeń, tak aby na cloud supli widniały jako osobne urządzenia.
Ewentualnie jakby można było w pliku konfiguracyjnym to rozdzielić.
Tak, możesz uruchomić dowolną ilość, tylko dla każdego "serwisu" musisz usatwić inny plik konifguracyjny i w innej lokalizacji ustawić miejsce do przechowywania danych (https://github.com/SUPLA/supla-device/t ... files_path)
Widzimy się na Supla Offline Party vol. 2 :!:
bigthomas
Posts: 234
Joined: Mon Aug 12, 2019 3:35 pm

Post

klew wrote: Sat Oct 29, 2022 1:21 pm
bigthomas wrote: Sat Oct 29, 2022 11:24 am Udało mi się uruchomić, jednak nie ma informacji z Froniusa:

Code: Select all

DEBUG[1667041669.194548] Fronius connecting 1
INFO[1667041669.194614] Establishing NOT encrypted connection with: xxx.xxx.xxx.xxx (port: 80)
DEBUG[1667041669.238258] Reading data from Fronius: 666
DEBUG[1667041669.254868] Fronius fetch completed
W pliku konfiguracyjnym mam tylko wirtualny przekaźnik i tego froniusa. Przekaźnik działa OK.
Z tego co pamiętam, to tam można logi włączyć na verbose i wtedy będzie widać co jest odczytane z falownika
Ok, uruchomiłem to z parametrem logów na verbose:

Code: Select all

bigthomas@debian:~$ fronius/supla-device/extras/examples/linux/build/supla-device-linux -c /home/bigthomas/fronius/fronius_supla-device.yaml
INFO[1669291699.345831] GUID and AUTHKEY: loading from file /home/bigthomas/fronius/supla-device/guid_auth.yaml
INFO[1669291699.345968]  *** Starting supla-device ***
INFO[1669291699.345982] Using config file /home/bigthomas/fronius/fronius_supla-device.yaml
INFO[1669291699.346024] Channel[0] config: adding VirtualRelay
INFO[1669291699.346080] Channel[1] config: adding Fronius with IP XXX.XXX.XXX.XXX, port: 80, deviceId: 1
DEBUG[1669291699.346409] Supla - starting initialization
DEBUG[1669291699.346425] Main storage not configured
DEBUG[1669291699.346529] Security level: 2
INFO[1669291699.346545] Relay[0] turn OFF (duration 0 ms)
DEBUG[1669291699.346558] Starting linux timers...
DEBUG[1669291699.346709] Initializing network layer
DEBUG[1669291699.346725] Network AP/hostname: LINUX
INFO[1669291699.346746] Using Supla protocol version 16
INFO[1669291699.346759] Current status: [5] SuplaDevice initialized
INFO[1669291699.346766] Enter normal mode
WARNING[1669291699.346786] Connecting without certificate validation (INSECURE)
INFO[1669291699.346799] Establishing encrypted connection with: svrXX.supla.org (port: 2016)
DEBUG[1669291699.558960] Connected with TLS_AES_256_GCM_SHA384 encryption
DEBUG[1669291699.559002] Server certificates:
DEBUG[1669291699.559023] Subject: /C=PL/ST=Opolskie/L=Paczkow/O=SUPLA.ORG/OU=Public Cloud Services/CN=svrXX.supla.org/emailAddress=supla@supla.org
DEBUG[1669291699.559042] Issuer: /C=PL/ST=Opolskie/L=Paczkow/O=SUPLA.ORG/OU=CA/CN=SUPLA.ORG CA/emailAddress=supla@supla.org
INFO[1669291699.559058] Connected to Supla Server
INFO[1669291699.559229] LAST STATE ADDED: Register in progress
INFO[1669291699.559242] Current status: [10] Register in progress
DEBUG[1669291699.559370] Send: [53 55 50 4C 41 10 01 00 00 00 45 00 00 00 7A 02 00 00 62 69 67 74 68 6F 6D 61 73 36 36 36 40 67 6D 61 69 6C 2E 63 6F 6D 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 95 5D EF EE CA 15 71 4A 82 B6 35 88 C6 C8 03 1C 4D 8C 28 81 20 58 94 31 98 D1 12 E8 BA 69 E4 83 4C 69 6E 75 78 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 53 44 4B 20 32 32 2E 31 31 2E 30 32 2D 64 65 76 00 00 00 00 00 73 76 72 32 36 2E 73 75 70 6C 61 2E 6F 72 67 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 01 88 13 00 00 00 00 00 00 36 01 00 00 00 00 0D 00 00 00 00 00 00 00 00 00 53 55 50 4C 41 ]
DEBUG[1669291699.744256] Recv: [53 55 50 4C 41 10 01 00 00 00 46 00 00 00 07 00 00 00 03 00 00 00 78 13 01 53 55 50 4C 41 ]
DEBUG[1669291699.744300] Device registered (activity timeout 120 s, server version: 19, server min version: 1)
INFO[1669291699.744453] LAST STATE ADDED: Registered and ready
INFO[1669291699.744467] Current status: [17] Registered and ready
DEBUG[1669291699.744474] Changing activity timeout to 30
DEBUG[1669291699.744488] Send: [53 55 50 4C 41 10 02 00 00 00 D2 00 00 00 01 00 00 00 1E 53 55 50 4C 41 ]
DEBUG[1669291699.744533] Fronius connecting 1
INFO[1669291699.744547] Establishing NOT encrypted connection with: XXX.XXX.XXX.XXX (port: 80)
DEBUG[1669291699.801359] Reading data from Fronius: 666
DEBUG[1669291699.804736] Recv: [53 55 50 4C 41 10 02 00 00 00 DC 00 00 00 03 00 00 00 1E 0A F0 53 55 50 4C 41 ]
DEBUG[1669291699.804757] Activity timeout set to 30 s
DEBUG[1669291699.815205] Fronius fetch completed
DEBUG[1669291714.749143] Fronius connecting 1
INFO[1669291714.749230] Establishing NOT encrypted connection with: XXX.XXX.XXX.XXX (port: 80)
DEBUG[1669291714.810378] Reading data from Fronius: 666
DEBUG[1669291714.824007] Fronius fetch completed
DEBUG[1669291724.748752] Send: [53 55 50 4C 41 10 03 00 00 00 28 00 00 00 10 00 00 00 CC 5E 7F 63 00 00 00 00 B1 6C 0B 00 00 00 00 00 53 55 50 4C 41 ]
DEBUG[1669291724.800235] Recv: [53 55 50 4C 41 10 03 00 00 00 32 00 00 00 10 00 00 00 CC 5E 7F 63 00 00 00 00 B7 CC 0B 00 00 00 00 00 53 55 50 4C 41 ]
DEBUG[1669291729.753304] Fronius connecting 1
INFO[1669291729.753379] Establishing NOT encrypted connection with: XXX.XXX.XXX.XXX (port: 80)
DEBUG[1669291729.823095] Reading data from Fronius: 666
DEBUG[1669291729.836704] Fronius fetch completed
^CINFO[1669291734.504292] Exit

EDIT: Problem rozwiązany wraz z najnowszą wersją :)
Last edited by bigthomas on Fri Nov 25, 2022 6:48 am, edited 2 times in total.
User avatar
klew
Posts: 8765
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław

Post

bigthomas wrote: Thu Nov 24, 2022 12:20 pm
Ok, uruchomiłem to z parametrem logów na verbose:
Niestety nic z verbose tam nie widać. Wyślij może na priv plik konfiguracyjny
Widzimy się na Supla Offline Party vol. 2 :!:

Return to “supla-dev”