My Magic Mirror Config.
/* Magic Mirror Config | |
* | |
* 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" | |
electronOptions: { | |
webPreferences: { | |
webviewTag: true | |
} | |
}, | |
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: "da", | |
timeFormat: 24, | |
units: "metric", | |
modules: [{ | |
module: "clock", | |
position: "top_right" | |
}, | |
{ | |
module: "calendar", | |
header: "I helligdage", | |
position: "top_right", | |
config: { | |
calendars: [{ | |
symbol: "calendar-check-o ", | |
url: "", | |
maximumEntries: 8, | |
}] | |
} | |
}, | |
{ | |
module: "MMM-Lunartic", | |
position: "top_right", | |
config: { | |
mode: "rotating", | |
image: "current", | |
distance: "km", | |
sounds: "yes", | |
useHeader: true, | |
header: "MoonPhase", | |
maxWidth: "350px", | |
animationSpeed: 0, | |
rotateInterval: 15000, | |
} | |
}, | |
{ | |
module: "currentweather", | |
position: "top_left", | |
config: { | |
location: "Fredericia", | |
locationID: "", | |
appid: "", | |
} | |
}, | |
{ | |
module: "weatherforecast", | |
position: "top_left", | |
header: "Weather Forecast", | |
config: { | |
location: "Fredericia", | |
locationID: "", | |
appid: "" | |
} | |
}, | |
{ | |
module: "MMM-PopulationClock", | |
position: "top_left", | |
config: { | |
size: "small", | |
textColor: "cyan", | |
} | |
}, | |
{ | |
module: "MMM-pollen", | |
position: 'top_left', | |
header: 'pollen forecast', | |
config: { | |
locationLongitude: 9.78409, | |
locationLatitude: 55.62131, | |
noEmptyLines: true, | |
showPollenArea: true, | |
pollenLayers: "Pollenflug_Hasel,Pollenflug_Erle,Pollenflug_Esche,Pollenflug_Birke,Pollenflug_Graeser,Pollenflug_Roggen,Pollenflug_Beifuss,Pollenflug_Ambrosia" | |
} | |
}, | |
{ | |
module: "MMM-Globe", | |
position: "middle_center", | |
config: { | |
size: "medium", | |
locations: [{ | |
lat: 55.621433, | |
lng: -9.784047, | |
label: "Tralde" | |
}, | |
{ | |
lat: 41.048268, | |
lng: -28.931814, | |
label: "Istanbul" | |
}, | |
{ | |
lat: 51.497464, | |
lng: -0.135427, | |
label: "London" | |
}, | |
{ | |
lat: -48.853868, | |
lng: -2.349805, | |
label: "Paris" | |
}, | |
{ | |
lat: 40.691825, | |
lng: -74.044118, | |
label: "New York" | |
}, | |
{ | |
lat: -23.5475, | |
lng: -46.63611, | |
label: "Sao Paulo" | |
}, | |
{ | |
lat: -26.139930, | |
lng: 28.045861, | |
label: "Johannesburg" | |
}, | |
{ | |
lat: -33.695483, | |
lng: -73.106700, | |
label: "Islamabad" | |
}, | |
{ | |
lat: -35.573259, | |
lng: -64.378319, | |
label: "Argentina" | |
}, | |
{ | |
lat: -23.5475, | |
lng: -46.63611, | |
label: "Tokyo" | |
}, | |
{ | |
lat: -33.852489, | |
lng: -151.040435, | |
label: "Sidney" | |
}, | |
{ | |
lat: 59.941493, | |
lng: 30.403646, | |
label: "St.Petersburg" | |
}, | |
] | |
} | |
}, | |
{ | |
module: "compliments", | |
position: "middle_center", | |
}, | |
{ | |
module: "MMM-PrayerTime", | |
position: "bottom_right", | |
config: { | |
apiVersion: "1.0", | |
lat: "55.621970", | |
lon: "9.786134", | |
timezone: "Europe/Copenhagen", | |
timeFormat: "24", | |
method: "1", | |
playAdzan: ["f", "d", "a", "m", "i"], | |
notDisplayed: ["midnight", "sunset"], | |
useUpdateInterval: "true", | |
updateInterval: "86400000", | |
animationSpeed: "2.5 * 1000", | |
language: "config.language", | |
showAdzanAlert: "true", | |
showTomorrow: "true", | |
vertical: "true", | |
alertTimer: "15000" | |
} | |
}, | |
{ | |
module: "calendar", | |
header: "D helligdage", | |
position: "bottom_right", | |
config: { | |
calendars: [{ | |
symbol: "calendar-check-o ", | |
url: "", | |
maximumEntries: 7, | |
}] | |
} | |
}, | |
{ | |
module: "calendar", | |
header: "Personal Calendar", | |
position: "bottom_right", | |
config: { | |
calendars: [{ | |
symbol: "calendar-check-o ", | |
url: "", | |
maximumEntries: 7, | |
}] | |
} | |
}, | |
{ | |
module: "MMM-GoogleAssistant", | |
position: "fullscreen_above", | |
config: { | |
debug: false, | |
assistantConfig: { | |
lang: "en-US", | |
projectId: "gas-mirror", // Required to use gaction. | |
modelId: "", // (OPTIONAL for gaction) | |
instanceId: "", // (OPTIONAL for gaction) | |
latitude: 55.62131, | |
longitude: 9.78409, | |
}, | |
responseConfig: { | |
useScreenOutput: true, | |
screenOutputCSS: "screen_output.css", | |
screenOutputTimer: 5000, | |
screenRotate: false, | |
activateDelay: 250, | |
useAudioOutput: true, | |
useChime: true, | |
newChime: false, | |
useNative: false, | |
playProgram: "mpg321" | |
}, | |
micConfig: { // put there configuration generated by auto-installer | |
recorder: "arecord", | |
device: "plughw:1", | |
}, | |
snowboy: { | |
useSnowboy: true, | |
usePMDL: false, | |
audioGain: 2.0, | |
Frontend: true, | |
Model: "jarvis", | |
Sensitivity: null | |
}, | |
A2DServer: { | |
useA2D: true, | |
stopCommand: "stop", | |
useYouTube: true, | |
youtubeCommand: "youtube", | |
displayResponse: true | |
}, | |
recipes: ["with-MMM-TelegramBot.js", "with-BackgroundStatus.js"], | |
NPMCheck: { | |
useChecker: true, | |
delay: 10 * 60 * 1000, | |
useAlert: true | |
} | |
} | |
}, | |
{ | |
module: "MMM-Assistant2Display", | |
position: "top_left", | |
config: { | |
debug: false, | |
useYoutube: true, | |
links: { | |
useLinks: false, | |
displayDelay: 60 * 1000, | |
scrollStep: 25, | |
scrollInterval: 1000, | |
scrollStart: 5000, | |
scrollActivate: false, | |
verbose: false | |
}, | |
photos: { | |
usePhotos: true, | |
displayDelay: 10 * 1000 | |
}, | |
volume: { | |
useVolume: false, | |
volumePreset: "ALSA", | |
myScript: null | |
}, | |
briefToday: { | |
useBriefToday: true, | |
welcome: "brief Today" | |
}, | |
screen: { | |
useScreen: false, | |
delay: 5 * 60 * 1000, | |
turnOffDisplay: true, | |
mode: 1, | |
ecoMode: true, | |
displayCounter: true, | |
displayBar: false, | |
displayStyle: "Text", | |
text: "Auto Turn Off Screen:", | |
detectorSleeping: false, | |
governorSleeping: false, | |
displayLastPresence: true, | |
LastPresenceText: "Last Presence:", | |
delayed: 0 | |
}, | |
touch: { | |
useTouch: false, | |
mode: 3 | |
}, | |
pir: { | |
usePir: false, | |
gpio: 21, | |
reverseValue: false | |
}, | |
governor: { | |
useGovernor: false, | |
sleeping: "powersave", | |
working: "ondemand" | |
}, | |
internet: { | |
useInternet: true, | |
displayPing: false, | |
delay: 2 * 60 * 1000, | |
scan: "google.fr", | |
command: "pm2 restart 0", | |
showAlert: true | |
}, | |
cast: { | |
useCast: true, | |
castName: "MagicMirror_A2D", | |
port: 8569 | |
}, | |
spotify: { | |
useSpotify: false, | |
useBottomBar: false, | |
useLibrespot: false, | |
connectTo: null, | |
playDelay: 3000, | |
minVolume: 10, | |
maxVolume: 100, | |
updateInterval: 1000, | |
idleInterval: 10000, | |
username: "", | |
password: "", | |
CLIENT_ID: "", | |
CLIENT_SECRET: "", | |
deviceDisplay: "Listening on", | |
usePause: true, | |
typeArtist: "artist", | |
typePlaylist: "playlist", | |
typeAlbum: "album", | |
typeTrack: "track" | |
}, | |
NPMCheck: { | |
useChecker: true, | |
delay: 10 * 60 * 1000, | |
useAlert: true | |
} | |
} | |
}, | |
{ | |
module: "mmm-hue-lights", | |
position: "bottom_left", | |
config: { | |
bridgeIp: "", | |
user: "", | |
displayType: "grid", | |
displayMode: "lights", | |
displayFilter: "all", | |
minimalGrid: "true", | |
hideOff: "false", | |
updateInterval: "30,000", | |
inutialLoadDelay: "0", | |
} | |
}, | |
{ | |
module: "MMM-NowPlayingOnSpotify", | |
position: "bottom_left", | |
config: { | |
clientID: "", | |
clientSecret: "", | |
accessToken: "", | |
refreshToken: "" | |
} | |
}, | |
{ | |
module: "newsfeed", | |
position: "bottom_bar", | |
config: { | |
feeds: [{ | |
title: "Berlingske", | |
url: "https://www.berlingske.dk/content/3/rss" | |
}], | |
showSourceTitle: true, | |
showPublishDate: true | |
} | |
}, | |
] | |
}; | |
/*************** 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