Ah, then you are stuck with the GPS Streaming Widget (I think that works with iOS) and comparing incoming location with a preset range via code… and NO I have not seen any pre-done Blynk code (but you can search this forum in case there is any).
But I am sure Google has seen the needed formulas, algorithms and Arduino code… then it is just a matter of using said methods within a Blynk sketch.
The issue I see with your approach is that the NodeMCU needs to calculate when the trigger needs to be executed (the NodeMCU can be off and I don’t want to flood the system with information over the cloud).
I will need the mobile device to calculate and decide when to trigger, can I add this code into the Blynk App?
Not my approach, rather the way it is normally done… The App is primarily a UI conduit with minimal “calculating” functions (AKA eventor). Code on the MCU device is the way complex things happen.
i also have ios and i do not know gps trigger. but I would like to try with gps streamer. with an if you are in 38.4788 15.5677 open pin 5 (gate). if anyone of you helps me, the code would be wonderful
I am sure that was just an oversight, by @Gunner. He responds to so many topics on this forum, I bet it is hard to keep track of them all.
But either way, most here are willing to help, but not just write code for you. You will need to do the bulk of the work and then ask for help with specific aspects of your code that are not quite working.
But the “gps stream” seems to work with iOS, right?
And that should be enough to trigger an action on the hardware side.
'Cause what does the “gps trigger” in the app(on android) actually do?
It calculates distance between two GPS coordinates
I’d suggest sending the position via “gps stream”
and do the calculation and evaluation of the distance on the hardware side.