A Python library for interacting with USB HID UPS devices.
Project description
HID_UPS
Uses hidapi to listen for UPS data.
Currently only tested working with a CyberPower CP1500PFCLCD
Dependencies
Usage
This must be run as root unless the user has privileges to use the hidraw
socket the UPS uses.
This package can be installed with sudo pip install --break .
then run with sudo hid_ups
.
Once started, hid_ups
will attempt to find UPS devices and listen for stats.
A SIGHUP
can be sent to the process to re-scan for devices.
This will close current listeners, and will momentarily throw errors until the socket is re-opened
Device detection
hid_ups
detects the device using vendor/device strings. Only one is currently added. The are defined in hid_devices
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file hid_ups-0.7.0.tar.gz
.
File metadata
- Download URL: hid_ups-0.7.0.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ff884db16f827848f13f11c5cfd6ee51a102a01404fb9a2e2e780933d5b5678 |
|
MD5 | 9f38332c616323befe4eee579f7b617f |
|
BLAKE2b-256 | 7b71b0cfd44b3adb55dcd8619075ea7945ab1a4dfe6bf674e72855952c631d49 |