Skip to content

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

Notifications You must be signed in to change notification settings

raulbalanza/MMM-EMTValencia

Repository files navigation

Module: MMM-EMTValencia

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).

Module screen

Dependencies

Installation

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.

Find your stop number

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.

EMT Valencia's website

Using the module

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
    }
  },
]

Configuration options

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published