ajeje93 / raspberrypi-shutdown-server

Simple HTTP shutdown server for Raspberry Pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raspberry Shutdown Server

Just a simple HTTP server to shutdown/reboot your Raspberry PI.

Start with command:

SHUTDOWN_SERVER_PORT="<port>" SHUTDOWN_SERVER_API_KEY="<your api key>" python server.py

The server will be running on port specified by env SHUTDOWN_SERVER_PORT.

Make an HTTP GET with header x-api-key set to SHUTDOWN_SERVER_API_KEY value on path:

  • /shutdown to shutdown
  • /reboot to reboot

About

Simple HTTP shutdown server for Raspberry Pi

License:MIT License


Languages

Language:Python 100.0%