Skip to content

Example use cases: Shortcut for iOS

Johannes edited this page Mar 12, 2020 · 7 revisions

Today view on iOS devices

Currently I'm using the script (located on my RaspberryPi which is always connected to my router via ethernet) combined with Shortcuts (https://itunes.apple.com/de/app/workflow/id915249334?mt=8) on my iPhone/iPad.

Shortcuts offers the possibility to send SSH commands directly to your raspberry or to any other SSH capable device. After creating the workflow itself, I have added them to the Today Widget view for faster access.

On the right side you can see my current today view in iOS 13 with access to switch on/off the WiFi of the router and repeater. In addition I have fast access to switch on/off the lights in front of the Fritz!Box.

Find below a description on how to create one of these shortcuts.

Setup

  1. Open the shortcuts app and create a new shortcut
  2. Click on "Add action"
  3. Search for SSH and select the action
  4. Add your Host, Port, user, password and script to be executed (e.g. /location/on/your/server/fritzBoxShell.sh WLAN 1)
  5. Define a name and select your preferred icon and click on "Done"
  6. Run your shortcut

iOS_Shortcut_Setup.png