Skip to content

Instantly share code, notes, and snippets.

@rafabene
Created October 8, 2019 00:19
Show Gist options
  • Save rafabene/7d1128c30c7d818c79528a6eebdd1507 to your computer and use it in GitHub Desktop.
Save rafabene/7d1128c30c7d818c79528a6eebdd1507 to your computer and use it in GitHub Desktop.
config.js Magic Mirror
/* Magic Mirror Config Sample
*
* By Michael Teeuw http://michaelteeuw.nl
* MIT Licensed.
*
* For more information how you can configurate this file
* See https://github.com/MichMich/MagicMirror#configuration
*
*/
var config = {
address: "localhost", // Address to listen on, can be:
// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
// - another specific IPv4/6 to listen on a specific interface
// - "", "0.0.0.0", "::" to listen on any interface
// Default, when address config is left out, is "localhost"
port: 8080,
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
// or add a specific IPv4 of 192.168.1.5 :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
language: "en",
timeFormat: 12,
units: "metric",
modules: [
{
module: "alert",
},
{
module: "updatenotification",
position: "top_bar"
},
{
module: "clock",
position: "top_left"
},
{
module: "calendar",
header: "Agenda",
position: "top_left",
fetchInterval: 1000,
config: {
colored: true,
calendars: [
{
symbol: "calendar-check-o ",
url: "https://calendar.google.com/calendar/ical/rafabene%40gmail.com/private-f755c480a7c5e6d3048a37174be367f4/basic.ics"
}
]
}
},
{
module: "compliments",
position: "lower_third"
},
{
module: "currentweather",
position: "top_right",
config: {
location: "Brasília",
locationID: "3459342", //ID from http://www.openweathermap.org/help/city_list.txt
appid: "XXXXXX",
}
},
{
module: "weatherforecast",
position: "top_right",
header: "Weather Forecast",
config: {
location: "Brasília",
locationID: "3459342", //ID from http://www.openweathermap.org/help/city_list.txt
appid: "XXXXXX",
}
},
{
module: "MMM-DailyBibleVerse",
position: "bottom_bar",
config: {
version: 'NTLH', // This can be changed to any version you want that is offered by Bible Gateway. For a list, go here: https://www.biblegateway.com/versions/,
size: 'small'
}
}, {
module: "MMM-NowPlayingOnSpotify",
position: "top_right",
config: {
showCoverArt: false,
clientID: "XXXXXX",
clientSecret: "XXXXXXX",
accessToken: "XXX",
refreshToken: "XXXXX"
}
}, {
module: "MMM-SingleStock",
position: "top_right",
config: {
stockSymbol: 'ORCL',
apiToken: 'XXXXX',
updateInterval: 1800000, // 30 minutes in milliseconds
showChange: true, // false | true
label: 'symbol' // 'symbol' | 'companyName' | 'none' | any string
}
}
]
};
/*************** 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