This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
trigger:Web_Server [2018/07/16 02:55] peternlewis |
trigger:Web_Server [2018/07/16 03:21] JMichaelTX Clarified use of 4490 vs 4491; Change all to localhost |
||
---|---|---|---|
Line 7: | Line 7: | ||
If the Keyboard Maestro web server is enabled, then you can connect to it using your web browser. | If the Keyboard Maestro web server is enabled, then you can connect to it using your web browser. | ||
- | :!: Note: A HTTP Port of 4490 is used in all examples on this page. But it can be set to any port you prefer. | + | :!: Note: A HTTP Port of 4490 or 4491 is used in all examples on this page. But it can be set to any port you prefer. |
- | **To Display the Web Server User Interface** | + | **To Display the Web Server User Interface**\\ |
+ | (you can use either `127.0.0.1` or `localhost`. They are equivalent.) | ||
``` | ``` | ||
- | https://localhost:4491 | + | http://127.0.0.1:4490 <!- for normal connection -> |
+ | http://localhost:4490 <!- for normal connection -> | ||
+ | https://localhost:4491 <!- for secure connection -> | ||
``` | ``` | ||
- | (note the use of the **next** port number after the specified one for the secure connection) or | ||
- | |||
- | ``` | ||
- | http://127.0.0.1:4490/ | ||
- | ``` | ||
If you have configured a username and password for the web server, then you can log in and execute any active macro. You do not need to explicitly set a trigger, if you enable the web server, and configure a username and password, then all active macros can be executed via the web browser using the username and password. | If you have configured a username and password for the web server, then you can log in and execute any active macro. You do not need to explicitly set a trigger, if you enable the web server, and configure a username and password, then all active macros can be executed via the web browser using the username and password. | ||
Line 27: | Line 25: | ||
**To Execute a Specific Macro** | **To Execute a Specific Macro** | ||
```html | ```html | ||
- | https://127.0.0.1:4491/action.html?macro=<YourMacroUUID>&value=<TheTriggerValueToPass> | + | https://localhost:4491/action.html?macro=<YourMacroUUID>&value=<TheTriggerValueToPass> |
``` | ``` | ||
Line 61: | Line 59: | ||
**Connecting to Keyboard Maestro Web Server in Safari** | **Connecting to Keyboard Maestro Web Server in Safari** | ||
- | `URL: https://127.0.0.1:4491` | + | ``` |
+ | URL: https://localhost:4491 | ||
+ | ``` | ||
{{:trigger:km-server-in-safari.png?nolink|}} | {{:trigger:km-server-in-safari.png?nolink|}} |