supla-device na Linux

User avatar
lesny8
Posts: 2912
Joined: Mon Dec 11, 2017 9:43 pm

Post

Dzięki za objaśnienie ;)
SOP 2023 :heavy_check_mark:
SOP 2024 :heavy_check_mark:
Czekam na kolejne Supla Offline Party :upside_down_face:
User avatar
uchnast.michal
Posts: 1164
Joined: Tue Jun 04, 2019 11:37 am

Post

Jak uruchomić kilka usług jednocześnie?
wywołując ./supla-device-linux -c konfig_1.yaml odpala lecz gdy dam ./supla-device-linux -c konfig_2.yaml to mam konflikt kanałów pomimo że name w pliku konfiguracyjnym mam inny.

Chciałem tak zrobić by podzielić logicznie na 1. virtualne, 2. termometry BLE, 3. urządzenia podłączone do gpio itd. Gdy jest w jednym worku a będzie konieczność coś zmodyfikować to pozostanie usunięcie całości w cloud:(

Z góry dzięki za odpowiedź.
e-talking............
Byłem tam - Supla Offline Party 2023
User avatar
klew
Posts: 9413
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław

Post

uchnast.michal wrote: Wed Jan 25, 2023 12:33 pm Jak uruchomić kilka usług jednocześnie?
wywołując ./supla-device-linux -c konfig_1.yaml odpala lecz gdy dam ./supla-device-linux -c konfig_2.yaml to mam konflikt kanałów pomimo że name w pliku konfiguracyjnym mam inny.

Chciałem tak zrobić by podzielić logicznie na 1. virtualne, 2. termometry BLE, 3. urządzenia podłączone do gpio itd. Gdy jest w jednym worku a będzie konieczność coś zmodyfikować to pozostanie usunięcie całości w cloud:(

Z góry dzięki za odpowiedź.
Musisz ustawić osobny katalog dla "state_files_path" dla każdej instancji usługi
Kiedy będzie Supla Offline Party / SOP#2025 ?
User avatar
uchnast.michal
Posts: 1164
Joined: Tue Jun 04, 2019 11:37 am

Post

klew wrote: Wed Jan 25, 2023 12:48 pm
uchnast.michal wrote: Wed Jan 25, 2023 12:33 pm Jak uruchomić kilka usług jednocześnie?
wywołując ./supla-device-linux -c konfig_1.yaml odpala lecz gdy dam ./supla-device-linux -c konfig_2.yaml to mam konflikt kanałów pomimo że name w pliku konfiguracyjnym mam inny.

Chciałem tak zrobić by podzielić logicznie na 1. virtualne, 2. termometry BLE, 3. urządzenia podłączone do gpio itd. Gdy jest w jednym worku a będzie konieczność coś zmodyfikować to pozostanie usunięcie całości w cloud:(

Z góry dzięki za odpowiedź.
Musisz ustawić osobny katalog dla "state_files_path" dla każdej instancji usługi
Aaaaa, ok :o Faktycznie było napisane, przeoczyłem. Dzięki za mega szybką odp.
e-talking............
Byłem tam - Supla Offline Party 2023
User avatar
uchnast.michal
Posts: 1164
Joined: Tue Jun 04, 2019 11:37 am

Post

@klew, planujesz dodać obsługę mqtt jak było/jest to w SVD?
e-talking............
Byłem tam - Supla Offline Party 2023
User avatar
klew
Posts: 9413
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław

Post

uchnast.michal wrote: Thu Jan 26, 2023 3:56 pm @klew, planujesz dodać obsługę mqtt jak było/jest to w SVD?
Mam to w planach, ale raczej nie tych najniższych
Kiedy będzie Supla Offline Party / SOP#2025 ?
kris.gie
Posts: 375
Joined: Thu Apr 28, 2016 4:24 pm
Location: Katowice

Post

klew wrote: Thu Jan 26, 2023 7:46 pm
@klew, pomożesz?
Jest taki projekt OpenDTU (https://github.com/tbnobody/OpenDTU), który ogarnia odczytywanie mikroinwerterów Hoymiles. Można odczytywać dane poprzez WebAPI, przykładowy wynik:

Code: Select all

{"inverters":[{"serial":"","name":"1","data_age":1,"reachable":true,"producing":true,"limit_relative":100,"limit_absolute":1500,"AC":{"0":{"Power":{"v":780.2999878,"u":"W","d":1},"Voltage":{"v":236.8999939,"u":"V","d":1},"Current":{"v":3.299999952,"u":"A","d":2},"Power DC":{"v":821.4000244,"u":"W","d":1},"YieldDay":{"v":4399,"u":"Wh","d":0},"YieldTotal":{"v":1627.00293,"u":"kWh","d":3},"Frequency":{"v":49.97999954,"u":"Hz","d":2},"PowerFactor":{"v":1,"u":"","d":3},"ReactivePower":{"v":21.79999924,"u":"var","d":1},"Efficiency":{"v":94.99634552,"u":"%","d":3}}},"DC":{"0":{"name":{"u":""},"Power":{"v":210.8999939,"u":"W","d":1},"Voltage":{"v":42,"u":"V","d":1},"Current":{"v":5.03000021,"u":"A","d":2},"YieldDay":{"v":1093,"u":"Wh","d":0},"YieldTotal":{"v":404.256012,"u":"kWh","d":3}},"1":{"name":{"u":""},"Power":{"v":201.6000061,"u":"W","d":1},"Voltage":{"v":42,"u":"V","d":1},"Current":{"v":4.800000191,"u":"A","d":2},"YieldDay":{"v":1108,"u":"Wh","d":0},"YieldTotal":{"v":410.803009,"u":"kWh","d":3}},"2":{"name":{"u":""},"Power":{"v":209.5,"u":"W","d":1},"Voltage":{"v":41.79999924,"u":"V","d":1},"Current":{"v":5.010000229,"u":"A","d":2},"YieldDay":{"v":1094,"u":"Wh","d":0},"YieldTotal":{"v":403.3599854,"u":"kWh","d":3}},"3":{"name":{"u":""},"Power":{"v":199.3999939,"u":"W","d":1},"Voltage":{"v":41.79999924,"u":"V","d":1},"Current":{"v":4.769999981,"u":"A","d":2},"YieldDay":{"v":1104,"u":"Wh","d":0},"YieldTotal":{"v":408.5840149,"u":"kWh","d":3}}},"INV":{"0":{"Temperature":{"v":33,"u":"°C","d":1}}},"events":0},{"serial":"","name":"2","data_age":6,"reachable":true,"producing":true,"limit_relative":100,"limit_absolute":1500,"AC":{"0":{"Power":{"v":729.4000244,"u":"W","d":1},"Voltage":{"v":236.3999939,"u":"V","d":1},"Current":{"v":3.079999924,"u":"A","d":2},"Power DC":{"v":767.8000488,"u":"W","d":1},"YieldDay":{"v":4024,"u":"Wh","d":0},"YieldTotal":{"v":1503.680908,"u":"kWh","d":3},"Frequency":{"v":49.97999954,"u":"Hz","d":2},"PowerFactor":{"v":1,"u":"","d":3},"ReactivePower":{"v":22.29999924,"u":"var","d":1},"Efficiency":{"v":94.99869537,"u":"%","d":3}}},"DC":{"0":{"name":{"u":""},"Power":{"v":215.6000061,"u":"W","d":1},"Voltage":{"v":42.20000076,"u":"V","d":1},"Current":{"v":5.119999886,"u":"A","d":2},"YieldDay":{"v":1080,"u":"Wh","d":0},"YieldTotal":{"v":415.2950134,"u":"kWh","d":3}},"1":{"name":{"u":""},"Power":{"v":204,"u":"W","d":1},"Voltage":{"v":42.20000076,"u":"V","d":1},"Current":{"v":4.840000153,"u":"A","d":2},"YieldDay":{"v":1111,"u":"Wh","d":0},"YieldTotal":{"v":411.8410034,"u":"kWh","d":3}},"2":{"name":{"u":""},"Power":{"v":201.8000031,"u":"W","d":1},"Voltage":{"v":38.90000153,"u":"V","d":1},"Current":{"v":5.190000057,"u":"A","d":2},"YieldDay":{"v":1022,"u":"Wh","d":0},"YieldTotal":{"v":386.2969971,"u":"kWh","d":3}},"3":{"name":{"u":""},"Power":{"v":146.3999939,"u":"W","d":1},"Voltage":{"v":38.90000153,"u":"V","d":1},"Current":{"v":3.769999981,"u":"A","d":2},"YieldDay":{"v":811,"u":"Wh","d":0},"YieldTotal":{"v":290.2479858,"u":"kWh","d":3}}},"INV":{"0":{"Temperature":{"v":28.29999924,"u":"°C","d":1}}},"events":0}],"total":{"Power":{"v":1509.699951,"u":"W","d":1},"YieldDay":{"v":8423,"u":"Wh","d":0},"YieldTotal":{"v":3130.683838,"u":"kWh","d":2}},"hints":{"time_sync":false,"radio_problem":false,"default_password":false}}
lub np. za pomocą komendy:

Code: Select all

curl --no-progress-meter http://192.168.X.X/api/livedata/status | jq
gotowy wynik zapisać do pliku tekstowego. Jak to wrzucić do supla-device na Raspberry?
User avatar
klew
Posts: 9413
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław

Post

kris.gie wrote: Wed Mar 01, 2023 1:47 pm gotowy wynik zapisać do pliku tekstowego. Jak to wrzucić do supla-device na Raspberry?
Dane są w json. Także zerknij sobie w przykładzie dla linuxa w przykład dla airly - tam jest pokazane jak odczytywać dane z json'a.
Kiedy będzie Supla Offline Party / SOP#2025 ?
kris.gie
Posts: 375
Joined: Thu Apr 28, 2016 4:24 pm
Location: Katowice

Post

Dzięki, będę działać!
kris.gie
Posts: 375
Joined: Thu Apr 28, 2016 4:24 pm
Location: Katowice

Post

klew wrote: Wed Mar 01, 2023 1:53 pm
Ale właściwych jednostek (W, kW, kWh) nie uzyskam?

Return to “supla-dev”