Advertisement
Guest User

Untitled

a guest
Apr 11th, 2018
838
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.94 KB | None | 0 0
  1. /* Magic Mirror Config Sample
  2. *
  3. * By Michael Teeuw http://michaelteeuw.nl
  4. * MIT Licensed.
  5. */
  6.  
  7. var config = {
  8. port: 9090,
  9. address: "0.0.0.0",
  10. 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.
  11.  
  12. language: "fr",
  13. timeFormat: 24,
  14. units: "metric",
  15.  
  16. modules: [
  17. {
  18. module: "alert",
  19. },
  20. {
  21. module: "updatenotification",
  22. position: "top_bar"
  23. },
  24. {
  25. module: "clock",
  26. position: "top_left",
  27. config: {
  28. // The config property is optional.
  29. showWeek: true,
  30. displaySeconds: false,
  31. // See 'Configuration options' for more information.
  32. }
  33. },
  34. {
  35. module: "calendar",
  36. header: "Villa Capediem",
  37. position: "top_left",
  38. config: {
  39. maximumEntries: 5,
  40. calendars: [
  41. {
  42. symbol: "home",
  43. url: "https://calendar.google.com/calendar/ical/villacarpediem06370%40gmail.com/private-d9f9d6d2e445505ed576f0042d2283d5/basic.ics"
  44. },
  45.  
  46. {
  47. symbol: ' flag-checkered',
  48. url: "http://localhost:8080/MMM-Formula1/schedule.ics"
  49. },
  50.  
  51. ]
  52. }
  53. },
  54. {
  55. module: "calendar",
  56. header: "Calendrier Scolaire",
  57. position: "top_left",
  58. config: {
  59. maximumEntries: 2,
  60. calendars: [
  61. {
  62. symbol: "calendar-check-o ",
  63. url: "http://www.education.gouv.fr/download.php?file=http://cache.media.education.gouv.fr/ics/Calendrier_Scolaire_Zone_B.ics"
  64. },
  65.  
  66. ]
  67. }
  68. },
  69.  
  70. {
  71. module: "compliments",
  72. position: "top_bar",
  73. config: {
  74.  
  75. compliments: {
  76. anytime: [
  77. "Bonjour à toute la famille !"
  78. ],
  79. morning: [
  80. "Bien dormi?",
  81. "Bonne journée!",
  82. "Bonjour!"
  83. ],
  84. evening: [
  85. "Bonne soirée!",
  86. "Repose toi bien!",
  87. "Bonne nuit...",
  88. "Fais de beaux rêves..."
  89. ]
  90. }
  91. }
  92. },
  93. {
  94. module: 'MMM-Traffic',
  95. position: 'top_left',
  96. header: "Transport",
  97. language: 'fr',
  98. classes: 'bright medium', //optional, default is 'bright medium', only applies to commute info not route_name
  99. config: {
  100. api_key: 'AIzaSyB6aVIJwIlhodqTc4oaWWLWzoJiQlTtKtY',
  101. mode: 'driving',
  102. origin: '21 Allée du Haut Bastion, Mouans-Sartoux',
  103. destination: 'Nice Etoile, Avenue Jean Médecin, Nice',
  104. arrival_time: '0900', //optional, but needs to be in 24 hour time if used.
  105. route_name: 'Trajet Salon',
  106. changeColor: true,
  107. showGreen: true,
  108. limitYellow: 5, //Greater than 5% of journey time due to traffic
  109. limitRed: 20, //Greater than 20% of journey time due to traffic
  110. traffic_model: 'pessimistic',
  111. interval: 120000 //2 minutes
  112. }
  113.  
  114. },
  115. {
  116. module: 'MMM-NOAA',
  117. position: 'top_right',
  118. config: {
  119.  
  120. apiKey: "293a01deba369f49", // https://www.wunderground.com/weather/api select the middle plan...
  121. useAir: true, // set to false if you do not want to use Air Quality Index
  122. airKey: "YR3QFYBbdexa3uTsh", // IF you want Air Quality Index
  123. pws1: "IMOUANSS2", // go here to find your pws: https://www.wunderground.com/wundermap
  124. showClock: true, // Hides or shows clock
  125. dformat: false, // for M/D/YYYY format, false for D/M/YYYY
  126. format: "24", // 12 or 24 hour format.. will default to 12 hour if none selected.
  127. ampm: false, // to show AM and PM on Sunrise/Sunset time
  128. showGreet: false, // deafult is false - to show greeting under clock and above date
  129. name: "Villa Carpediem", // Your name
  130. showWind: true,
  131. showDate: false,
  132. showForecast: true, //show bottom 3 day forecast
  133. flash: true, //Today in forecast flashes halo
  134. showUV: true, //show UV index
  135. showBar: true, // show Barometer
  136. showHum: true, //show Humidity level
  137. position: 'top_right', //whatever you have in above position must also be here
  138. alert: false, //show weather alerts default is true
  139. days: "3" //default in config is 3 can be either "3" or "10" for forecast
  140. }
  141. },
  142. {
  143. module: "MMM-RTSPStream",
  144. position: "lower_third",
  145. header: "Caméra",
  146. config: {
  147. autoStart: true,
  148. rotateStreams: false,
  149. rotateStreamTimeout: 10,
  150. moduleWidth: 1080,
  151. //moduleHeight: 160,
  152. //moduleOffset: { left: 32, top: 32 },
  153. localPlayer: 'omxplayer',
  154. remotePlayer: 'none',
  155. showSnapWhenPaused: true,
  156. remoteSnaps: false,
  157.  
  158. stream1: {
  159. name: 'Piscine',
  160. url: 'rtsp://Matthieu:Raymonde1938@192.168.0.211:554/user=admin_password=QfXPmyLW_channel=1_stream=1.sdp?real_stream',
  161. frameRate: 'undefined',
  162. hdUrl: 'rtsp://Matthieu:Raymonde1938@192.168.0.211:554/user=admin_password=QfXPmyLW_channel=1_stream=0.sdp?real_stream',
  163. snapshotType: 'url',
  164. snapshotRefresh: 10,
  165. width: 221,
  166. height: 150,
  167. },
  168. stream2: {
  169. name: 'Potager',
  170. url: 'rtsp://Matthieu:Raymonde1938@192.168.0.212:554/user=admin_password=QfXPmyLW_channel=1_stream=1.sdp?real_stream',
  171. frameRate: 'undefined',
  172. hdUrl: 'rtsp://Matthieu:Raymonde1938@192.168.0.212:554/user=admin_password=QfXPmyLW_channel=1_stream=0.sdp?real_stream',
  173. snapshotType: 'url',
  174. snapshotRefresh: 10,
  175. width: 221,
  176. height: 150,
  177. },
  178. stream3: {
  179. name: 'Jardin',
  180. url: 'rtsp://Matthieu:Raymonde1938@192.168.0.213:554/user=admin_password=QfXPmyLW_channel=1_stream=1.sdp?real_stream',
  181. frameRate: 'undefined',
  182. hdUrl: 'rtsp://Matthieu:Raymonde1938@192.168.0.213:554/user=admin_password=QfXPmyLW_channel=1_stream=0.sdp?real_stream',
  183. snapshotType: 'url',
  184. snapshotRefresh: 10,
  185. width: 221,
  186. height: 150,
  187. },
  188. stream4: {
  189. name: 'Garage',
  190. url: 'rtsp://Matthieu:Raymonde1938@192.168.0.214:554/user=admin_password=QfXPmyLW_channel=1_stream=1.sdp?real_stream',
  191. frameRate: 'undefined',
  192. hdUrl: 'rtsp://Matthieu:Raymonde1938@192.168.0.214:554/user=admin_password=QfXPmyLW_channel=1_stream=0.sdp?real_stream',
  193. snapshotType: 'url',
  194. snapshotRefresh: 10,
  195. width: 221,
  196. height: 150,
  197. },
  198. stream5: {
  199. name: 'Parking Voiture',
  200. url: 'rtsp://Matthieu:Raymonde1938@192.168.0.215:554/user=admin_password=QfXPmyLW_channel=1_stream=1.sdp?real_stream',
  201. frameRate: 'undefined',
  202. hdUrl: 'rtsp://Matthieu:Raymonde1938@192.168.0.215:554/user=admin_password=QfXPmyLW_channel=1_stream=0.sdp?real_stream',
  203. snapshotType: 'url',
  204. snapshotRefresh: 10,
  205. width: 221,
  206. height: 150,
  207. },
  208. stream6: {
  209. name: 'Parking Moto',
  210. url: 'rtsp://Matthieu:Raymonde1938@192.168.0.216:554/user=admin_password=QfXPmyLW_channel=1_stream=1.sdp?real_stream',
  211. frameRate: 'undefined',
  212. hdUrl: 'rtsp://Matthieu:Raymonde1938@192.168.0.216:554/user=admin_password=QfXPmyLW_channel=1_stream=0.sdp?real_stream',
  213. snapshotType: 'url',
  214. snapshotRefresh: 10,
  215. width: 221,
  216. height: 150,
  217. },
  218. stream7: {
  219. name: 'Terrase Nord',
  220. url: 'rtsp://Matthieu:Raymonde1938@192.168.0.217:554/user=admin_password=QfXPmyLW_channel=1_stream=1.sdp?real_stream',
  221. frameRate: 'undefined',
  222. hdUrl: 'rtsp://Matthieu:Raymonde1938@192.168.0.217:554/user=admin_password=QfXPmyLW_channel=1_stream=0.sdp?real_stream',
  223. snapshotType: 'url',
  224. snapshotRefresh: 10,
  225. width: 221,
  226. height: 150,
  227. },
  228. }
  229. },
  230. {
  231. module: 'MMM-Jeedom',
  232. header: 'Jeedom Maison',
  233. position: "bottom_bar",
  234. disabled: false,
  235. config: {
  236. updateInterval: 3000,
  237. jeedomAPIKey: "VD6jwC5W8cZli1BWEH1pmFsSJcrXgj59FFqGGx5mVIQNkBmL",
  238. jeedomURL: "192.168.0.243",
  239. jeedomPORT: 80,
  240. jeedomHTTPS: false,
  241. jeedomAPIPath: "/core/api/jeeApi.php",
  242. sensors: [
  243. {
  244. idx: "11",
  245. symbol: "thermometer-half",
  246. customTitle: "Temperature Piscine",
  247. unit : "C°",
  248. },
  249. {
  250. idx: "2197",
  251. symbol: "thermometer-half",
  252. customTitle: "Temperature Maison",
  253. unit : "C°",
  254. },
  255. {
  256. idx: "492",
  257. symbolon: "fa fa-user",
  258. symboloff: "fa fa-user-o",
  259. customTitle: "Adrien",
  260. boolean : true,
  261. },
  262. ]
  263. }
  264. },
  265. {
  266. module: "newsfeed",
  267. position: "bottom_bar",
  268. disabled: false,
  269. config: {
  270. feeds: [
  271. {
  272. title: "France 24",
  273. url: "http://www.france24.com/fr/france/rss"
  274. },
  275. {
  276. title: "Geek",
  277. url: "https://www.domo-blog.fr/feed/"
  278. },
  279. {
  280. title: "Le Figaro",
  281. url: "http://www.lefigaro.fr/rss/figaro_actualites.xml"
  282. }
  283. ],
  284. showSourceTitle: true,
  285. showPublishDate: true
  286. }
  287. },
  288. ]
  289.  
  290. };
  291.  
  292. /*************** DO NOT EDIT THE LINE BELOW ***************/
  293. if (typeof module !== "undefined") {module.exports = config;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement