Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* 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: [], // 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: "it",
- timeFormat: 24,
- units: "metric",
- modules: [
- {
- module: "MMM-RTSPStream",
- position: "bottom_right",
- disabled: false,
- config: {
- autoStart: true,
- rotateStreams: false,
- rotateStreamTimeout: 10,
- moduleWidth: 390,
- moduleHeight: 219,
- localPlayer: 'omxplayer',
- remotePlayer: 'none',
- showSnapWhenPaused: false,
- remoteSnaps: false,
- stream1: {
- name: 'Sky TG24',
- url: 'http://192.168.1.6:8001/1:0:1:5:7918:217C:EEEE0000:0:0:0:',
- // name: 'RAI 3 TGR Puglia',
- // url: 'http://192.168.1.6:8001/1:0:1:D4B:8800:13E:EEEE0000:0:0:0:',
- // name: 'RAI 3 HD',
- // url: 'http://192.168.1.6:8001/1:0:1:2191:5:13E:EEEE0000:0:0:0:',
- protocol: "tcp",
- frameRate: 'undefined',
- width: 390,
- height: 219,
- }
- }
- },
- {
- module: 'MMM-CalendarExt',
- position: "bottom_right",
- disabled: true,
- config: {
- system: {
- show: ["daily"],
- fullDayEventLocalize: 1,
- },
- views: {
- daily: {
- counts: 1,
- limit: 10,
- position:"bottom_right",
- }
- },
- calendars: [
- {
- url: "https://calendar.google.com/calendar/ical/email%40gmail.com/private-012345678/basic.ics",
- styleName: "style2",
- symbol:"alarm_clock@em",
- },
- ]
- }
- },
- {
- module: "alert",
- config: {
- alert_effect: "genie",
- effect: "genie"
- }
- },
- {
- module: "updatenotification",
- position: "top_bar"
- },
- {
- module: "MMM-BMW-DS",
- position: "top_bar", // bottom_bar is best
- disabled: false,
- config: {
- apiKey: "12345678", // Free API key @ darksky.net
- tempUnits: "C", // C of F
- lat: '40.1901474',
- lng: '18.1657115',
- css: "1", // 1=default, 2=Clean, 3=Lord of the Rings, 4=handwriting, 5=Julee, 6=Englebert, "" = returns default css
- ownTitle: "Galatina, oggi", // Use your own language and statement
- playSounds: "no", // yes = weather sounds, no = no weather sounds
- useHeader: false,
- header: "Your header",
- maxWidth: "100%",
- }
- },
- {
- module: "MMM-NewsFeedTicker",
- position: "bottom_bar",
- disabled: false,
- //classes: "day_scheduler"
- config: {
- feeds: [
- {
- title: "Cambio Euro/Dollaro",
- url: "https://eur.fxexchangerate.com/usd.xml",
- encoding: "ISO-8859-16",
- className: "myClass",
- defaultLogo : ""
- },
- {
- title: "Agenzia ANSA - Ultima Ora",
- url: "https://www.ansa.it/sito/notizie/topnews/topnews_rss.xml",
- encoding: "UTF-8",
- className: "myClass",
- defaultLogo : ""
- },
- {
- title: "Agenzia ANSA - Mondo",
- url: "https://www.ansa.it/sito/notizie/mondo/mondo_rss.xml",
- encoding: "UTF-8",
- className: "myClass",
- defaultLogo : ""
- },
- {
- title: "Hardware Upgrade",
- url: "https://feeds.hwupgrade.it/rss_hwup.xml",
- encoding: "ISO-8859-16",
- className: "myClass",
- defaultLogo : ""
- },
- {
- title: "HDblog.it",
- url: "http://feeds.feedburner.com/hd-blog?format=xml",
- encoding: "ISO-8859-16",
- className: "myClass",
- defaultLogo : ""
- },
- {
- title: "Tom's Hardware",
- url: "https://www.tomshw.it/feed/",
- encoding: "UTF-8",
- className: "myClass",
- defaultLogo : ""
- }
- ]
- }
- },
- {
- module: "MMM-AssistantMk2",
- position: "top_right",
- disabled: false,
- config: {
- record: {
- recordProgram : "arecord",
- device: null,
- },
- responseScreen: false, // If available, Assistant will response with some rendered HTML
- notifications: {
- ASSISTANT_ACTIVATED: "HOTWORD_PAUSE",
- ASSISTANT_DEACTIVATED: "HOTWORD_RESUME",
- },
- deviceLocation: {
- coordinates: {
- latitude: 40.1901474,
- longitude: 18.1657115
- }
- },
- profiles: {
- "default": {
- profileFile: "default.json",
- lang: "it-IT"
- }
- }
- }
- },
- {
- module: "MMM-Hotword",
- disabled: false,
- config: {
- snowboy: [
- {
- hotwords: "ehi google", //this will be sent to other module for distinguishing which hotword is detected.
- file: "resources/models/ehi_google.pmdl",
- sensitivity: '0.5',
- },
- {
- hotwords: "ok google",
- file: "resources/models/ok_google.pmdl",
- sensitivity: '0.5',
- }
- ],
- record: {
- recordProgram: "arecord",
- device: null,
- },
- autostart:true,
- onDetected: {
- notification: function (payload) {
- return "ASSISTANT_ACTIVATE"
- },
- payload: function (payload){
- return {
- profile: payload.hotword
- }
- }
- }
- },
- {
- module: "clock",
- position: "top_right",
- disabled: true,
- config: {
- displaySeconds: false
- }
- }
- ]
- };
- /*************** DO NOT EDIT THE LINE BELOW ***************/
- if (typeof module !== "undefined") {module.exports = config;}
RAW Paste Data