iOS shortcuts

User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

iOS shortcuts

Post by kw123 »

I am trying to setup several shortcuts that use the same ipnumber. I would like to use a variable to set the ip number once. Then use that variable in all other shortcuts.

I have been trying to do that for a day or so but can’t figure how to do that.

Has anyone done this?.. and how?

Karl.



Sent from my iPhone using Tapatalk
User avatar
berkinet
Posts: 3441
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Re: iOS shortcuts

Post by berkinet »

kw123 wrote:I am trying to setup several shortcuts that use the same ipnumber. I would like to use a variable to set the ip number once. Then use that variable in all other shortcuts.

I have been trying to do that for a day or so but can’t figure how to do that....

Via the clipboard, or likely more useful, via a file (like Dropbox or iCloud, etc.)
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: iOS shortcuts

Post by kw123 »

looks like iOS shortcuts do NOT have persistent / global variables..

But here is what seems to work:
A)
1. create a contact "ip" with last name = 192.168.x.x
B) in shortcuts:
1. contacts: select specific contact (ip number)
2. ssh: in hosts field select details of contact = last name
.. fill out userid, password and command

then there have several shortcuts with different commands

here the iPhone screen shot
Screen Shot 2019-07-24 at 12.10.43.png
Screen Shot 2019-07-24 at 12.10.43.png (196.58 KiB) Viewed 4731 times
Karl
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: iOS shortcuts

Post by kw123 »

more more comment:

it seems that shortcuts do not re-read the input apps, ie when changing the contact info the shortcuts continue to use the old info.
Even deleting the contact does not change the behavior of the shortcuts.


Using file info seems to work fine. When files are deleted , the shortcuts fail, when recreating them they work fine again.
So here the version that seems to be working well...
Screen Shot 2019-07-24 at 17.41.23.png
Screen Shot 2019-07-24 at 17.41.23.png (94.13 KiB) Viewed 4696 times
Although it is a little difficult to create a file in the shortcuts folder - first get a file editor. create the file with contents 192.162.x.x , then use files to move / copy the file into the shortcuts folder.

Karl
User avatar
mundmc
Posts: 1068
Joined: Fri Sep 14, 2012 4:34 pm

Re: iOS shortcuts

Post by mundmc »

Intrigued- what you up to here Karl?
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: iOS shortcuts

Post by kw123 »

I have been working on a big project for ~ six months.
Lot of hardware, wood, paint, plastic, cables sensors, step motor, 3watt rgb-led, electronics,display, switches, magnets and about 10k lines of python ...
one month left to go.


Sent from my iPhone using Tapatalk
mat
Posts: 776
Joined: Thu Nov 25, 2010 10:48 am
Location: Cambridgeshire - UK

Re: iOS shortcuts

Post by mat »

its a new door lock, I've seen the trailer :lol:

https://www.youtube.com/watch?v=9AYdLv0g67s
Late 2018 mini 10.14
User avatar
durosity
Posts: 4810
Joined: Thu May 10, 2012 3:21 pm
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: iOS shortcuts

Post by durosity »

Oooh that’s fancy!


Sent from my iPhone using Tapatalk Pro
Computer says no.
User avatar
mundmc
Posts: 1068
Joined: Fri Sep 14, 2012 4:34 pm

Re: iOS shortcuts

Post by mundmc »

kw123 wrote:I have been working on a big project for ~ six months.
Lot of hardware, wood, paint, plastic, cables sensors, step motor, 3watt rgb-led, electronics,display, switches, magnets and about 10k lines of python ...
one month left to go.
Please tell me it’s this!
Image
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: iOS shortcuts

Post by kw123 »

base it is round ~ 15 " in diameter 2.5" high, total weight = 5.0 US pound = 2.3kg
Post Reply

Return to “Karl's Plugins and Scripts”