This MagicMirror module displays information about estimations for bus stops in the city of Valencia (Spain). The service is provided by EMT Valencia. Supports English (en), Spanish (es) and Catalan (ca).
- An installation of MagicMirror2
- xml2js
Navigate into your MagicMirror's modules
folder:
cd ~/MagicMirror/modules
Clone this repository:
git clone https://github.com/TheRaulXP/MMM-EMTValencia
Navigate to the new MMM-EMTValencia
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, and, optionally, the line number which you want to get information about. The stop number can be found by looking for it at EMT Valencia's website.
To use this module, add it to the modules array in the config/config.js
file.
modules: [
{
module: 'MMM-EMTValencia',
position: 'top_left',
header: 'My bus stop',
config: {
stopNumber: 683,
stopLine: null,
updateInterval: 10
}
},
]
The following properties can be configured:
Option | Description |
---|---|
stopNumber |
ID number of the bus stop. Required Value type: Integer Default value: 683 |
stopLine |
Bus line to filter, ignoring other lines that share the same stop. Value type: Integer Default value: null (Show every line from the stop) |
updateInterval |
Time (in seconds) to wait before refreshing the data from the API. Required Value type: Integer Default value: 10 |