No Description
Philippe Caseiro c6e9107fa5 Begin of Real screen management 1 year ago
handlers Begin of Real screen management 1 year ago
templates Begin of Real screen management 1 year ago
themes Adding first try on Web UI ... 1 year ago
utils Begin of Real screen management 1 year ago
.gitignore Update gitignore 1 year ago
LICENSE Initial commit 1 year ago
Makefile Don't try to halt localhost ! 1 year ago
README.md Adding some kind of Makefile 1 year ago
hotdog.service Updating application with a welcome page 1 year ago
main.go Begin of Real screen management 1 year ago
modd.conf Adding modd configuration 1 year ago
test.sh Ajout de la route "/reboot" pour relancer les soldats 1 year ago

README.md

HotDog

Simple and stupid os manager Just run simple actions on a host with an REST API We just need to poweroff some RPI …

How to use it with raspbian

  • Build :

GOARCH=arm GOARM=7 go build -v -o hotdog main.go or make rpi

  • Update the Key in the systemd configuration file … (yes yes it will change someday)
  • Deploy the systemd script and the binary on the host (use SSH … or something)
  • Start the service !

  • Use a web browser or curl or whatever

API :

http://HOST_IP:4242/halt?SecretKey=YOUR_KEY_AS_IN_INIT_CONFIGURATION

… result ===> The host will shutdown !