Page 1 of 5

Siriproxy is back!!! (um, functionally)

PostPosted: Wed Oct 10, 2018 9:14 pm
by mundmc
iOS Shortcuts + Pythonista = gold

“Hey Siri, broadcast this rules”

Image

Image

And there you have it- easily use Siri to manipulate Indigo Variables!


Sent from my iPhone using Tapatalk

Re: Siriproxy is back!!! (um, functionally)

PostPosted: Thu Oct 11, 2018 9:47 am
by jay (support)
Awesome!

Re: Siriproxy is back!!! (um, functionally)

PostPosted: Thu Oct 11, 2018 10:00 am
by mundmc
Right!!!!???? Seriously, this is huge. No “tell Indigo,” “ask Indigo,” “Take a note,” workarounds!

Re: Siriproxy is back!!! (um, functionally)

PostPosted: Thu Oct 11, 2018 10:06 am
by jay (support)
Has anyone else noticed that Shortcuts is super crashy and inconsistent? On my iPhone X, after first launch, pretty much anything you do causes a crash. Relaunch and it usually works though I've often had second crashes. Then it seems to work.

Also, I can't seem to get any Dictation to work - it always gives me this error after it stops listening while it's trying to process the speech: "The operation couldn't be completed. (kAFAssistantErrorDomain error 1.)"

Re: Siriproxy is back!!! (um, functionally)

PostPosted: Thu Oct 11, 2018 10:09 am
by mundmc
I have had no problems on an iPhone 8. I don’t run the above shortcut from a widget, but from a Siri voice shortcut. It’s been stable for 12 hours so far. No similar errors.

Re: Siriproxy is back!!! (um, functionally)

PostPosted: Thu Oct 11, 2018 10:21 am
by jay (support)
Can you do me a favor? When you add a Dictate Text in the shortcuts app, when you tap the "Choose" button next to Language, does it actually show anything or just a blank list? I have a suspicion that this is what's causing the Dictate Text issue for me. No idea how to get languages into that menu, I'm assuming that it's supposed to be populated by iOS, so likely a bug.

Re: Siriproxy is back!!! (um, functionally)

PostPosted: Thu Oct 11, 2018 10:25 am
by jay (support)
Just downloaded and tried it on my iPad and I'm getting languages in the popup and it's working, so this apparently is a bug on the iPhone X (or maybe my OS install is corrupt, which would totally suck since I'm careful to never install betas, etc)...

Re: Siriproxy is back!!! (um, functionally)

PostPosted: Thu Oct 11, 2018 10:26 am
by mundmc
Image
Image


Sent from my iPhone using Tapatalk

Re: Siriproxy is back!!! (um, functionally)

PostPosted: Thu Oct 11, 2018 10:26 am
by mundmc
jay (support) wrote:
Just downloaded and tried it on my iPad and I'm getting languages in the popup and it's working, so this apparently is a bug on the iPhone X (or maybe my OS install is corrupt, which would totally suck since I'm careful to never install betas, etc)...

Gigantic bummer!


Sent from my iPhone using Tapatalk

Re: Siriproxy is back!!! (um, functionally)

PostPosted: Thu Oct 11, 2018 10:29 am
by racarter
My iPhone X with the latest iOS 12.1 beta (sorry Jay!) works fine with this. I get the list of languages.

Re: Siriproxy is back!!! (um, functionally)

PostPosted: Thu Oct 11, 2018 10:38 am
by jay (support)
Damn damn damn. Guess I'll to wipe and start over...

Re: Siriproxy is back!!! (um, functionally)

PostPosted: Thu Oct 11, 2018 10:53 am
by siclark
Awesome. I want this.

Errr, what does it do and how do I do it?

Am I right in guessing run indigo actions from Siri?

Siriproxy is back!!! (um, functionally)

PostPosted: Thu Oct 11, 2018 11:32 am
by mundmc
siclark wrote:
Awesome. I want this.

Errr, what does it do and how do I do it?

Am I right in guessing run indigo actions from Siri?

Hey siclark,
I’m not sure what your Indigo familiarity is yet, but yes- this combo allows pretty simple and easy control or querying of Indigo.

https://wiki.indigodomo.com/doku.php?id ... stful_urls Has all of the REST commands.

Pythonista is a pretty awesome Python development platform that runs on iOS and takes input from Shortcuts

Shortcuts is, well, kinda like automator on OS X in that it tries to be an intuitive GUI.

Let me know if you need more specific info.

Right now, I just use it to put text in a variable on Indigo. Indigo runs a trigger on the variable change, and the contents of the variable are spoken out loud in my house. You could easily use the above combo to check the value of states and variables, to run action groups, all kind of stuff.

Sent from my iPhone using Tapatalk

Siriproxy is back!!! (um, functionally)

PostPosted: Thu Oct 11, 2018 1:34 pm
by siclark
Cool. I think.

So in your example, broadcast is your key word, which runs a python script so that "this rules" is put into the variable and your trigger causes"this rules" to be read out?


I presume I can have different key words to run different python scripts?
I'm beginning to see how this could be good.

My first thought is can we get a spoken "ten" converted to a number 10 so we can do sums or timers based on that value, ie not a string?
Clearly I should stick to simple tests first but where is the fun in that??

Simon



Sent from my iPhone using Tapatalk

Re: Siriproxy is back!!! (um, functionally)

PostPosted: Thu Oct 11, 2018 3:22 pm
by mundmc
siclark wrote:
Cool. I think.

So in your example, broadcast is your key word, which runs a python script so that "this rules" is put into the variable and your trigger causes"this rules" to be read out?


I presume I can have different key words to run different python scripts?
I'm beginning to see how this could be good.

My first thought is can we get a spoken "ten" converted to a number 10 so we can do sums or timers based on that value, ie not a string?
Clearly I should stick to simple tests first but where is the fun in that??

Simon



Sent from my iPhone using Tapatalk


To be specific, in this example:
1) Hey Siri (or a button push, which I use) activates Siri
2) “Broadcast” is the word I have Siri listen for to activate the Shortcut (you record the activation word in Shortcuts)
3) Shortcuts
a) listens for dictated text, stopping when I pause
b) sends that text to a Pythonista script on my phone
4) Pythonista
a) accepts the text argument
b) sends the argument to Indigo as a variable
5) Indigo does stuff

Yes, you can use python to convert “ten point five” to “10.5” on the iPhone or on the host Mac, for sure.


Sent from my iPhone using Tapatalk