Giter VIP home page Giter VIP logo

mku_ctrl's Introduction

MKU UP 2424 B Remote Script

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).

Running the script

Run from source

After running the script, you can access the webinterface on http://localhost:5000

Linux

  1. Create virtual environment

    python -m venv venv

  2. Activate virtual environment

    source venv/bin/activate

  3. Install requirements

    pip install -r requirements.txt

  4. Run script

    python mku_ctrl.py /dev/ttyUSB0 (choose port accordingly)

Windows

  1. Install Miniconda from https://docs.conda.io/en/latest/miniconda.html

  2. Create a new conda environment

    conda create --name kuhne_mku_ctrl

  3. Switch to the new environment

    conda activate kuhne_mku_ctrl

  4. Install requirements

    python -m pip install requirements.txt

  5. Run script

    python mku_ctrl.py COM1 (choose port accordingly)

Building a standalone executable

  1. Install Pyinstaller

    python -m pip install PyInstaller

  2. Run

    pyinstaller -w -F --add-data "templates;templates" --add-data "static;static" mku_ctrl.py

  3. Executable is generated to ./dist folder, run it from commandline (e.g. mku_ctrl.exe COM1)

REST API

Based on MKU UP 2424 B Manual v1.1 (21.10.2020)

Read configuration

  • /get/converter_state
  • /get/pll_lock
  • /get/converter_mode
  • /get/forward_power
  • /get/reverse_power
  • /get/temperature
  • /get/software_version

Write Configuration

  • /set/converter_state/[O0;O1]

The other write commands are not implemented (yet), as they are not needed in everyday usage.

mku_ctrl's People

Contributors

dl1com avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.