Pymagnum Hardware & Docker Image
I liked the work that Charles Godwin did in creating a Python based platform for reading data from the Magnum Energy series of inverters. After spending a good amount of time setting it up and using it, I wanted to contribute back to the community.
I created a docker image tested on simple, cheap hardware. I'll highlight the hardware and provide set up instructions.
This is an advanced undertaking. I'm not going to get into details about how to install the OS, set it all up, use SSH to install things, and configure your router for access.
Here is a live example. This link will bring you to my magnum running in my RV.
HARDWARE
This image runs great on a Raspberry PI 2W.
link
An SD Card to boot the system SD Card
Next you'll need a RS485 Interface. https://www.amazon.com/dp/B0DR218X7P?ref_=ppx_hzsearch_conn_dt_b_fed_asin_title_2
Finally you'll need a way to plug in regular USB-A devices (the above RS485 interface) into the Raspberry PI 2W.
https://www.amazon.com/dp/B083WML1XB?ref_=ppx_hzsearch_conn_dt_b_fed_asin_title_1&th=1
Optinally a HDMI cable in case you need to debug what's going on with the OS link
A RJ-11 Splitter
https://www.amazon.com/dp/B0CG97KWV6?ref_=ppx_hzsearch_conn_dt_b_fed_asin_title_7&th=1
And some RJ11 telephone cable https://www.amazon.com/dp/B08L8MQWFL?ref_=ppx_hzsearch_conn_dt_b_fed_asin_title_8&th=1
Raspberry PI Setup
Follow the instructions from the Raspberry PI web page to flash the SD card. I recommend installing the Raspberry PI Lite version of the O/S since the 2W is very memory limited an and a desktop will add a lot of memory and CPU overhead.
I set up the Wifi access point and Raspberry PI password through the installer. That way I can boot it, look at my router (or the boot up screen of the PI) to find the IP address, and SSH into it to install the rest.
Magnum Docker Setup Once you are logged into the PI, you can install pymagnumdocker.
First we need to install docker
sudo apt install docker.io docker-compose
Next pull the git repo:
git clone https://github.com/kevinherzig/pymagnumdocker
cd pymagnumdocker
Now build the image. On the 2W this will take a few minutes.
sh build.sh
Once built you can run the image:
docker compose up



