This MagicMirror module displays information about estimations for bus stops in the city of Zaragoza (Spain). Supports English (en) and Spanish (es).
- An installation of MagicMirror2
- Axios (installed via
npm install
)
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.
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
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)
}
},
]
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 |
- Michael Teeuw for creating the awesome MagicMirror2 project that made this module possible.
- TheRaulXP for creating the MMM-EMTValencia module that I used as guidance in creating this module.