Was hoping to pick the brains of this group. This is purely a “for fun” project, definitely not anything I need. But I like playing w Shortcuts and we services.
I got access to a private API that allows me to query a global database where I can see what planes are in the air at any time. I can query by area, type, etc.
I was able to successfully create a Shortcut on my phone and run it, it returns JSON which I’ll have to figure out how to parse.
But here’s my minor dilemma. One thing I might like to do is say, “let me know when there’s a helicopter within 30 miles of this location.” Or maybe, “let me know anytime a U2 plane is in the air.”
This system doesn’t push out any alerts, you can only query it via the API. I suppose I could run the Shortcut every 10s, but I don’t think I can schedule things that way on iOS, no repeating tasks, only scheduled tasks? And even if I could I don’t think I want to either hammer the iPhone battery or the API that much.
Now if this was say Shortcuts worked on macOS, running on a Mac I leave up 24/7, then that would change things. I know I could write a traditional app or series of shell scripts on macOS now and do it but I don’t really want to. I want to play with Shortcuts.
[ @RosemaryOrchard I wonder if this or similar would be a good show topic? ]
So like I said I’m looking to pick people’s brains for some creative ideas to tinker with this some more. But I don’t want to create a Rube-Goldberg contraption either.
Interested in everyone’s thoughts. While the thing I’m working on is specific, I’m guessing the general problem of polling and scheduling is more general?