Skip to content

Instantly share code, notes, and snippets.

@ryck
Created June 8, 2017 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryck/4d22d61dc3d2030ed4605ec98d111164 to your computer and use it in GitHub Desktop.
Save ryck/4d22d61dc3d2030ed4605ec98d111164 to your computer and use it in GitHub Desktop.
/* Magic Mirror Config Sample
*
* By Michael Teeuw http://michaelteeuw.nl
* MIT Licensed.
*/
var config = {
port: 8585,
// address: "192.168.1.100",
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses.
language: "en",
timeFormat: 24,
units: "metric",
zoom: 0.5,
electronOptions: { fullscreen: false, width: 800, height: 600 },
modules: [
{
module: "alert",
},
{
module: "updatenotification",
position: "top_bar"
},
{
module: "clock",
position: "top_left"
},
{
module: "currentweather",
position: "top_right", // This can be any of the regions.
// Best results in left or right regions.
config: {
// See 'Configuration options' for more information.
location: "London, UK",
locationID: "2643741", //Location ID from http://openweathermap.org/help/city_list.txt
appid: "c1a6cd220175b8c1e32dad5ffb56617a" //openweathermap.org API key.
}
},
{
module: "MMM-UKLiveBusStopInfo",
position: "bottom_left",
header: "Departures", //Optional - delete this line to turn OFF the header completely
config: {
atcocode: "490016149E", // ATCO code for specific bus stop
app_id: "a74f6136", // TransportAPI App ID
app_key: "d1e5dcaceed002c548a7c0f76c22e72d", // TransportAPI App Key
limit: 5, // Optional - Maximum results to display.
nextBuses: "true", // Optional - Use expensive RealTime info from NextBuses
showRealTime: true, // Optional - show realtime departure info
showDelay: true, // Optional - show delay in minutes based on Real Time info vs Time table
}
},
{
module: "MMM-UKNationalRail",
position: "bottom_right",
config: {
stationCode: "MTC", // CRS code for station
app_id: "a74f6136", // TransportAPI App ID
app_key: "d1e5dcaceed002c548a7c0f76c22e72d", // TransportAPI App Key
maxResults: 5, //Optional - Maximum results to display.
showOrigin: false, //Optional - Show the origin of the train in the table
calling_at: "BAL",
train_status: "passenger",
showPlatform: false,
header: "Mitcham Esastfields",
debug: true,
}
},
{
module: "MMM-UKNationalRail",
position: "bottom_right",
config: {
stationCode: "SRC", // CRS code for station
app_id: "a74f6136", // TransportAPI App ID
app_key: "d1e5dcaceed002c548a7c0f76c22e72d", // TransportAPI App Key
maxResults: 5, //Optional - Maximum results to display.
showOrigin: false, //Optional - Show the origin of the train in the table
calling_at: "SPB",
train_status: "passenger",
showPlatform: false
}
},
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment