cyrils / renogy-bt

Python library to read Renogy compatible BT-1 or BT-2 bluetooth modules using Raspberry Pi.
GNU General Public License v3.0
76 stars 27 forks source link

How to run 2 config files ? #68

Closed conor-o-brien closed 2 months ago

conor-o-brien commented 2 months ago

Hi, Is it possible to run 2 config files at same time and if so, how? I can run them both individually config1.ini and config.ini The reason I have to do this is because I am using both Bt1 and Bt2 devices.

cyrils commented 2 months ago

Not sure what you meant by at the same time. You will need separate config file for each device, but you can run them back to back or at the same time. Ex: create a sh file with

python3 example.py config1.ini 
python3 example.py config2.ini 
conor-o-brien commented 2 months ago

Not sure what you meant by at the same time. You will need separate config file for each device, but you can run them back to back or at the same time. Ex: create a sh file with

python3 example.py config1.ini 
python3 example.py config2.ini 

Thanks, I got that working when adding to crontab