Skip to content

platisd/vasttrafik-google-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VasttraPi on Google Assistant

A simple Python web server, in Flask, which is interfaced with an Action on Google Assistant. The server reuses code from VasttraPi to communicate with Västtrafik so to fetch the latest departures for the selected stations.

Read more about the project here.

VasttraPi and Google Home Mini

Get started

If you want a custom Google Action that talks to a sample Python server, then please follow this Instructable.

To set up a REST server that retrieves departures from Västtrafik:

  • Install PyTrafik
    • git clone https://github.com/axelniklasson/PyTrafik.git
    • sudo pip3 install PyTrafik/
  • Create an api-config file in the root folder of this repository with your Västtrafik API tokens
  • Edit bus_assistant.py by providing your business logic (e.g. stations of interest)
  • Run bus_assistant.py
    • python3 bus_assistant.py

Media

Releases

No releases published

Packages

No packages published

Languages