Skip to main content

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

Uses zenlib and hidapi

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

hid_ups-0.7.0.tar.gz (11.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page