Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var config = {
- address: "0.0.0.0", // 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: "hu",
- timeFormat: 24,
- units: "metric",
- modules: [
- {
- module: "alert",
- },
- {
- module: "clock",
- position: "top_left"
- },
- {
- module: "calendar",
- header: "Naptár",
- position: "top_left",
- config: {
- maximumEntries: 7,
- maximumNumberOfDays: 20,
- fetchInterval: 120000,
- displayRepeatingCountTitle: true,
- calendars: [
- {
- url: "https://calendar.google.com/calendar/ical/6t5k74j7lcnkspnjfjfsv4l7us%40group.calendar.google.com/private-47f445bf99d0e852cd4e3652bfd2da0c/basic.ics"
- },
- {
- url: "webcal://p18-calendars.icloud.com/published/2/pTG16ZA4RTQh5f2BYMRybK0ZkuJDPelG0cgnY3KZCSefL-Lc-_juWYpZpOytUrRoM2fKv4zcf_T6-4LaW58W-dMp2jmBBOhaKZNAnCvDor8"
- },
- {
- url: "https://calendar.google.com/calendar/ical/hu.hungarian%23holiday%40group.v.calendar.google.com/public/basic.ics"
- },
- {
- url: "https://calendar.google.com/calendar/ical/imo2np3i62i0v6qdi64ochst40%40group.calendar.google.com/private-58a937c89934c2730ebe6d83d836f10c/basic.ics"
- }
- ]
- }
- },
- {
- module: "currentweather",
- position: "top_right",
- config: {
- locationID: "7284829", //ID from http://bulk.openweathermap.org/sample/; unzip the gz file and find your city
- appid: "dd",
- showWindDirectionAsArrow: false,
- showHumidity: true,
- useKMPHWind: true,
- showIndoorTemperature: true,
- roundTemp: true,
- }
- },
- {
- module: "weatherforecast",
- position: "top_right",
- header: "Előrejelzés",
- config: {
- locationID: "7284829", //ID from http://www.openweathermap.org/help/city_list.txt
- appid: "dd",
- maxNumberOfDays: 5,
- showRainAmount: true,
- roundTemp: true,
- appendLocationNameToHeader: false,
- colored: true
- }
- },
- {
- module: "MMM-AssistantMk2",
- position: "top_bar",
- config: {
- deviceLocation: {
- coordinates: {
- latitude: 47.527377,
- longitude: 19.112545
- }
- },
- record: {
- recordProgram : "arecord",
- device : "plughw:1",
- },
- deviceModelId: "xx",
- deviceInstanceId: "xx",
- youtubeAutoplay: true,
- screenZoom: "70%",
- screenDuration: 6000,
- onIdle : {
- timer: 0
- },
- notifications: {
- ASSISTANT_ACTIVATED: "HOTWORD_PAUSE",
- ASSISTANT_DEACTIVATED: "HOTWORD_RESUME",
- },
- }
- },
- {
- module: "updatenotification",
- position: "top_bar"
- },
- {
- module: "newsfeed",
- position: "bottom_bar",
- config: {
- feeds: [
- {
- title: "HVG",
- url: "http://www.hvg.hu/rss"
- },
- {
- title: "444.hu",
- url: "https://444.hu/feed"
- },
- {
- title: "24.hu",
- url: "https://24.hu/feed/"
- },
- {
- title: "index.hu",
- url: "https://index.hu/24ora/rss/"
- }
- ],
- showSourceTitle: true,
- showPublishDate: true,
- showDescription: true,
- updateInterval: 20000,
- lengthDescription: 200,
- ignoreOldItems: true,
- ignoreOlderThan: 43200000,
- reloadInterval: 120000
- }
- },
- {
- module: 'MMM-Futar',
- position: 'bottom_left',
- header: "Csömöri út",
- config: {
- stopId: 'BKK_F02844',
- minutesAfter: 60,
- maxNumberOfItems: 5,
- hideStopTimesInNextMinutes: 2,
- updateInterval: 60000, // 1 minute in milliseconds
- showHead: false, // true | false
- showSymbolInHead: true, // true | false
- showSymbolInStopTime: true, // true | false
- coloredTextInHead: false,
- align: 'left', // 'left' | 'right'
- fade: true,
- fadePoint: 0.25,
- showRouteNameInStopTime: true,
- }
- },
- {
- module: 'MMM-Futar',
- position: 'bottom_left',
- header: "Rákospatak utca",
- config: {
- stopId: 'BKK_F02861',
- minutesAfter: 60,
- maxNumberOfItems: 5,
- hideStopTimesInNextMinutes: 2,
- updateInterval: 60000, // 1 minute in milliseconds
- showHead: false, // true | false
- showSymbolInHead: true, // true | false
- showSymbolInStopTime: true, // true | false
- coloredTextInHead: false,
- align: 'left', // 'left' | 'right'
- fade: true,
- fadePoint: 0.25,
- showRouteNameInStopTime: true,
- coloredSymbolInStopTime: true,
- }
- },
- {
- module: 'MMM-OnScreenMenu',
- position: 'bottom_left',
- /* Valid positions: 'top_right', 'top_left', 'bottom_right', 'bottom_left' */
- config: {
- touchMode: false,
- enableKeyboard: true,
- },
- },
- {
- module: 'MMM-Bubi',
- position: 'bottom_left',
- config: {
- updateInterval: 600000, // 10 minutes in milliseconds
- showPlaceName: true,
- align: 'left',
- places: [
- {
- id: 253430,
- name: 'Széchenyi fürdő'
- },
- {
- id: 249484,
- name: 'Hősök tere'
- },
- ]
- }
- },
- {
- module: 'MMM-Remote-Control'
- // position: 'bottom_left'
- },
- {
- module: "MMM-Remote-Control-Repository",
- },
- {
- module: 'MMM-MyCommute',
- position: 'bottom_right',
- header: 'Forgalom',
- config: {
- apikey: 'xx',
- origin: '47.527447, 19.112648',
- destinations: [
- {
- destination: '47.466357, 19.005849',
- label: 'Rétköz utca 7.',
- alternatives: true,
- startTime: '06:00',
- endTime: '11:00',
- hideDays: [0,6]
- },
- {
- destination: '47.490199, 19.130509',
- label: 'Bánya utca 1.',
- alternatives: true,
- startTime: '06:00',
- endTime: '10:00',
- hideDays: [0,6]
- },
- {
- destination: '47.509344, 19.098790',
- label: 'Gizella utca 42.',
- mode: 'transit',
- showNextVehileDeparture: true,
- startTime: '06:00',
- endTime: '10:00',
- hideDays: [0,6]
- },
- {
- destination: '47.473288, 19.059902',
- label: 'BME Q Épület',
- mode: 'transit',
- showNextVehileDeparture: true,
- startTime: '06:00',
- endTime: '11:00',
- hideDays: [0,6]
- },
- {
- destination: '47.188575, 18.589611',
- label: 'Agárd, Tutaj utca 37.',
- alternatives: true,
- startTime: '08:00',
- endTime: '15:00',
- hideDays: [1,2,3,4,5]
- },
- {
- destination: '47.703345, 19.143488',
- label: 'Göd, János utca 4.',
- alternatives: true,
- startTime: '08:00',
- endTime: '15:00',
- hideDays: [1,2,3,4,5]
- }
- ]
- }
- },
- {
- module: 'MMM-IndoorTemp',
- position: 'top_right',
- config: {
- mqttServer: "mqtt://10.0.0.135:1883",
- topic: "openhab/items/intemp"
- }
- },
- {
- module: 'MMM-TelegramBot',
- config: {
- telegramAPIKey : 'xx',
- allowedUser : ['xx'],
- adminChatId : xx,
- }
- },
- {
- module: 'MMM-Tools',
- // position: 'bottom_right',
- config: {
- device : "RPI", // "RPI" is also available
- refresh_interval_ms : 10000,
- warning_interval_ms : 1000 * 60 * 5,
- enable_warning : true,
- warning : {
- CPU_TEMPERATURE : 75,
- GPU_TEMPERATURE : 75,
- CPU_USAGE : 95,
- STORAGE_USED_PERCENT : 80,
- MEMORY_USED_PERCENT : 80
- },
- warning_text: {
- CPU_TEMPERATURE : "The temperature of CPU is over %VAL%",
- GPU_TEMPERATURE : "The temperature of GPU is over %VAL%",
- CPU_USAGE : "The usage of CPU is over %VAL%",
- STORAGE_USED_PERCENT : "The storage is used over %VAL% percent",
- MEMORY_USED_PERCENT : "The memory is used over %VAL% percent",
- }
- }
- },
- {
- module: 'MMM-Screencast',
- position: 'center',
- config: {
- position: 'center',
- height: 768,
- width: 1024,
- }
- },
- {
- module: 'MMM-Logging',
- config: {
- // Module functions out of the box with nothing set here.
- // See below for configurable options.
- }
- },
- {
- module: 'MMM-SystemStats',
- position: 'bottom_right', // This can be any of the regions.
- config: {
- updateInterval: 10000, // every 10 seconds
- align: 'right', // align labels
- view: 'textAndIcon',
- },
- },
- {
- module: "MMM-Hotword",
- position: "top_right",
- config: {
- mic: {
- recordProgram: "arecord",
- device: "plughw:1"
- },
- models: [
- {
- hotwords : "computer",
- file : "computer.umdl",
- sensitivity : "0.5",
- },
- ],
- commands: {
- "computer": {
- notificationExec: {
- notification: "ASSISTANT_ACTIVATE",
- payload: (detected, afterRecord) => {
- return {profile:"default"};
- }
- },
- restart:false
- }
- },
- useDisplay: false
- }
- },
- ]
- };
- /*************** DO NOT EDIT THE LINE BELOW ***************/
- if (typeof module !== "undefined") {module.exports = config;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement