OneBusAway / onebusaway-alexa

An Java-based app to communicate with Amazon Alexa for devices such as the Amazon Echo
Other
52 stars 18 forks source link

Support alarms for upcoming arrivals #80

Open barbeau opened 8 years ago

barbeau commented 8 years ago

Summary:

User request:

I would like to setup an alarm. “Echo setup an alarm 10 minutes before the 249 bus arrives”. I think that’s a killer feature.

Steps to reproduce:

N/A

Expected behavior:

Allow the user to set a reminder to alert them when the bus is arriving

Observed behavior:

N/A

Device:

Amazon Echo

barbeau commented 8 years ago

This would also require understanding routeIds and headsigns, which are alphanumeric. Currently we only support understanding city names and stop numbers (numeric only).

barbeau commented 7 years ago

We could support adding an alarm for a route similarly to how we're allowing route filters now, which is asking "Do you want to set an alarm for X?", and loop through current routes/arrivals to set the reminder.

barbeau commented 7 years ago

From a quick search it still appears as though Alexa Skill Kit doesn't directly support the concept of skill-generated alarms.

We may be able to use the OBA register-alarm-for-arrival-and-departure-at-stop API for this: http://developer.onebusaway.org/modules/onebusaway-application-modules/current/api/where/methods/register-alarm-for-arrival-and-departure-at-stop.html

This is what iOS is currently using, as native iOS doesn't provide a good reminder feature either.