Power Management & ESP32 Remote
To optimize power consumption, the server operates on a strict schedule controlled by a custom ESP32 hardware remote and automated triggers. The ESP is connected to the motherboard using a relay module, allowing the user to power on the server remotely via a web interface. The communication between the ESP32 and the server is facilitated through an MQTT channel.
🎛️ Remote Access
- Dashboard: https://remote.parthjain.tech
- Hardware: ESP32 wired directly into the server cabinet.
⏱️ Daily Power Schedule
The server runs in three distinct windows every day: 07:30 - 10:00, 12:00 - 14:00, and 18:00 - 00:00.
| Action | Time | Trigger Mechanism |
|---|---|---|
| POWER ON | 07:30 AM | Cloudflare Worker via ESP32 |
| SHUTDOWN | 10:00 AM | Root Cron (/sbin/shutdown -h now) |
| POWER ON | 12:00 PM | Cloudflare Worker via ESP32 |
| SHUTDOWN | 02:00 PM | Root Cron (/sbin/shutdown -h now) |
| POWER ON | 06:00 PM | Cloudflare Worker via ESP32 |
| SHUTDOWN | 12:00 AM | Root Cron (/sbin/shutdown -h now) |
💡 Note: If you need to keep the server awake outside these windows, ensure you suspend the root cron jobs, or use the
caffeinebash alias (gnome-session-inhibit --inhibit idle sleep infinity), though a hardshutdown nowcommand will typically override user-space inhibitors.