WaiveCar / WaiveScreen

WaiveScreen related stuff.
0 stars 0 forks source link

Gps needs to be corrected to the ads #284

Closed kristopolous closed 4 years ago

kristopolous commented 4 years ago

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

nthobe commented 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.

nthobe commented 4 years ago

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.