Wi-Fi Triggers

Works with Autocuts to automatically run shortcuts when you connect or disconnect from Wi-Fi networks.

The Wi-Fi personal automation in iOS 13.1 requires the user to tap to confirm in order for the shortcut to run. Wi-Fi Triggers removes this requirement when you use it with Autocuts, the background shortcut manager for iOS 13.1 and higher. Autocuts ties in with the Open App personal automation. Whenever you open one of your favorite apps, all of your queued up background shortcuts will run automatically in the background.


Example Use Cases

Here are some use cases for Wi-Fi Triggers:


Download

Download the latest version of Wi-Fi Triggers from RoutineHub:


Usage

Opening Wi-Fi triggers displays the following menu of commands:

New Wi-Fi Trigger

When you create a new Wi-Fi Trigger, you will be guided through a step-by-step assistant, which will ask you the following questions:

  1. Wi-Fi Trigger Type: Choose from a trigger when you connect to a Wi-Fi network or when you disconnect from a Wi-Fi network.
  2. Wi-Fi Network Name: Enter the name of the Wi-Fi network you want to monitor. Separate additional networks with new lines. By default, the current Wi-Fi network will be displayed in the dialog.
  3. Action: Choose whether you want to run a shortcut, run a shortcut with a notification, or simply display a notification to the user when the Wi-Fi trigger is triggered.
  4. Choose the shortcut that will run.
  5. Choose whether the shortcut can run in the background or if it requires the Shortcuts app to be opened and made the frontmost application.
  6. If you chose to display a notification, enter the text for the notification. The triggered Wi-Fi network will be available as a variable in the text using the token .
  7. Decide if you want the notification to play a beep.
  8. Name the new Wi-Fi trigger.
  9. Choose the destination for your new Autocut.

Your Autocut will be created and scheduled in Autocuts. To view it:

  1. Tap Open Autocuts Admin from the Wi-Fi Triggers Home page.
  2. Tap View Autocuts.
  3. Tap on the name of the Wi-Fi trigger that you created in the previous section.

Workflow

You can have multiple Autocuts that references different Wi-Fi triggers that you create in the Wi-Fi Triggers shortcuts. A log is created with all the different Wi-Fi networks that you connect to during the day in a log file located on iCloud Drive at:

iCloud Drive / Shortcuts / Autocuts Wi-Fi Triggers / networks-.txt

Whenever Autocuts runs, either manually or automatically via an Open App personal automation, Wi-Fi Triggers will record the name of the current wireless network your device is connected to if it is different from the previous network check.

If the previous and current networks are different, the trigger will be evaluated. If you are connecting to the triggered network, or if you left the triggered network, Autocuts will execute the selected action.

If you chose to run a shortcut, the shortcut will then be run automatically. If your shortcut requires the Shortcuts app to be in the foreground, it will be immediately opened.


Advanced


Localization

Wi-Fi Triggers is currently available in English, but the shortcut is fully ready to be localized. If you are interested in contributing a localization file, visit Wi-Fi Triggers page on GitHub for more details.


License

Copyright © 2019 Adam Tow • tow.com • @atow

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.