Skip to content

Smart mirror module to display real-time bus arrivals, hosted on Raspberry Pi

Notifications You must be signed in to change notification settings

yuhanx0728/smart-mirror-bus-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project description

This is a module I made for the MagicMirror², an open source modular smart mirror platform.

It displays real time Pittsburgh bus information from Port Authority for chosen bus routes and bus stops, including:

  1. chosen bus route
  2. arrival time
  3. remaining minutes to arrival time
  4. bus direction(inbound/outbound)
  5. chosen bus stop(name)
  6. bus destination

Default screenshot Verbose screenshot

Tech stack

Javascript, Node.js

How to run on your Magic Mirror

  1. Add MMM-PGHBus to your MagicMirror/modules directory
cd ~/MagicMirror/modules
git clone https://github.com/yuhanx0728/MMM-PGHBus/
cd MMM-PGHBus/
npm install
  1. Configure your MagicMirror/config/congfig.js file
modules: [
    {
        module: 'MMM-PGHBus',
        position: 'top_left',
        config: {
            key: "",  // get developer API key from https://truetime.portauthority.org/bustime/home.jsp
            busStopPairs: [],       // add as many "bus-stopID"s as you want, e.g."71C-2573", "71A-2573", "71A-2633"; stopID can be found on Google Map
            useHeader: true,                   // optional, default true
            header: "When Do Buses Come",      // optional
            verbose: false,                    // optional, default false
            maxWidth: "450px",                 // optional, default 450px
            updateInterval: 45 * 1000,         // bus schedule update speed, optional, default 45s
            animationSpeed: 3000              // fade in & fade out speed, optional, default 3s
        }
    }
]

About

Smart mirror module to display real-time bus arrivals, hosted on Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published