I have a service at my home, on a Raspberry Pi for example, which should execute depending on where I am (work, home, shop,...)
Use case example : Send a reminder to somebody in my house but not when I am at my house
Is there a way for my Raspberry Pi to query my (android) phone and get my position ?
In fact I would like to do like this answer, which is geofencing but in reverse. I have for example Tasker which could send my approximate position on well known places (work, home, shop,...) when I enter or leave, but it comes back to how to query Tasker from outside my phone.
For the moment I am thinking of pushing my position at a server every ~30 minutes so my service could query my last position. Of course real time (~5 minutes) is better.