Now the project is running on a 9 year old Raspberry Pi!
It's been almost 9 years since I fiddled with a Raspberry Pi computer and a lot has happened since then! So this time I tried to install Raspberry Pi OS with their own Raspberry Pi Imager. It was really easy and smooth!
After installing the OS, I installed Mosquitto which is an MQTT Broker (server), through Raspberry Pi OS's own service for installing programs. As usual, it messed up a lot with write permissions in Linux after tinkering a bit with using my own file for users and passwords. I'm pretty bad at it, but I solved it after a lot of googling! Note to self; learn Unix / Linux user rights! But anyway, Mosquitto is now running with login requirements. Tested by connecting from my computer with MQTT Explorer and everything looked real good, no problems sending and receiving test messages.
Then it was time to run the actual code for the project. Python 3 and Git comes pre-installed on the Raspberry Pi OS, so I just hade to download my Git project and run the Python code.
Then install some 3rd part packages required to run my code; paho-mqtt and requests.
And now it works! My project can now be run 24/7 with minimal energy cost on a Raspberry Pi!
The next step with the Raspberry Pi computer itself will probably be to fix a box to the computer. It would have been fun to have one on the wall next to the energy hub and charging box. We'll see what I will come up with! 😊
My setup with Ferroamp Energihub and Garo charge box