anyone wrote:
The iOS shortcuts make GET requests, passing my API keys. For the garage, I wanted to examine the response, so I set the result to a variable.
The way I wrote this, any response with "denied" or "not authorized"within it is treated as a successful attempt. Indigo returns a HTTP code of 401 = "You are not authorized to access that resource" when it should be returning a 200 = "Ok". See my post here about that https://forums.indigodomo.com/viewtopic.php?f=10&t=25782
I believe I added the "denied" because on occasion for a non-isolated reason, I was getting that response as well.
CliveS wrote:Thank you, that works great on my iPhone and Apple Watch, I take it that the response part will need to be modified when HTTP code 401 is rectified to 200.
CliveS wrote:Is their a way in shortcuts to first try the local url and if that fails then use xxx.indigodomo.net?
anyone wrote:I started using NFC Tags this week after seeing some tutorials on how to set them up with Shortcuts and Home kit.
What stood out to me was how cumbersome the scripting on the iOS device was to do simple things like Toggle a light or add time conditions.
To set it up in Indigo, I followed the process to configure a Personal Automation to detect when a Tag is scanned. Once a tag is scanned, my iPhone vibrates to let me know it saw the tag, then a iOS Shortcut runs, which changes a variable in Indigo.
A Indigo trigger executes when it sees that variable change, and launches an Action Group to do whatever I want.
A huge advantage in incorporating Indigo in the use of NFC Tags is you only need to modify the Trigger and/or Action Group to change what happens when the Tag is scanned.
I am currently using tags on all of my doors with smart locks to simply unlock the door. Another tag I have in my office, is time based and performs certain actions in the morning when scanned and different actions in the afternoon.
Honestly...I'm still trying to wrap my head around what I could or want to do.
2022-05-10 21:19:59.528 Web Server request to set variable "AnyonesiPhone13" value to "FrontDoor" from ###.#.##.####
Different Computers wrote:Anyone working on, or have working, a way for Indigo to trigger a Shortcut?!
% shortcuts -h
OVERVIEW: Command-line utility for running shortcuts.
USAGE: shortcuts <subcommand>
OPTIONS:
-h, --help Show help information.
SUBCOMMANDS:
run Run a shortcut.
list List your shortcuts.
view View a shortcut in Shortcuts.
sign Sign a shortcut file.
See 'shortcuts help <subcommand>' for detailed help.
Different Computers wrote:Very curious what kind of implementation you are working on…Oh awesome! Thanks much.
mundmc wrote:Very curious what kind of implementation you are working on…
Users browsing this forum: No registered users and 6 guests