Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn on GPS when new emitter seen and location unknown #34

Open
icjuego opened this issue Dec 5, 2019 · 0 comments
Open

Turn on GPS when new emitter seen and location unknown #34

icjuego opened this issue Dec 5, 2019 · 0 comments

Comments

@icjuego
Copy link

icjuego commented Dec 5, 2019

I have a suggestion. Deja Vu could currently monitor for emitters appearing constantly with very low power usage. Then, if Deja Vu sees an emitter it hasn't seen before, it should try and get the most accurate location with low power usage. The logic would be as follows:

  1. A GPS location is already obtained for some other app, we already have an accurate location, use it. (current behaviour)
  2. We can get a network location from Deja Vu or another provider. Use that. Less accurate, but low power.
  3. If the above fails, request a lock on GPS for long enough to get a location, record the details, and release the lock.

This would allow it to minimise GPS usage while updating the database more regularly.

At the moment I find myself forcing a GPS lock for long periods when on longer trips to gather data, which smashes my battery life.

I'd be happy to implement this if you're interested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant