Skip to content
Magic Mirror Module for OneBusAway
JavaScript CSS
Branch: master
Clone or download
Latest commit 436dfa6 Jun 5, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img readme details May 5, 2018
.gitignore git ignore May 5, 2018
MMM-OneBusAway.css Allows to filter from the list of buses in the config file Jun 5, 2018
MMM-OneBusAway.js Allows to filter from the list of buses in the config file Jun 5, 2018
README.md Fix formatting on README Jun 5, 2018
node_helper.js Cleanup code May 5, 2018
oba_logo.png adding icon May 5, 2018

README.md

MMM-OneBusAway

Alt text

A module for the Magic Mirror.

This module displays ETA for buses using the OneBusAway API

Installation

To install, clone this repository into your modules folder. Then add the following to your configuration file:

{
    module: 'MMM-OneBusAway',
    position: 'top_right',
    config: {
        stopId: "1_2672",    //the stop id you want to see the buses ETA
        buses: ["1_102581"], //the list of buses you want to filter on
        maxResults: 5,      //number of next bus departures to show
        fadeSpeed: 1000 * 60 // 1 minute
    }
},

To get the stopId you want for your location you can use the OneBusAway API with the lattitude and longitude of the stop you want.

Configuration Options

The following properties can be configured:

Options Description
stopId Can be changed to any string, must be a valid stopId known by OneBusAway API
buses List of any string that you want to filter on, must be a valid routeId known by OneBusAway API
maxResults Number of maximum bus departures to show
fadeSpeed The refresh interval for the buses ETA, in milliseconds
You can’t perform that action at this time.