Skip to content

Add new subcommand to monitor realtime plug power #1530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cphlipot
Copy link

@cphlipot cphlipot commented Apr 23, 2025

Add a new subcommand to monitor power from kasa power strips in realtime polling the strip ~1/sec and printing the current power usage of the device and each plug to the terminal for monitoring.

This sub-command mimics the design of several existing Linux based tools for monitoring system stats and extends it to monitoring device power.

Example:

Screencast_20250422_212947.webm

Add a new subcommand to monitor power from kasa power strips in
realtime polling the strip ~1/sec and printing the power useage
of the device and each plug to the terminal for monitoring.

This subcommand mimics the design of several existing Linux based
tools for monitoring system stats and extends it to monitoring
device power.
@cphlipot cphlipot force-pushed the monitor_subcommand branch from a7a4768 to a030a6b Compare April 23, 2025 04:41
Copy link

codecov bot commented Apr 23, 2025

Codecov Report

Attention: Patch coverage is 31.11111% with 31 lines in your changes missing coverage. Please review.

Project coverage is 92.37%. Comparing base (579fd5a) to head (a030a6b).

Files with missing lines Patch % Lines
kasa/cli/monitor.py 31.11% 31 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1530      +/-   ##
==========================================
- Coverage   92.66%   92.37%   -0.29%     
==========================================
  Files         150      151       +1     
  Lines        9538     9583      +45     
  Branches      974      980       +6     
==========================================
+ Hits         8838     8852      +14     
- Misses        499      530      +31     
  Partials      201      201              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant