Possibility to use python script to set parameters

135 views
0 Comments

I think it is great that you are updating the firmware all the time and am happy to see the improvements. One update that I would really like to see is to be able to set the strompi parameters via a python script instead of using the ’sudo screen /dev/serial0 38400 command‘. As it is now possible with the new firmware to get the strompi status, perhaps this is not too difficult to add? A simple script could have functions like: wakeup_alarm(mode = „Time-Alarm“, time = „00:00“, status = „Enabled“) etc. Would that be possible?

Answered question

3 Answers

Nils (Joy-IT) (anonymous) 0 Comments

Hi joljols,
yes, that’s correct. But be aware that this script is written for Python 3. Start it with:
python3 ./strompi_config.py
Best regards.
Nils

Answered question
joljols (anonymous) 0 Comments

Wonderful! So the script should be run in terminal via python strompi_config.py right? I will give it a try later today.
Many thanks for the fast work on this!

Answered question
Nils (Joy-IT) (anonymous) 0 Comments

Hi joljols,
we just released a config script for the StromPi 3. You can get it here or in our Downloads section.

Best regards.
Nils

Answered question
Write your answer.