- Základní údaje
- Napsal Super User
- Kategorie: Libreelec
- Zobrazení: 1019
Reboot:
curl -v -u user:password -H "Accept: application/json" -H "Content-type: application/json" -d '{"id":1,"jsonrpc":"2.0","method":"System.Reboot" }' http://192.168.1.20:8080/jsonrpc
Shutdown:
curl -v -u user:password -H "Accept: application/json" -H "Content-type: application/json" -d '{"id":1,"jsonrpc":"2.0","method":"System.Shutdown" }' http://192.168.1.20:8080/jsonrpc
Notifikace do rozhraní:
curl -v -u user:password -H "Accept: application/json" -H "Content-type: application/json" -d '{"id":1,"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"My Title!","message":"My Message","displaytime":'"50000"'}}' http://192.168.1.20:8080/jsonrpc