KieronQuinn / SmartspacerPlugins

A collection of plugins for Smartspacer
GNU General Public License v3.0
79 stars 2 forks source link

[Plugin Request] Time to Home and Time to Work #44

Closed sheikn closed 5 months ago

sheikn commented 5 months ago

App / Plugin Name

Google Maps Traffic Plugin

URL

No response

Description

The current Google Maps traffic plugin (as the name suggests) only displays traffic information. Would it be possible to display "Time to home" and "Time to work" at predefined times, like the Pixel phones do?

Where will the plugin get data from?

Widget

Requirements

KieronQuinn commented 5 months ago

I think At a Glance (either via Smartspace or the widget) already supports this doesn't it?

sheikn commented 5 months ago

Commute times now only get displayed on Pixels. I think they have been made Pixel exclusive as evidenced by the removal of the "Commute" settings on non Pixel devices https://chromeunboxed.com/pixel-at-a-glance-commute . However, the Google Distance Matrix api still allows retrieval of this information https://developers.google.com/maps/documentation/distance-matrix/overview

KieronQuinn commented 5 months ago

The AAG widget has support for commute time & time to leave on non-Pixels too. If the widget is not working for you, you may be able to use the notifications that appear on some devices with the same content (using the Notification Target), or you may need to contact Google because the widget does claim to support this functionality, and if it does show in the AAG widget it will show in Smartspacer.

Otherwise, that API is not free, in fact it would be very expensive, so is not viable.