Siri/IOS Shortcut to shutdown Volumio

Discuss about Hardware diy and tweaks

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

Siri/IOS Shortcut to shutdown Volumio

Postby sheridat » Fri Oct 25 2019 08:50

The following post https://forum.volumio.org/control-volumio-with-siri-using-shortcuts-app-t10724.html shows how IOS Shortcuts can be used to control volumio's behaviour. Underpinning those shortcuts are the Volumio REST API commands.

There isn't a REST API command to shutdown volumio.

However it turns out IOS shortcuts support sending commands over SSH.

See the screen shots below. Create a new shortcut and in the search bar type "ssh"
Select "Run Script Over SSH"
Select Show More and you are presented with a form to complete - that will contain your variables
Host is the IP address of your volumio
User is typically volumio unless you have called yours something else
Password is typically volumio unless you have changed yours
Input is "sudo shutdown -h"

Click on next and give your shortcut a name - I called mine "Power Off Radio"

To shutdown the Raspberry PI on which I run Volumio I simply say "hey Siri Power Off Radio" The notification's app sends "sudo shutdown -h" to the pi and the pi powers off.

IMG_0112.PNG
IMG_0112.PNG (78.23 KiB) Viewed 242 times


IMG_0111.PNG
IMG_0111.PNG (88.86 KiB) Viewed 242 times


IMG_0110.PNG
IMG_0110.PNG (104.54 KiB) Viewed 242 times
Random avatar
sheridat
Fresh off the boat
Fresh off the boat
 
Posts: 3
Joined: Sat Sep 01 2018 22:34

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

Return to Diy and Tweaks

Who is online

Users browsing this forum: No registered users and 0 guests