Siriproxy is back!!! (um, functionally)

Posted on
Wed Oct 10, 2018 9:14 pm
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

Siriproxy is back!!! (um, functionally)

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

Posted on
Thu Oct 11, 2018 9:47 am
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

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

Awesome!

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Oct 11, 2018 10:00 am
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

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

Right!!!!???? Seriously, this is huge. No “tell Indigo,” “ask Indigo,” “Take a note,” workarounds!

Posted on
Thu Oct 11, 2018 10:06 am
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

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

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.)"

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Oct 11, 2018 10:09 am
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

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

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.

Posted on
Thu Oct 11, 2018 10:21 am
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

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

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.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Oct 11, 2018 10:25 am
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

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

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)...

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Oct 11, 2018 10:26 am
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

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

Image
Image


Sent from my iPhone using Tapatalk

Posted on
Thu Oct 11, 2018 10:26 am
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

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

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

Posted on
Thu Oct 11, 2018 10:29 am
racarter offline
User avatar
Posts: 468
Joined: Jun 18, 2016
Location: North Yorkshire, UK

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

My iPhone X with the latest iOS 12.1 beta (sorry Jay!) works fine with this. I get the list of languages.

Posted on
Thu Oct 11, 2018 10:38 am
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

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

Damn damn damn. Guess I'll to wipe and start over...

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Oct 11, 2018 10:53 am
siclark offline
Posts: 1960
Joined: Jun 13, 2017
Location: UK

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

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?

Posted on
Thu Oct 11, 2018 11:32 am
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

Siriproxy is back!!! (um, functionally)

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

Posted on
Thu Oct 11, 2018 1:34 pm
siclark offline
Posts: 1960
Joined: Jun 13, 2017
Location: UK

Siriproxy is back!!! (um, functionally)

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

Posted on
Thu Oct 11, 2018 3:22 pm
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

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

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

Who is online

Users browsing this forum: No registered users and 0 guests

cron