Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Alvinger/MMM-ResRobot
ResRobot module for Magic Mirror 2 - Display public transport departures
https://github.com/Alvinger/MMM-ResRobot
Last synced: 22 days ago
JSON representation
ResRobot module for Magic Mirror 2 - Display public transport departures
- Host: GitHub
- URL: https://github.com/Alvinger/MMM-ResRobot
- Owner: Alvinger
- Created: 2016-09-27T09:03:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-23T23:00:58.000Z (10 months ago)
- Last Synced: 2024-08-04T10:03:13.083Z (4 months ago)
- Language: JavaScript
- Size: 69.3 KB
- Stars: 13
- Watchers: 2
- Forks: 14
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-mmm - **MMM-ResRobot**
README
# MMM-ResRobot
A module for MagicMirror2 (https://github.com/MichMich/MagicMirror) which shows scheduled departures from public transport stop(s) in Sweden. The module
uses the ResRobot API for which you do need to obtain an API key, see below.# Install
1. Clone repository into `../modules/` inside your MagicMirror folder.
2. Run `npm install` inside `../modules/MMM-ResRobot/` folder
3. Find your Station ID at https://www.trafiklab.se/api/resrobot-reseplanerare/konsol. Select "Location Lookup" as Method and type your station name in "Location Name".
4. Add the module to the MagicMirror config
```
{
module: "MMM-ResRobot",
position: "left",
header: "Departures",
config: {
routes: [
{from: "", to: ""}, // ResRobot Station IDs of starting and destination station(s). At least one route must be defined.
{from: "", to: ""}, // "from" is required but "to" is optional (set "to" to empty string to indicate all destinations)
],
skipMinutes: 0, // Skip departures that happens within the next minutes.
maximumEntries: 6, // Number of departures to show on screen
maximumDuration: 360, // Number of minutes to search for departures
getRelative: 0, // Show relative rather than absolute time when less than minutes left to departure, 0 = stay absolute
truncateAfter: 5, // A value > 0 will truncate direction name at first space after characters. 0 = no truncation
truncateLineAfter: 5, // A value > 0 will truncate line number characters. 0 = no truncation
showTrack: true, // If true, track number will be displayed
coloredIcons: false, // Setting this to true will color transportation type icons according to colors in colorTable
apiKey: "" // Your ResRobot apiKey
}
},
```
# Get API keyYou need to obtain your API key here: http://www.trafiklab.se, you want one for API "ResRobot v2.1". If you have a key for 2.0 you need to get a new one.
Registration is free but required.