Magic Mirror Module for Prague Integrated Transport (PID)
- shows departures and time left from departure from selected stops or nodes and their end station
- departures time are calculated by position of the vehicle by PID, this is not time table but live data
- stop is single stop
- node is two or more stops that share same name and location
This module is using Public Transport | Golemio API.
Magic Mirror Repository : https://github.com/MagicMirrorOrg/MagicMirror
cd ~/MagicMirror/modules/
git clone https://github.com/Zippycz3ch/MMM-PID
cd ~/MagicMirror/modules/MMM-PID
npm install
Basic config with one node, which is two stops.
{
module: "MMM-PID",
position: "top_left",
config: {
accessToken: "accessToken",
feeds: [
{
aswIds: 522,
title: "Ostrčilovo náměstí"
}
],
}
},
{
module: "MMM-PID",
position: "top_left",
config: {
accessToken: "accessToken",
coloredSameRoute: false, // set true as defailt, turn off by false
updateInterval: 5000, // 5000 ms as default. Each API key has a rate limit of 20 requests per 8 seconds.
feeds: [
{
aswIds: 522,
title: "Ostrčilovo náměstí" // If no title is set, aswIds or ids is used
},
{
ids: "U522Z1P",
limit: 2
},
{
ids: "U522Z2P"
}
],
}
},
Option | Description | Default |
---|---|---|
ids |
id of singular stop | null |
aswIds |
id of node | null |
title |
Title of the feed | ids or aswIds of the stop/node |
limit |
How many entries should be loaded | 7 |
updateInterval |
How often should the module fetch new information | 5000ms |
coloredSameRoute |
Departures of the same number/line with same ending station, have their numbers color matched | true |
accessToken |
access token to golemio API | null |
Find your stop ids or node aswIds.
StopID U754Z1P = aswIds 754