Monitor your energy consumption with Go
Programming Snapshot – Go Energy Monitor
© Lead Image © Lightwise, 123RF.com
Before adding a new gadget to the household, Mike Schilli always monitors its power consumption with a Go program and creates intuitive graphs to decide whether it can stay.
Electricity is expensive. Where I live, in California, a kilowatt hour costs around 40 cents. If a new gadget consumes 20W in continuous operation, that adds up to 14kWh per month or almost $6. In addition, the price of electricity from my utility, Pacific Gas & Electric, is based on the time of day (Figure 1). A time-based power consumption breakdown for selected devices could offer ideas for potential savings.
An energy monitor such as the TP-Link Tapo P110M (Figure 2) keeps you up to date with the amount of power you are currently using; it has an API to make the measurement results available to inquiring WiFi clients. Upon request, the small device reports the power currently being drawn in milliwatts by all consumers plugged into it. On top of that, it also features two persistent counters that measure cumulated watt hours, one for the current day and one for the month.
[...]
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
The Latest CachyOS Features Supercharged Kernel
The latest release of CachyOS brings with it an enhanced version of the latest Linux kernel.
-
Kernel 7.0 Is a Bit More Rusty
Linux kernel 7.0 has been released for general availability, with Rust finally getting its due.
-
France Says "Au Revoir" to Microsoft
In a move that should surprise no one, France announced plans to reduce its reliance on US technology, and Microsoft Windows is the first to get the boot.
-
CIQ Releases Compatibility Catalog for Rocky Linux
The company behind Rocky Linux is making an open catalog available to developers, hobbyists, and other contributors, so they can verify and publish compatibility with the CIQ lineup.
-
KDE Gets Some Resuscitation
KDE is bringing back two themes that vanished a few years ago, putting a bit more air under its wings.
-
Ubuntu 26.04 Beta Arrives with Some Surprises
Ubuntu 26.04 is almost here, but the beta version has been released, and it might surprise some people.
-
Ubuntu MATE Dev Leaving After 12 years
Martin Wimpress, the maintainer of Ubuntu MATE, is now searching for his successor. Are you the next in line?
-
Kali Linux Waxes Nostalgic with BackTrack Mode
For those who've used Kali Linux since its inception, the changes with the new release are sure to put a smile on your face.
-
Gnome 50 Smooths Out NVIDIA GPU Issues
Gamers rejoice, your favorite pastime just got better with Gnome 50 and NVIDIA GPUs.
-
System76 Retools Thelio Desktop
The new Thelio Mira has landed with improved performance, repairability, and front-facing ports alongside a high-quality tempered glass facade.
