Take Control of Your Energy Consumption: A Simple Solution for Self-Hosted Devices
As someone who’s always looking for ways to reduce my energy consumption, I was excited to stumble upon a project that makes it easy to put my servers and devices into standby when not in use. The project, called shuthost, is a self-hosted standby manager that allows you to wake up your devices when needed, making it a great way to save energy and reduce waste.
Why I Needed a Solution Like shuthost
I’ve always been bothered by the fact that my devices are running 24/7, even when I’m not using them. It’s not only a waste of energy, but it’s also bad for the environment. I wanted a simple way to put my devices to sleep when they’re not in use, and wake them up when I need them. That’s where shuthost comes in.
What is shuthost?
shuthost is a self-hosted web GUI that allows you to send Wake-On-LAN packets and manage standby/shutdown for your devices. It supports Linux and macOS hosts, and lets you define different shutdown commands per host. It also includes a “serviceless” agent mode for flexibility across init systems.
Key Features of shuthost
So, what makes shuthost so useful? Here are some of its key features:
- Provides a self-hosted web GUI to send Wake-On-LAN packets and manage standby/shutdown
- Supports Linux (systemd + OpenRC) and macOS hosts
- Lets you define different shutdown commands per host
- Includes a “serviceless” agent mode for flexibility across init systems
- Has a web UI that’s PWA-installable, so it feels like an app on your phone
- Designed to be reachable from the web, with external auth for GUI
- Provides configs for Authelia, traefik-forwardauth, and Nginx Proxy Manager
- Can be run in Docker, but bare metal is generally easier and more compatible
Convenience Features
One of the things I love about shuthost is its convenience features. The web UI is PWA-installable, which means it feels like an app on your phone. It’s also designed to be reachable from the web, with external auth for GUI. This makes it easy to access and manage your devices from anywhere.
Integration and Flexibility
shuthost also exposes an m2m API for scripts, which makes it easy to integrate with other tools. The API is documented and not too complex, making it a great candidate for integration with tools like Home Assistant. The flexible host configuration also makes it easy to adapt to different environments.
Tech Details
So, what’s under the hood of shuthost? It’s fully open source, with a MIT/Apache license. It runs on anything from a Raspberry Pi to a dedicated server, and large parts of the code are LLM-generated (with care). This makes it a great solution for anyone looking for a flexible and customizable standby manager.
Getting Started with shuthost
If you’re interested in trying out shuthost, you can find it on GitHub. The project is well-documented, and the creator has worked hard to smooth out any gotchas. Of course, as with any project, there may be some tinkering required to get it up and running. But overall, shuthost is a great solution for anyone looking to take control of their energy consumption and reduce waste.
Zapanuj nad swoim zużyciem energii: Prosta rozwiązanie dla urządzeń samoobsługowych
Jako osoba, która zawsze szuka sposobów na redukcję zużycia energii, byłam podekscytowana odkryciem projektu, który ułatwia wprowadzanie serwerów i urządzeń w tryb uśpienia, gdy nie są używane. Projekt, nazwany shuthost, jest samoobsługowym menadżerem uśpienia, który pozwala na pobudzenie urządzeń, gdy są potrzebne, co sprawia, że jest to wielki sposób na oszczędność energii i redukcję marnowania.
Dlaczego potrzebowałam rozwiązania jak shuthost
Zawsze bolało mnie to, że moje urządzenia pracują 24/7, nawet gdy ich nie używam. To nie tylko marnowanie energii, ale także szkodzenie środowisku. Chciałam prosty sposób, aby wprowadzić moje urządzenia w tryb uśpienia, gdy nie są używane, i pobudzić je, gdy są potrzebne. To właśnie tutaj shuthost przychodzi z pomocą.
Czym jest shuthost?
shuthost jest samoobsługowym interfejsem web GUI, który pozwala na wysyłanie pakietów Wake-On-LAN i zarządzanie trybem uśpienia/zamknięcia dla Twoich urządzeń. Obsługuje hosty Linux i macOS, oraz pozwala na definiowanie różnych poleceń wyłączania na host. Zawiera również tryb “bezusługowy” agent, aby zapewnić elastyczność w różnych systemach init.
Główne funkcje shuthost
Co sprawia, że shuthost jest tak użyteczny? Oto jego główne funkcje:
- Umożliwia wysyłanie pakietów Wake-On-LAN i zarządzanie trybem uśpienia/zamknięcia
- Obsługuje hosty Linux (systemd + OpenRC) i macOS
- Pozwala na definiowanie różnych poleceń wyłączania na host
- Zawiera tryb “bezusługowy” agent, aby zapewnić elastyczność w różnych systemach init
- Ma interfejs web, który jest PWA-installable, co sprawia, że czuje się jak aplikacja na Twoim telefonie
- Został zaprojektowany, aby być dostępnym z sieci, z zewnętrzną autentykacją dla interfejsu web
- Umożliwia konfigurację Authelia, traefik-forwardauth i Nginx Proxy Manager
- Może być uruchomiony w Docker, ale “goły metal” jest generalnie łatwiejszy i bardziej kompatybilny
Funkcje ułatwiające
Jedną z rzeczy, które lubię w shuthost, są jego funkcje ułatwiające. Interfejs web jest PWA-installable, co sprawia, że czuje się jak aplikacja na Twoim telefonie. Został również zaprojektowany, aby być dostępnym z sieci, z zewnętrzną autentykacją dla interfejsu web. To sprawia, że jest łatwy dostęp i zarządzanie Twoimi urządzeniami z dowolnego miejsca.
Integracja i elastyczność
shuthost również udostępnia interfejs API m2m dla skryptów, co sprawia, że jest łatwy do integracji z innymi narzędziami. Interfejs API jest udokumentowany i niezbyt skomplikowany, co sprawia, że jest to wielki kandydat do integracji z narzędziami takimi jak Home Assistant. Elastyczna konfiguracja hosta również sprawia, że jest łatwo dostosować do różnych środowisk.
Szczegóły techniczne
Co jest pod maską shuthost? Jest to w pełni otwarte oprogramowanie, z licencją MIT/Apache. Działa na wszystkim, od Raspberry Pi do dedykowanego serwera, a duże części kodu są generowane przez LLM (z dbałością o szczegóły). To sprawia, że jest to wielkie rozwiązanie dla każdego, kto szuka elastycznego i dostosowanego do potrzeb menadżera uśpienia.
Rozpoczynanie pracy z shuthost
Jeśli jesteś zainteresowany wypróbowaniem shuthost, możesz go znaleźć na GitHub. Projekt jest dobrze udokumentowany, a twórca pracował ciężko, aby usunąć wszelkie problemy. Oczywiście, jak w przypadku każdego projektu, może być konieczne nieco “majsterkowania”, aby go uruchomić. Ale ogólnie, shuthost jest wielkim rozwiązaniem dla każdego, kto chce zapanować nad swoim zużyciem energii i redukować marnowanie.