Advertisement
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.
- */
- var config = {
- port: 9090,
- address: "0.0.0.0",
- ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "192.168.0.1/24" , "::ffff:192.168.0.1/24"], // Set [] to allow all IP addresses.
- language: "fr",
- timeFormat: 24,
- units: "metric",
- modules: [
- {
- module: "alert",
- },
- {
- module: "updatenotification",
- position: "top_bar"
- },
- {
- module: "clock",
- position: "top_left",
- config: {
- // The config property is optional.
- showWeek: true,
- displaySeconds: false,
- // See 'Configuration options' for more information.
- }
- },
- {
- module: "calendar",
- header: "Villa Capediem",
- position: "top_left",
- config: {
- maximumEntries: 5,
- calendars: [
- {
- symbol: "home",
- url: "https://calendar.google.com/calendar/ical/villacarpediem06370%40gmail.com/private-d9f9d6d2e445505ed576f0042d2283d5/basic.ics"
- },
- {
- symbol: ' flag-checkered',
- url: "http://localhost:8080/MMM-Formula1/schedule.ics"
- },
- ]
- }
- },
- {
- module: "calendar",
- header: "Calendrier Scolaire",
- position: "top_left",
- config: {
- maximumEntries: 2,
- calendars: [
- {
- symbol: "calendar-check-o ",
- url: "http://www.education.gouv.fr/download.php?file=http://cache.media.education.gouv.fr/ics/Calendrier_Scolaire_Zone_B.ics"
- },
- ]
- }
- },
- {
- module: "compliments",
- position: "top_bar",
- config: {
- compliments: {
- anytime: [
- "Bonjour à toute la famille !"
- ],
- morning: [
- "Bien dormi?",
- "Bonne journée!",
- "Bonjour!"
- ],
- evening: [
- "Bonne soirée!",
- "Repose toi bien!",
- "Bonne nuit...",
- "Fais de beaux rêves..."
- ]
- }
- }
- },
- {
- module: 'MMM-Traffic',
- position: 'top_left',
- header: "Transport",
- language: 'fr',
- classes: 'bright medium', //optional, default is 'bright medium', only applies to commute info not route_name
- config: {
- api_key: 'AIzaSyB6aVIJwIlhodqTc4oaWWLWzoJiQlTtKtY',
- mode: 'driving',
- origin: '21 Allée du Haut Bastion, Mouans-Sartoux',
- destination: 'Nice Etoile, Avenue Jean Médecin, Nice',
- arrival_time: '0900', //optional, but needs to be in 24 hour time if used.
- route_name: 'Trajet Salon',
- changeColor: true,
- showGreen: true,
- limitYellow: 5, //Greater than 5% of journey time due to traffic
- limitRed: 20, //Greater than 20% of journey time due to traffic
- traffic_model: 'pessimistic',
- interval: 120000 //2 minutes
- }
- },
- {
- module: 'MMM-NOAA',
- position: 'top_right',
- config: {
- apiKey: "293a01deba369f49", // https://www.wunderground.com/weather/api select the middle plan...
- useAir: true, // set to false if you do not want to use Air Quality Index
- airKey: "YR3QFYBbdexa3uTsh", // IF you want Air Quality Index
- pws1: "IMOUANSS2", // go here to find your pws: https://www.wunderground.com/wundermap
- showClock: true, // Hides or shows clock
- dformat: false, // for M/D/YYYY format, false for D/M/YYYY
- format: "24", // 12 or 24 hour format.. will default to 12 hour if none selected.
- ampm: false, // to show AM and PM on Sunrise/Sunset time
- showGreet: false, // deafult is false - to show greeting under clock and above date
- name: "Villa Carpediem", // Your name
- showWind: true,
- showDate: false,
- showForecast: true, //show bottom 3 day forecast
- flash: true, //Today in forecast flashes halo
- showUV: true, //show UV index
- showBar: true, // show Barometer
- showHum: true, //show Humidity level
- position: 'top_right', //whatever you have in above position must also be here
- alert: false, //show weather alerts default is true
- days: "3" //default in config is 3 can be either "3" or "10" for forecast
- }
- },
- {
- module: "MMM-RTSPStream",
- position: "lower_third",
- header: "Caméra",
- config: {
- autoStart: true,
- rotateStreams: false,
- rotateStreamTimeout: 10,
- moduleWidth: 1080,
- //moduleHeight: 160,
- //moduleOffset: { left: 32, top: 32 },
- localPlayer: 'omxplayer',
- remotePlayer: 'none',
- showSnapWhenPaused: true,
- remoteSnaps: false,
- stream1: {
- name: 'Piscine',
- url: 'rtsp://Matthieu:Raymonde1938@192.168.0.211:554/user=admin_password=QfXPmyLW_channel=1_stream=1.sdp?real_stream',
- frameRate: 'undefined',
- hdUrl: 'rtsp://Matthieu:Raymonde1938@192.168.0.211:554/user=admin_password=QfXPmyLW_channel=1_stream=0.sdp?real_stream',
- snapshotType: 'url',
- snapshotRefresh: 10,
- width: 221,
- height: 150,
- },
- stream2: {
- name: 'Potager',
- url: 'rtsp://Matthieu:Raymonde1938@192.168.0.212:554/user=admin_password=QfXPmyLW_channel=1_stream=1.sdp?real_stream',
- frameRate: 'undefined',
- hdUrl: 'rtsp://Matthieu:Raymonde1938@192.168.0.212:554/user=admin_password=QfXPmyLW_channel=1_stream=0.sdp?real_stream',
- snapshotType: 'url',
- snapshotRefresh: 10,
- width: 221,
- height: 150,
- },
- stream3: {
- name: 'Jardin',
- url: 'rtsp://Matthieu:Raymonde1938@192.168.0.213:554/user=admin_password=QfXPmyLW_channel=1_stream=1.sdp?real_stream',
- frameRate: 'undefined',
- hdUrl: 'rtsp://Matthieu:Raymonde1938@192.168.0.213:554/user=admin_password=QfXPmyLW_channel=1_stream=0.sdp?real_stream',
- snapshotType: 'url',
- snapshotRefresh: 10,
- width: 221,
- height: 150,
- },
- stream4: {
- name: 'Garage',
- url: 'rtsp://Matthieu:Raymonde1938@192.168.0.214:554/user=admin_password=QfXPmyLW_channel=1_stream=1.sdp?real_stream',
- frameRate: 'undefined',
- hdUrl: 'rtsp://Matthieu:Raymonde1938@192.168.0.214:554/user=admin_password=QfXPmyLW_channel=1_stream=0.sdp?real_stream',
- snapshotType: 'url',
- snapshotRefresh: 10,
- width: 221,
- height: 150,
- },
- stream5: {
- name: 'Parking Voiture',
- url: 'rtsp://Matthieu:Raymonde1938@192.168.0.215:554/user=admin_password=QfXPmyLW_channel=1_stream=1.sdp?real_stream',
- frameRate: 'undefined',
- hdUrl: 'rtsp://Matthieu:Raymonde1938@192.168.0.215:554/user=admin_password=QfXPmyLW_channel=1_stream=0.sdp?real_stream',
- snapshotType: 'url',
- snapshotRefresh: 10,
- width: 221,
- height: 150,
- },
- stream6: {
- name: 'Parking Moto',
- url: 'rtsp://Matthieu:Raymonde1938@192.168.0.216:554/user=admin_password=QfXPmyLW_channel=1_stream=1.sdp?real_stream',
- frameRate: 'undefined',
- hdUrl: 'rtsp://Matthieu:Raymonde1938@192.168.0.216:554/user=admin_password=QfXPmyLW_channel=1_stream=0.sdp?real_stream',
- snapshotType: 'url',
- snapshotRefresh: 10,
- width: 221,
- height: 150,
- },
- stream7: {
- name: 'Terrase Nord',
- url: 'rtsp://Matthieu:Raymonde1938@192.168.0.217:554/user=admin_password=QfXPmyLW_channel=1_stream=1.sdp?real_stream',
- frameRate: 'undefined',
- hdUrl: 'rtsp://Matthieu:Raymonde1938@192.168.0.217:554/user=admin_password=QfXPmyLW_channel=1_stream=0.sdp?real_stream',
- snapshotType: 'url',
- snapshotRefresh: 10,
- width: 221,
- height: 150,
- },
- }
- },
- {
- module: 'MMM-Jeedom',
- header: 'Jeedom Maison',
- position: "bottom_bar",
- disabled: false,
- config: {
- updateInterval: 3000,
- jeedomAPIKey: "VD6jwC5W8cZli1BWEH1pmFsSJcrXgj59FFqGGx5mVIQNkBmL",
- jeedomURL: "192.168.0.243",
- jeedomPORT: 80,
- jeedomHTTPS: false,
- jeedomAPIPath: "/core/api/jeeApi.php",
- sensors: [
- {
- idx: "11",
- symbol: "thermometer-half",
- customTitle: "Temperature Piscine",
- unit : "C°",
- },
- {
- idx: "2197",
- symbol: "thermometer-half",
- customTitle: "Temperature Maison",
- unit : "C°",
- },
- {
- idx: "492",
- symbolon: "fa fa-user",
- symboloff: "fa fa-user-o",
- customTitle: "Adrien",
- boolean : true,
- },
- ]
- }
- },
- {
- module: "newsfeed",
- position: "bottom_bar",
- disabled: false,
- config: {
- feeds: [
- {
- title: "France 24",
- url: "http://www.france24.com/fr/france/rss"
- },
- {
- title: "Geek",
- url: "https://www.domo-blog.fr/feed/"
- },
- {
- title: "Le Figaro",
- url: "http://www.lefigaro.fr/rss/figaro_actualites.xml"
- }
- ],
- showSourceTitle: true,
- showPublishDate: true
- }
- },
- ]
- };
- /*************** DO NOT EDIT THE LINE BELOW ***************/
- if (typeof module !== "undefined") {module.exports = config;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement