Go to file
Sam Fredrickson 098282826e
All checks were successful
Build & Test / Main (push) Successful in 13s
Add example YAML config file.
2024-08-25 19:30:25 -07:00
.gitea/workflows Initial commit. 2024-08-25 19:14:26 -07:00
.idea Initial commit. 2024-08-25 19:14:26 -07:00
cmd/economize Initial commit. 2024-08-25 19:14:26 -07:00
pkg/economize Initial commit. 2024-08-25 19:14:26 -07:00
.gitignore Initial commit. 2024-08-25 19:14:26 -07:00
.golangci.yaml Initial commit. 2024-08-25 19:14:26 -07:00
.goreleaser.yaml Initial commit. 2024-08-25 19:14:26 -07:00
economize.example.yaml Add example YAML config file. 2024-08-25 19:30:25 -07:00
go.mod Initial commit. 2024-08-25 19:14:26 -07:00
go.sum Initial commit. 2024-08-25 19:14:26 -07:00
README.md Initial commit. 2024-08-25 19:14:26 -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.