Advertisement
Guest User

Untitled

a guest
May 21st, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.56 KB | None | 0 0
  1. var config = {
  2. address: "0.0.0.0", // Address to listen on, can be:
  3. // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
  4. // - another specific IPv4/6 to listen on a specific interface
  5. // - "", "0.0.0.0", "::" to listen on any interface
  6. // Default, when address config is left out, is "localhost"
  7. port: 8080,
  8. ipWhitelist: [], // Set [] to allow all IP addresses
  9. // or add a specific IPv4 of 192.168.1.5 :
  10. // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
  11. // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
  12. // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
  13.  
  14. language: "hu",
  15. timeFormat: 24,
  16. units: "metric",
  17.  
  18. modules: [
  19. {
  20. module: "alert",
  21. },
  22. {
  23. module: "clock",
  24. position: "top_left"
  25.  
  26. },
  27. {
  28. module: "calendar",
  29. header: "Naptár",
  30. position: "top_left",
  31. config: {
  32. maximumEntries: 7,
  33. maximumNumberOfDays: 20,
  34. fetchInterval: 120000,
  35. displayRepeatingCountTitle: true,
  36. calendars: [
  37. {
  38. url: "https://calendar.google.com/calendar/ical/6t5k74j7lcnkspnjfjfsv4l7us%40group.calendar.google.com/private-47f445bf99d0e852cd4e3652bfd2da0c/basic.ics"
  39. },
  40. {
  41. url: "webcal://p18-calendars.icloud.com/published/2/pTG16ZA4RTQh5f2BYMRybK0ZkuJDPelG0cgnY3KZCSefL-Lc-_juWYpZpOytUrRoM2fKv4zcf_T6-4LaW58W-dMp2jmBBOhaKZNAnCvDor8"
  42. },
  43. {
  44. url: "https://calendar.google.com/calendar/ical/hu.hungarian%23holiday%40group.v.calendar.google.com/public/basic.ics"
  45. },
  46. {
  47. url: "https://calendar.google.com/calendar/ical/imo2np3i62i0v6qdi64ochst40%40group.calendar.google.com/private-58a937c89934c2730ebe6d83d836f10c/basic.ics"
  48. }
  49. ]
  50. }
  51. },
  52. {
  53. module: "currentweather",
  54. position: "top_right",
  55. config: {
  56. locationID: "7284829", //ID from http://bulk.openweathermap.org/sample/; unzip the gz file and find your city
  57. appid: "dd",
  58. showWindDirectionAsArrow: false,
  59. showHumidity: true,
  60. useKMPHWind: true,
  61. showIndoorTemperature: true,
  62. roundTemp: true,
  63. }
  64. },
  65. {
  66. module: "weatherforecast",
  67. position: "top_right",
  68. header: "Előrejelzés",
  69. config: {
  70. locationID: "7284829", //ID from http://www.openweathermap.org/help/city_list.txt
  71. appid: "dd",
  72. maxNumberOfDays: 5,
  73. showRainAmount: true,
  74. roundTemp: true,
  75. appendLocationNameToHeader: false,
  76. colored: true
  77. }
  78. },
  79. {
  80. module: "MMM-AssistantMk2",
  81. position: "top_bar",
  82. config: {
  83. deviceLocation: {
  84. coordinates: {
  85. latitude: 47.527377,
  86. longitude: 19.112545
  87. }
  88. },
  89. record: {
  90. recordProgram : "arecord",
  91. device : "plughw:1",
  92. },
  93. deviceModelId: "xx",
  94. deviceInstanceId: "xx",
  95. youtubeAutoplay: true,
  96. screenZoom: "70%",
  97. screenDuration: 6000,
  98. onIdle : {
  99. timer: 0
  100. },
  101. notifications: {
  102. ASSISTANT_ACTIVATED: "HOTWORD_PAUSE",
  103. ASSISTANT_DEACTIVATED: "HOTWORD_RESUME",
  104. },
  105. }
  106. },
  107. {
  108. module: "updatenotification",
  109. position: "top_bar"
  110. },
  111. {
  112. module: "newsfeed",
  113. position: "bottom_bar",
  114. config: {
  115. feeds: [
  116. {
  117. title: "HVG",
  118. url: "http://www.hvg.hu/rss"
  119. },
  120. {
  121. title: "444.hu",
  122. url: "https://444.hu/feed"
  123. },
  124. {
  125. title: "24.hu",
  126. url: "https://24.hu/feed/"
  127. },
  128. {
  129. title: "index.hu",
  130. url: "https://index.hu/24ora/rss/"
  131. }
  132. ],
  133. showSourceTitle: true,
  134. showPublishDate: true,
  135. showDescription: true,
  136. updateInterval: 20000,
  137. lengthDescription: 200,
  138. ignoreOldItems: true,
  139. ignoreOlderThan: 43200000,
  140. reloadInterval: 120000
  141. }
  142. },
  143. {
  144. module: 'MMM-Futar',
  145. position: 'bottom_left',
  146. header: "Csömöri út",
  147. config: {
  148. stopId: 'BKK_F02844',
  149. minutesAfter: 60,
  150. maxNumberOfItems: 5,
  151. hideStopTimesInNextMinutes: 2,
  152. updateInterval: 60000, // 1 minute in milliseconds
  153. showHead: false, // true | false
  154. showSymbolInHead: true, // true | false
  155. showSymbolInStopTime: true, // true | false
  156. coloredTextInHead: false,
  157. align: 'left', // 'left' | 'right'
  158. fade: true,
  159. fadePoint: 0.25,
  160. showRouteNameInStopTime: true,
  161. }
  162. },
  163. {
  164. module: 'MMM-Futar',
  165. position: 'bottom_left',
  166. header: "Rákospatak utca",
  167. config: {
  168. stopId: 'BKK_F02861',
  169. minutesAfter: 60,
  170. maxNumberOfItems: 5,
  171. hideStopTimesInNextMinutes: 2,
  172. updateInterval: 60000, // 1 minute in milliseconds
  173. showHead: false, // true | false
  174. showSymbolInHead: true, // true | false
  175. showSymbolInStopTime: true, // true | false
  176. coloredTextInHead: false,
  177. align: 'left', // 'left' | 'right'
  178. fade: true,
  179. fadePoint: 0.25,
  180. showRouteNameInStopTime: true,
  181. coloredSymbolInStopTime: true,
  182. }
  183. },
  184. {
  185. module: 'MMM-OnScreenMenu',
  186. position: 'bottom_left',
  187. /* Valid positions: 'top_right', 'top_left', 'bottom_right', 'bottom_left' */
  188. config: {
  189. touchMode: false,
  190. enableKeyboard: true,
  191. },
  192. },
  193. {
  194. module: 'MMM-Bubi',
  195. position: 'bottom_left',
  196. config: {
  197. updateInterval: 600000, // 10 minutes in milliseconds
  198. showPlaceName: true,
  199. align: 'left',
  200. places: [
  201. {
  202. id: 253430,
  203. name: 'Széchenyi fürdő'
  204. },
  205. {
  206. id: 249484,
  207. name: 'Hősök tere'
  208. },
  209. ]
  210. }
  211. },
  212. {
  213. module: 'MMM-Remote-Control'
  214. // position: 'bottom_left'
  215. },
  216. {
  217. module: "MMM-Remote-Control-Repository",
  218. },
  219. {
  220. module: 'MMM-MyCommute',
  221. position: 'bottom_right',
  222. header: 'Forgalom',
  223. config: {
  224. apikey: 'xx',
  225. origin: '47.527447, 19.112648',
  226. destinations: [
  227. {
  228. destination: '47.466357, 19.005849',
  229. label: 'Rétköz utca 7.',
  230. alternatives: true,
  231. startTime: '06:00',
  232. endTime: '11:00',
  233. hideDays: [0,6]
  234. },
  235. {
  236. destination: '47.490199, 19.130509',
  237. label: 'Bánya utca 1.',
  238. alternatives: true,
  239. startTime: '06:00',
  240. endTime: '10:00',
  241. hideDays: [0,6]
  242. },
  243. {
  244. destination: '47.509344, 19.098790',
  245. label: 'Gizella utca 42.',
  246. mode: 'transit',
  247. showNextVehileDeparture: true,
  248. startTime: '06:00',
  249. endTime: '10:00',
  250. hideDays: [0,6]
  251. },
  252. {
  253. destination: '47.473288, 19.059902',
  254. label: 'BME Q Épület',
  255. mode: 'transit',
  256. showNextVehileDeparture: true,
  257. startTime: '06:00',
  258. endTime: '11:00',
  259. hideDays: [0,6]
  260. },
  261. {
  262. destination: '47.188575, 18.589611',
  263. label: 'Agárd, Tutaj utca 37.',
  264. alternatives: true,
  265. startTime: '08:00',
  266. endTime: '15:00',
  267. hideDays: [1,2,3,4,5]
  268. },
  269. {
  270. destination: '47.703345, 19.143488',
  271. label: 'Göd, János utca 4.',
  272. alternatives: true,
  273. startTime: '08:00',
  274. endTime: '15:00',
  275. hideDays: [1,2,3,4,5]
  276. }
  277. ]
  278. }
  279. },
  280. {
  281. module: 'MMM-IndoorTemp',
  282. position: 'top_right',
  283. config: {
  284. mqttServer: "mqtt://10.0.0.135:1883",
  285. topic: "openhab/items/intemp"
  286. }
  287. },
  288. {
  289. module: 'MMM-TelegramBot',
  290. config: {
  291. telegramAPIKey : 'xx',
  292. allowedUser : ['xx'],
  293. adminChatId : xx,
  294. }
  295. },
  296. {
  297. module: 'MMM-Tools',
  298. // position: 'bottom_right',
  299. config: {
  300. device : "RPI", // "RPI" is also available
  301. refresh_interval_ms : 10000,
  302. warning_interval_ms : 1000 * 60 * 5,
  303. enable_warning : true,
  304. warning : {
  305. CPU_TEMPERATURE : 75,
  306. GPU_TEMPERATURE : 75,
  307. CPU_USAGE : 95,
  308. STORAGE_USED_PERCENT : 80,
  309. MEMORY_USED_PERCENT : 80
  310. },
  311. warning_text: {
  312. CPU_TEMPERATURE : "The temperature of CPU is over %VAL%",
  313. GPU_TEMPERATURE : "The temperature of GPU is over %VAL%",
  314. CPU_USAGE : "The usage of CPU is over %VAL%",
  315. STORAGE_USED_PERCENT : "The storage is used over %VAL% percent",
  316. MEMORY_USED_PERCENT : "The memory is used over %VAL% percent",
  317. }
  318. }
  319. },
  320. {
  321. module: 'MMM-Screencast',
  322. position: 'center',
  323. config: {
  324. position: 'center',
  325. height: 768,
  326. width: 1024,
  327. }
  328. },
  329. {
  330. module: 'MMM-Logging',
  331. config: {
  332. // Module functions out of the box with nothing set here.
  333. // See below for configurable options.
  334. }
  335. },
  336. {
  337. module: 'MMM-SystemStats',
  338. position: 'bottom_right', // This can be any of the regions.
  339. config: {
  340. updateInterval: 10000, // every 10 seconds
  341. align: 'right', // align labels
  342. view: 'textAndIcon',
  343. },
  344. },
  345. {
  346. module: "MMM-Hotword",
  347. position: "top_right",
  348. config: {
  349. mic: {
  350. recordProgram: "arecord",
  351. device: "plughw:1"
  352. },
  353. models: [
  354. {
  355. hotwords : "computer",
  356. file : "computer.umdl",
  357. sensitivity : "0.5",
  358. },
  359. ],
  360. commands: {
  361. "computer": {
  362. notificationExec: {
  363. notification: "ASSISTANT_ACTIVATE",
  364. payload: (detected, afterRecord) => {
  365. return {profile:"default"};
  366. }
  367. },
  368. restart:false
  369. }
  370. },
  371. useDisplay: false
  372. }
  373. },
  374. ]
  375.  
  376. };
  377.  
  378. /*************** DO NOT EDIT THE LINE BELOW ***************/
  379. if (typeof module !== "undefined") {module.exports = config;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement