GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - DiUS/python-powersensor_local: A small python package to interface with the network-local event streams available on Powersensor devices.

BranchesTags
Open more actions menu

Latest commit

 

History

130 Commits
130 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
docs
docs
 
 
scripts
scripts
 
 
src/powersensor_local
src/powersensor_local
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
RELEASES.md
RELEASES.md
 
 
pyproject.toml
pyproject.toml
 
 
requirements.test.txt
requirements.test.txt
 
 

Repository files navigation

Powersensor (local)

A small package to interface with the network-local event streams available on Powersensor devices.

Two different high-level abstractions are provided. The first is the PlugApi, which provides access to the event stream from a single Powersensor Plug. The plug may be relaying data for sensors as well, which will also be included in the said event stream. The PlugApi abstraction is ideal when used together with Zeroconf/mDNS discovery (services '_powersensor._udp.local' and '_powersensor._tcp.local'). Note that actual Zeroconf/mDNS discovery functionality is not included here.

The second abstraction is the PowersensorDevices class, which uses the legacy discovery mechanism (as opposed to mDNS) to discover the plugs, and then aggregates all the event streams into a single callback. Internally it relies on the PlugApi as well.

There are also some small utilities included,ps-plugevents and ps-rawplug showcasing the use of the first interface approach, and ps-events the latter.

The ps-events is effectively a consumer of the PowersensorDevices event stream and dumps all events to standard out. Similary, ps-plugevents shows the event stream from a single plug (plus whatever it might be relaying for), and ps-rawplug shows the raw event stream from the plug. Note that the format of the raw events is not guaranteed to be stable; only the interface provided by PlugApi is.

About

A small python package to interface with the network-local event streams available on Powersensor devices.

dius.github.io/python-powersensor_local/

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

4 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.