supla-device na Linux
-
- Posts: 2882
- Joined: Mon Dec 11, 2017 9:43 pm
Dzięki za objaśnienie
Czekam na kolejne Supla Offline Party
-
- Posts: 1150
- Joined: Tue Jun 04, 2019 11:37 am
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ź.
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
Byłem tam - Supla Offline Party 2023
-
- Posts: 9128
- Joined: Thu Jun 27, 2019 12:16 pm
- Location: Wrocław
Musisz ustawić osobny katalog dla "state_files_path" dla każdej instancji usługiuchnast.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ź.
Widzimy się na Supla Offline Party - 19.10.2024
https://forum.supla.org/viewtopic.php?t=15820
https://forum.supla.org/viewtopic.php?t=15820
-
- Posts: 1150
- Joined: Tue Jun 04, 2019 11:37 am
Aaaaa, ok Faktycznie było napisane, przeoczyłem. Dzięki za mega szybką odp.klew wrote: ↑Wed Jan 25, 2023 12:48 pmMusisz ustawić osobny katalog dla "state_files_path" dla każdej instancji usługiuchnast.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ź.
e-talking............
Byłem tam - Supla Offline Party 2023
Byłem tam - Supla Offline Party 2023
-
- Posts: 1150
- Joined: Tue Jun 04, 2019 11:37 am
@klew, planujesz dodać obsługę mqtt jak było/jest to w SVD?
e-talking............
Byłem tam - Supla Offline Party 2023
Byłem tam - Supla Offline Party 2023
-
- Posts: 9128
- Joined: Thu Jun 27, 2019 12:16 pm
- Location: Wrocław
Mam to w planach, ale raczej nie tych najniższychuchnast.michal wrote: ↑Thu Jan 26, 2023 3:56 pm @klew, planujesz dodać obsługę mqtt jak było/jest to w SVD?
Widzimy się na Supla Offline Party - 19.10.2024
https://forum.supla.org/viewtopic.php?t=15820
https://forum.supla.org/viewtopic.php?t=15820
-
- Posts: 367
- Joined: Thu Apr 28, 2016 4:24 pm
- Location: Katowice
@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}}
Code: Select all
curl --no-progress-meter http://192.168.X.X/api/livedata/status | jq
-
- Posts: 9128
- Joined: Thu Jun 27, 2019 12:16 pm
- Location: Wrocław
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.
Widzimy się na Supla Offline Party - 19.10.2024
https://forum.supla.org/viewtopic.php?t=15820
https://forum.supla.org/viewtopic.php?t=15820