Skip to content

OpenJarbas/powerguess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PowerGuess

guess live power usage of linux devices

Peek 2023-11-11 02-49

submit reference benchmark readings.json to powerguess/models

in x86 add powerstat and dmidecode to sudoers in order to not ask password

# ALL ALL=NOPASSWD: /usr/bin/powerstat
# ALL ALL=NOPASSWD: /usr/bin/dmidecode

Energy Monitoring

get readings

from ovos_utils import wait_for_exit_signal

from powerguess import PowerStatMonitor


def c(reading, model):
    p, v, i = reading
    print(f"new {model} reading:", p, "W - ", i, "A - ", v, "V")


p = PowerStatMonitor()
p.add_callback(c)

p.start()

wait_for_exit_signal()

p.stop()

Sensors

integrates with ovos-PHAL-sensors

Battery Sensors

BatterySensor
BatteryChargeSensor
BatteryCurrentSensor
BatteryStoredEnergySensor
BatteryPowerConsumptionSensor
BatteryPowerProductionSensor
BatteryStatusSensor
BatteryVoltageSensor
BatteryChargingSensor

Power Sensors

PowerGuessPowerSensor
PowerGuessCurrentSensor
PowerGuessVoltageSensor

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages