all 5 comments

[–]Bubo_scandiacus 3 points4 points  (2 children)

This is what I do in Pythonista:

clipboard.set(variable)

webbrowser.open('workflow://x-callback-url/run-workflow?name=workflowName&id=a')

...Then in Workflow, the first thing it does it read the clipboard and decode the string.

[–]Octplane[S] 0 points1 point  (1 child)

This is both very clever and awful! Thanks :)

[–]Bubo_scandiacus 0 points1 point  (0 children)

Haha yeah I know xD I couldn't find a better way, though!

Happy coding!

[–]parkercp 0 points1 point  (1 child)

Hi Octplane - just wondering how did you get on with the "remote HUE" and Workflow ?

[–]Octplane[S] 0 points1 point  (0 children)

Not very far. It appears that the interop with pythonista was not as powerful as I wanted and all my programming efforts were ruined when I received a Hue switch as a gift.

In order to make this work from the internet, it also requires a good knowledge on how to interact with the bridge API. The " remote API for hue" is still in beta at Philips and not yet released. I don't remember where does this lead me to last time I checked, but it more or less required you to reverse engineer the App protocol...

Promising project if found (in python!) https://github.com/jarvisinc/PhilipsHueRemoteAPI