Closed kristopolous closed 4 years ago
I'm adding a function to lib.py, get_location_now(). This will poll the GPS directly for the latest location and, on failure, will fall back to our most recently saved location. The 'time' value in the dict should be used to determine if the location is recent enough for the caller's use case.
get_location_now() has been removed and replaced with save_location_now() so that engine.js via the ScreenDaemon can request that the current gps location be saved to the database.
So currently the gps polls independently of when the ads play.
Ideally we'd like to know however, the position of the car at the start of the play, the end of the play, and maybe, just maybe, a point in between, if possible.
Currently they have different cadence and coarsely overlay, giving a rather incomplete depiction of the history