IOS app trigger python script
I have this idea. Not sure that it is possible, but I 'll ask anyway.
I have the Ring doorbell and Iphone app that pushes notification on my IPhone when somebody pushed the ring button at my door. I also have a separate IP security camera at my door.
I wander if it is possible to "intersept" the notification from the Ring app and trigger a python script that would make the security camera to snap a picture.
I don't think I can use appex library because Ring app does not have share option.
Any ideas if this could be done?
Most likely this is not possible. There are only two ways to run a script in Pythonista: either manually (run button, console, etc.) or using the
pythonista3://URL scheme (by clicking on a link, with a home screen shortcut, etc.). It's not possible to set up any other "background triggers" for Pythonista scripts.
If you could make your doorbell app open a Pythonista URL when the bell is rung, then you could use that. But I'm not sure if iOS allows apps to do that sort of thing in the background - opening a Pythonista URL would run Pythonista as the foreground app, and I'd be surprised if iOS allows a background app to trigger that.
It does seem that you can do IFTTT stuff with Ring... https://ifttt.com/ring
IFTTT is a great idea, I think I can work with this