Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMM-metlinkBus

A MagicMirror² module that displays live bus departure times for a chosen stop, using the Metlink Open Data API (Wellington, New Zealand region).

MMM-metlinkBus module showing upcoming bus departures

Dependencies

Installation

cd ~/MagicMirror/modules
git clone https://github.com/galaxatea/MMM-metlinkBus.git

Update

cd ~/MagicMirror/modules/MMM-metlinkBus
git pull

Config

Add this to the modules array in config/config.js:

{
  module: "MMM-metlinkBus",
  position: "top_right",
  config: {
    stopId: "6000",
    apiKey: "YOUR_API_KEY",
    displayedStops: "5",
    showTimeUntil: true,
    showClockTime: true
  }
},

Configuration options

Option Description Default
stopId ID of the stop to track (printed on the physical stop sign, or found on the Metlink website) "6000" (Wellington bus interchange)
apiKey Your free API key from the Metlink developer portal — (required)
displayedStops Number of upcoming departures to display "5"
showTimeUntil Show minutes until arrival (true / false) true
showClockTime Show 24hr clock time (true / false) true

Development status

Stable — working end-to-end and in daily use. Not actively seeking a co-maintainer, but bug reports and PRs are welcome via GitHub Issues. Note: This is my first public repo

AI use disclosure

Claude was used for the CSS and minor assistance in bug fixing.

About

A module for magic mirror that displays live departure times for a specified stop in the metlink network

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages