Wake Up to Energy Savings: A Self-Hosted Standby Manager for Your Devices
As someone who’s always looking for ways to reduce their carbon footprint, I was excited to come across a project called shuthost. It’s a self-hosted standby manager that helps you put your devices to sleep when they’re not in use, and wake them up again when you need them. In this post, I’ll dive into what shuthost is, how it works, and why it’s a game-changer for anyone looking to save energy.
Why Do We Need a Standby Manager?
Let’s face it: running our devices 24/7 can be a huge waste of energy. But at the same time, we don’t want to have to manually shut down and restart our devices every time we’re not using them. That’s where shuthost comes in. It’s a simple, self-hosted solution that allows you to define different shutdown commands for each of your devices, and even wake them up again when you need them.
How Does shuthost Work?
Shuthost provides a web-based interface that lets you send Wake-On-LAN packets and manage standby/shutdown for all your devices. It supports both Linux and macOS hosts, and even has a “serviceless” agent mode for flexibility across different init systems. But what really sets shuthost apart is its convenience features. The web UI is PWA-installable, so it feels like an app on your phone. And with support for external authentication, you can access your devices from anywhere.
Convenience Features
So what makes shuthost so convenient? For starters, the web UI is designed to be reachable from the web, with configs for Authelia, traefik-forwardauth, and Nginx Proxy Manager. The coordinator can be run in Docker, but bare metal is generally easier and more compatible. And with an exposed m2m API, you can integrate shuthost with tools like Home Assistant for even more flexibility.
Integration and Flexibility
One of the things I love about shuthost is its flexibility. The API is documented and not too complex, making it easy to integrate with other tools and scripts. And with flexible host configuration, you can adapt shuthost to fit your specific needs. Whether you’re running a homelab or just trying to save energy at home, shuthost is a great solution.
Tech Details
So what’s under the hood? Shuthost is fully open source, with a permissive 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). But don’t worry – it’s not vibe-coded, and the developer has worked hard to document the gotchas and smooth out any quirks.
Getting Started with shuthost
So how do you get started with shuthost? First, head over to the GitHub page and check out the documentation. From there, you can download the code and start setting up your own self-hosted standby manager. And if you have any questions or need help, the developer is active on Reddit and happy to assist.
Overall, I’m really impressed with shuthost. It’s a simple, convenient solution for saving energy and managing your devices. And with its flexibility and customizability, it’s a great fit for anyone looking to take control of their technology.
Obudź się do oszczędności energii: Samoobsługowy menedżer trybu uśpienia dla Twoich urządzeń
Jako osoba, która szuka sposobów na zmniejszenie swojego śladu węglowego, byłam podekscytowana odkryciem projektu o nazwie shuthost. Jest to samoobsługowy menedżer trybu uśpienia, który pomaga Ci położyć swoje urządzenia do snu, gdy nie są używane, i obudzić je ponownie, gdy potrzebujesz. W tym poście, zagłębię się w to, czym jest shuthost, jak działa i dlaczego jest to przełom dla każdego, kto szuka sposobów na oszczędność energii.
Dlaczego potrzebujemy menedżera trybu uśpienia?
Przyznajmy to: uruchamianie naszych urządzeń 24/7 może być ogromnym marnotrawstwem energii. Ale jednocześnie, nie chcemy musieć ręcznie wyłączać i ponownie uruchamiać naszych urządzeń każdego razu, gdy ich nie używamy. To właśnie tutaj pojawia się shuthost. Jest to prosta, samoobsługowa rozwiązanie, które pozwala Ci definiować różne polecenia wyłączania dla każdego z Twoich urządzeń i nawet obudzić je ponownie, gdy potrzebujesz.
Jak działa shuthost?
Shuthost zapewnia interfejs sieciowy, który pozwala Ci wysyłać pakiety Wake-On-LAN i zarządzać trybem uśpienia/wyłączania dla wszystkich Twoich urządzeń. Obsługuje zarówno Linux, jak i macOS, i nawet ma tryb agenta bez usługi dla elastyczności w różnych systemach init. Ale to, co naprawdę wyróżnia shuthost, to jego funkcje wygody. Interfejs sieciowy jest instalowalny jako PWA, więc czuje się jak aplikacja na Twoim telefonie. I dzięki obsłudze uwierzytelniania zewnętrznego, możesz uzyskać dostęp do swoich urządzeń z dowolnego miejsca.
Funkcje wygody
Co sprawia, że shuthost jest tak wygodny? Po pierwsze, interfejs sieciowy jest zaprojektowany tak, aby był dostępny z sieci, z konfiguracjami dla Authelia, traefik-forwardauth i Nginx Proxy Manager. Koordynator może być uruchomiony w Docker, ale płyta główna jest geralnie łatwiejsza i bardziej kompatybilna. I dzięki eksponowanemu API m2m, możesz zintegrować shuthost z narzędziami takimi jak Home Assistant, aby uzyskać jeszcze większą elastyczność.
Integracja i elastyczność
Jedną z rzeczy, które uwielbiam w shuthost, jest jego elastyczność. API jest udokumentowane i niezbyt skomplikowane, co sprawia, że łatwo jest je zintegrować z innymi narzędziami i skryptami. I dzięki elastycznej konfiguracji hosta, możesz dostosować shuthost do Twoich specyficznych potrzeb. CzyUruchamiasz laboratorium domowe, czy po prostu starasz się oszczędzić energię w domu, shuthost jest doskonałym rozwiązaniem.
Szczegóły techniczne
Co więc jest pod maską? Shuthost jest w pełni otwarty, z permissive licencją MIT/Apache. Działa na wszystkim, od Raspberry Pi do dedykowanego serwera, i duże części kodu są generowane przez LLM (z dbałością o szczegóły). Ale nie martw się – nie jest to vibe-coded, a deweloper pracował ciężko, aby udokumentować pułapki i wygładzić wszelkie szorstkości.
Rozpoczęcie pracy z shuthost
Więc jak zacząć pracę z shuthost? Po pierwsze, przejdź na stronę GitHub i sprawdź dokumentację. Stamtąd możesz pobrać kod i zacząć konfigurować własny samoobsługowy menedżer trybu uśpienia. I jeśli masz jakieś pytania lub potrzebujesz pomocy, deweloper jest aktywny na Reddit i chętnie pomoże.
Podsumowując, jestem naprawdę zadowolony z shuthost. Jest to prosta, wygodna rozwiązanie do oszczędzania energii i zarządzania urządzeniami. I dzięki jego elastyczności i dostosowywaniu, jest to doskonały wybór dla każdego, kto szuka sposobów na kontrolowanie swojej technologii.