TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Terminal dashboard that throttles my PC during peak electricity rates

98 点作者 naveen_k大约 2 个月前
WattWise is a CLI tool that monitors my workstation’s power draw using a smart plug and automatically throttles the CPU & GPUs during expensive Time-of-Use electricity periods. Built with Python, uses PID controllers for smooth transitions between power states. Works with TP-Link Kasa plugs and Home Assistant.

13 条评论

naveen_k大约 2 个月前
Quick update: Definitely wasn't expecting this to end up on the front page. I was more focused on publishing the dashboard than the power optimizer service I'm running. I'll take all the feedback into account and will open source an improved version of it soon. Appreciate all the comments!
评论 #43551024 未加载
PeterStuer大约 2 个月前
Had a quick look through the code but I can&#x27;t find where he actually throttles the PC. Anyone can point me to it?<p><a href="https:&#x2F;&#x2F;github.com&#x2F;naveenkul&#x2F;WattWise" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;naveenkul&#x2F;WattWise</a>
评论 #43548637 未加载
评论 #43548889 未加载
russdill大约 2 个月前
If your computer is still doing bursty jobs during that period, it will use less power but still as much energy. Sure, you can reduce the power but if you aren&#x27;t also reducing what you ask it to do, it&#x27;ll just use that max amount of allowed power for a longer period of time.
评论 #43548474 未加载
评论 #43548929 未加载
评论 #43548881 未加载
评论 #43551571 未加载
评论 #43549468 未加载
gorbypark大约 2 个月前
Pretty neat! I’m currently working on a project that uses an ESP-C6 that just exposes a “switch” over matter&#x2F;thread thats based off the results from the Spanish electricity prices API. The idea is have the switch be on when it’s one of the cheapest hours of the day, and off otherwise. Then other automations can be based on it. This was pretty trivial to do in home assistant but I want something that’s ultra low power and can just be completely independent of anything for less technical users. My end goal is to have a small battery powered device that wakes up from deep sleep once a day to check the day ahead prices via WiFi. The C6 might be overkill for this, but once I have a proof of concept working I’ll try and pick something that’s ultra low super ultra low power. Something that needs charging once or twice a year would be ideal.<p>The ideal form factor might be a smart plug itself, but I can’t find any with hackable firmware and also matter&#x2F;thread&#x2F;wifi.
评论 #43550790 未加载
PeterStuer大约 2 个月前
Nice project, but would it not be more rational to have your system running underclocked&#x2F;undervolted at the optimal perf&#x2F;watt at all times, with an optional boost to max performance for a time critical task? Running it away from the optimum might save on instant consumption but increase your aggregate consumption.
评论 #43548552 未加载
评论 #43548868 未加载
评论 #43548225 未加载
评论 #43548320 未加载
throwaway3231大约 2 个月前
It&#x27;s usually more energy-efficient to finish a task quickly with a higher power draw, also known as race-to-idle.
评论 #43548766 未加载
gitpusher大约 2 个月前
People have made valid criticisms about the basic effectiveness of your strategy. But in any case, this is a pretty awesome hacker project - nicely done! Love the appearance of your CLI tool. I am definitely bookmarking for future inspo
评论 #43550842 未加载
Symbiote大约 2 个月前
Within the next year or two, I&#x27;m going to look at implementing something similar at my work.<p>We don&#x27;t pay for electricity directly (it&#x27;s included in the rackspace rental), but we could reduce our carbon footprint by adjusting the timing of batch processing, perhaps based on the carbon intensity APIs from <a href="https:&#x2F;&#x2F;app.electricitymaps.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;app.electricitymaps.com&#x2F;</a><p>Though, the first step will be to quantify the savings. I have the impression from being in the datacentre while batch jobs have started that they cause a significant increase in power use, but no numbers.
评论 #43552759 未加载
评论 #43552203 未加载
whalesalad大约 2 个月前
Wonder if a big UPS&#x2F;power bank would be better? Charge it during periods where power is cheaper, and utilize it when power is more expensive. Then again if you do not need full performance all the time - this is a cool solution.
评论 #43548608 未加载
ajsnigrutin大约 2 个月前
Why all this instead of a simple cronjob switching from performance to powersave profiles depeding on current time (=electricity price)?
评论 #43548560 未加载
评论 #43548096 未加载
Havoc大约 2 个月前
From what I’ve seen price per token make home generation uncompetitive in most countries. And that’s just on elec - never mind cost of gear<p>Only really makes sense for learning or super confidential info
mythrwy大约 2 个月前
This looks cool but I feel it should notify the user with a snip from the song &quot;You Suffer&quot; by &quot;Napalm Death&quot; when throttling occurs.
gtirloni大约 2 个月前
Could you share how much you have saved in $?
评论 #43548629 未加载