The Remote trigger (v8+) lets you trigger selected macros from any device on the Internet, without authentication, via a Stairways Software web server. Of course, you have to have set this trigger on the Macro first.
For a good discussion, see:
Clearly there are some serious security issues with this, so you should use a lot of caution when you allow any macro to be executed with a Remote trigger.
Create a New Macro, and follow these steps:
The trigger uses a URL in the form of:
https://trigger.keyboardmaestro.com/t/<UniqueID1>/<UniqueID2>?TriggerValue
where:
/bin/open
command in Terminal, or a Execute a Shell ScriptIf more than one macro (on any Mac, anywhere in the world, yours, or anyone else's) has the same pair of UniqueIDs, then all those macros will trigger when the URL is accessed.
Generally, you should use the default values unless there is some reason to change them (such as explicitly wishing to trigger multiple macros in multiple locations).
When the macro executes, its %TriggerValue% token will hold the TriggerValue used in the Remote Trigger URL.
As with all triggers, macros are only available if they are currently active, that is if they are enabled and in a Macro Group that is enabled and active.
For example, if you are running some sort of process on your Mac that occasionally fails, you could write a script to restart it and make it available as a Remote triggered Macro, which you (or anyone else) could then execute to restart the process.
You can also connect up web services (eg HealthChecks.io) to trigger a macro based on whatever conditions they operate on.