nakla / sbfspot

Scripts for building and running the docker container
18 stars 10 forks source link

dual inverter #20

Closed arno58 closed 9 months ago

arno58 commented 10 months ago

I would like to use your docker image but i have two inverters. I could create two docker two docker images but they would run in to sharing conflicts.

ps I found a dock image (bigrob8181/monitor) who uses

network_mode: host
cap_add:
  - NET_ADMIN

to create a secure docker image with access to bluetooth device

nakla commented 10 months ago

Hi, you only need network_mode: host - NET_ADMIN is not necessary (you can see that in my docker-compose.yaml example at the end of the readme). You can configure 2 inverters simply in the configfile. I believe you just have to set BTAddress to one of your inverters, and set the MTS_Enabled variable to 1. In both inverters, you have to set the same ID - mine have a rotary switch, but they were set to the same id already in factory, just in case the is different in your ones.

arno58 commented 10 months ago

Thank you for your quick response. A) i thought that extra parameter was meant to limit root access to only network devices, i will check the running processes. B) all the solar panels are on my roof, one inverter is owned by my neighbour and stored in different pvoutput accounts; if there is a difference between them i get an Allert.

Op za 18 nov. 2023 01:03 schreef nakla @.***>:

Hi, you only need network_mode: host - NET_ADMIN is not necessary (you can see that in my docker-compose.yaml example at the end of the readme). You can configure 2 inverters simply in the configfile. I believe you just have to set BTAddress to one of your inverters, and set the MTS_Enabled variable to 1. In both inverters, you have to set the same ID - mine have a rotary switch, but they were set to the same id already in factory, just in case the is different in your ones.

— Reply to this email directly, view it on GitHub https://github.com/nakla/sbfspot/issues/20#issuecomment-1817270497, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOQKNBN5VIO6ZHGKVUWTXFLYE73OZAVCNFSM6AAAAAA7QQCE2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXGI3TANBZG4 . You are receiving this because you authored the thread.Message ID: @.***>

nakla commented 10 months ago

Ok, I don't use pvoutput, I don't know if the upload can handle two accounts in one instance. I believe you find informations about it in the docu. If that is not possible, you can simply run two instances of the sbfspot container with two separate uploads.

nakla commented 9 months ago

Problem seems to be solved...