This script enables to control the status of your Kuhne MKU UP 2424 B converter using a handy webinterface. Additionally, it provides a HTTP REST interface, which can be used for further integration in your network (for API reference, see below).
After running the script, you can access the webinterface on http://localhost:5000
-
Create virtual environment
python -m venv venv
-
Activate virtual environment
source venv/bin/activate
-
Install requirements
pip install -r requirements.txt
-
Run script
python mku_ctrl.py /dev/ttyUSB0
(choose port accordingly)
-
Install Miniconda from
https://docs.conda.io/en/latest/miniconda.html
-
Create a new conda environment
conda create --name kuhne_mku_ctrl
-
Switch to the new environment
conda activate kuhne_mku_ctrl
-
Install requirements
python -m pip install requirements.txt
-
Run script
python mku_ctrl.py COM1
(choose port accordingly)
-
Install Pyinstaller
python -m pip install PyInstaller
-
Run
pyinstaller -w -F --add-data "templates;templates" --add-data "static;static" mku_ctrl.py
-
Executable is generated to
./dist
folder, run it from commandline (e.g.mku_ctrl.exe COM1
)
Based on MKU UP 2424 B Manual v1.1 (21.10.2020)
- /get/converter_state
- /get/pll_lock
- /get/converter_mode
- /get/forward_power
- /get/reverse_power
- /get/temperature
- /get/software_version
- /set/converter_state/[O0;O1]
The other write commands are not implemented (yet), as they are not needed in everyday usage.