Go to file
Sam Fredrickson 5de2a77625
Some checks failed
Build & Test / Main (push) Failing after 5s
Meh, try to fix the build.
2024-08-25 19:07:46 -07:00
.gitea/workflows Meh, try to fix the build. 2024-08-25 19:07:46 -07:00
.idea Initial commit. 2024-08-25 19:03:39 -07:00
cmd/economize Initial commit. 2024-08-25 19:03:39 -07:00
.gitignore Initial commit. 2024-08-25 19:03:39 -07:00
.golangci.yaml Initial commit. 2024-08-25 19:03:39 -07:00
.goreleaser.yaml Initial commit. 2024-08-25 19:03:39 -07:00
go.mod Initial commit. 2024-08-25 19:03:39 -07:00
go.sum Initial commit. 2024-08-25 19:03:39 -07:00
README.md Initial commit. 2024-08-25 19:03:39 -07:00

economize - manage economy server

Background

My storage server, economy, is nearly a decade old, and has 18 spinning rust disks, so it's a bit power-hungry: when idle, it draws about 270W. If left on all day, that would consume roughly 6.5 kWh of energy, costing about $2.6. Over a month, that would be $78. (Thanks, PG&E! :( )

But, I have a newer Ryzen 5000U-based mini-PC server that consumes much less power and runs 24/7 anyway. So I can schedule periodic jobs to bring economy up and down. This program implements the logic for those jobs.

economize up will use the BMC to power on the server.

economize down will use the BMC to power down the server safely by sending an ACPI signal to the operating system.