Skip to content

Node app for Västtrafik API call (OAUTH2, returning a departure board for a particular stop), used to spit out frames for a Lametric Internet clock app.

Notifications You must be signed in to change notification settings

pixelthing/lametric-vasttrafik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#lametric-vasttrafik

Node app for Västtrafik API call (OAUTH2, returning a departure board for a particular stop), used to spit out frames for a Lametric Internet clock app.

The current LaMetric app is a simple indicator that polls every 15 secs. It has the following fields that are set in the LaMetric app and passed to the node app via URL args:

  • stopid (Text field - the Västtrafik id of the stop/hållplats to monitor)
  • track (Text field - the Västtrafik id of the track of the stop to monitor eg comma delimted "A,C" for monitoring multiple stops or sides of the road - but remember if you monitor both directions, the different directions are not displayed on the screen)
  • framesmax (Number - the number of coming departures to show before looping)
  • mintime (Number - the minimum number of minutes a departure can be, ie if it took you 3 mins to get to the stop, you could set "3" and it wouldn't show any trams leaving in less than 3 minutes)

##Notes:

About

Node app for Västtrafik API call (OAUTH2, returning a departure board for a particular stop), used to spit out frames for a Lametric Internet clock app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published