Files
Flexera-Launcher/flexera/res/xml
TMCandClaude Opus 5.5 093a9d03e5 Car widget: where the car is parked, from a Traccar server, on a map
A new widget of the launcher's own, drawn by the launcher like the picture
and clock widgets. It shows a map of the streets around the car with the car
in the middle, the street, and how long the car has stood there, or how fast
it drives. A tap opens directions to the car in the maps app.

- Traccar: the owner's own server, over HTTPS only, signed in with a token
  made in Traccar. The latest position comes from /api/positions, and how
  long the car has been parked from the stops report. Redirects are not
  followed, so the token goes nowhere else.
- The token is kept encrypted with a key in Android's keystore, and is not
  in backups. One sign-in serves every car widget; each widget follows one
  device.
- Asked for only while a widget can be seen: every two minutes at most
  while the car is parked, more often while it drives, and less often after
  a failure. A token Traccar refused is not tried again until the owner
  signs in anew.
- The street comes from Traccar when it has one, else from the phone's own
  address lookup, kept while the car stays within 40 m.
- The map: OpenStreetMap's tiles, kept for a week and then checked again,
  two at a time at most, with the credit on the map. The map turns dark with
  the dark theme.
- Options sheet: server, token, then the car, with messages for a wrong
  token, a server that is not Traccar, no HTTPS, a bad certificate, and
  Android 17's local network permission (the server may be at home).
- Shaped like the other widgets: icon-aligned edges and the icon shape's
  corners. Short and wide, the lines go beside the car; the car keeps clear
  of the credit.
- WidgetSight: the picture widget's "can it be seen" check, now shared.
- About: the privacy text names the RSS reader and the car widget among
  what goes online.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 18:57:40 +01:00
..