Page 1 of 1

iOS shortcuts

PostPosted: Tue Jul 23, 2019 10:41 pm
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

Re: iOS shortcuts

PostPosted: Wed Jul 24, 2019 10:38 am
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.)

Re: iOS shortcuts

PostPosted: Wed Jul 24, 2019 11:11 am
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 848 times


Karl

Re: iOS shortcuts

PostPosted: Wed Jul 24, 2019 4:42 pm
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 813 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

Re: iOS shortcuts

PostPosted: Wed Jul 24, 2019 7:47 pm
by mundmc
Intrigued- what you up to here Karl?

Re: iOS shortcuts

PostPosted: Wed Jul 24, 2019 11:03 pm
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

Re: iOS shortcuts

PostPosted: Thu Jul 25, 2019 7:38 am
by mat
its a new door lock, I've seen the trailer :lol:

https://www.youtube.com/watch?v=9AYdLv0g67s

Re: iOS shortcuts

PostPosted: Fri Jul 26, 2019 8:21 am
by durosity
Oooh that’s fancy!


Sent from my iPhone using Tapatalk Pro

Re: iOS shortcuts

PostPosted: Fri Jul 26, 2019 1:14 pm
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

Re: iOS shortcuts

PostPosted: Fri Jul 26, 2019 2:22 pm
by kw123
base it is round ~ 15 " in diameter 2.5" high, total weight = 5.0 US pound = 2.3kg