dpsctl-gui.py is a crude frontend for OpenDPS dpsctl
The tool runs inside a Python virtual environment and requires the installation of certain Python dependencies listed in requirements.txt.
git clone https://github.com/gabtremblay/dpsctl-gui.gitCreate a Python virtual environment:
python -m venv dpsctl-guiActivate the virtual environment:
-
On Linux/macOS:
cd dpsctl-gui source bin/activate
-
On Windows:
cd dpsctl-gui Scripts\activate.ps1
Once the virtual environment is activated, install the necessary dependencies using the following command:
- On Windows:
pip install -r requirements.txt- On Linux/macOS:
pip install scikit-build
pip install -r requirements.txtA bug in tkextrafont makes it impossible to read Google open font under linux. You need to find this code block
vi lib/_your_python_version/site-packages/tkextrafont/fontnameinfo.tclGo to line 209 and change the block
if { $::tcl_platform(platform) == "windows" } {
set baseTriplet [binary format "SSS" 3 1 0x0409]
} else {
set baseTriplet [binary format "SSS" 1 0 0]
}For
set baseTriplet [binary format "SSS" 3 1 0x0409] To run the tool, you need to specify the -d parameter. This parameter can either be an IP address or a TTY device.
python dpsctl-gui.py -d <device_ip_or_tty>-
Using an IP address:
python dpsctl-gui.py -d 192.168.1.10
-
Using a TTY device:
python dpsctl-gui.py -d /dev/ttyUSB0
If the -d parameter is missing, the tool will not run and prompt you to provide the required device parameter.
This project is licensed under the MIT License - see the LICENSE file for details.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Happy coding!
