Skip to content

Get live estimations for bus stops in Zaragoza (Spain) on your MagicMirror.

License

Notifications You must be signed in to change notification settings

rafagale/MMM-TUZSAZaragoza

Repository files navigation

Module: MMM-TUZSAZaragoza

This MagicMirror module displays information about estimations for bus stops in the city of Zaragoza (Spain). Supports English (en) and Spanish (es).

Module screenshot

Dependencies

Installation

Navigate into your MagicMirror's modules folder:

cd ~/MagicMirror/modules

Clone this repository:

git clone https://github.com/rafagale/MMM-TUZSAZaragoza

Navigate to the new MMM-TUZSAZaragoza folder and install the node dependencies.

npm install

Configure the module in your config.js file.

Find your stop number

To configure this module, you will need a stop number which you want to get information about. The stop number can be found by looking for it at Zaragoza public transport website.

Zaragoza public transport website

Using the module

To use this module, add it to the modules array in the config/config.js file.

modules: [
  {
    module: 'MMM-TUZSAZaragoza',
    position: 'top_left',
    header: 'My bus stop',
    config: {
      stopNumber: 325,
      updateInterval: 60, //in seconds
      fadeSpeed: 1000 //in miliseconds (set to 0 to disable fade animation)
    }
  },
]

Configuration options

The following properties can be configured:

Option Description
stopNumber ID number of the bus stop.

Required
Value type: Integer
Default value: 325
updateInterval Time (in seconds) to wait before refreshing the data from the API.

Required
Value type: Integer
Default value: 60
fadeSpeed Time (in miliseconds) for the fade speed.

Required
Value type: Integer
Default value: 1000

Special Thanks

About

Get live estimations for bus stops in Zaragoza (Spain) on your MagicMirror.

Resources

License

Stars

Watchers

Forks

Packages

No packages published