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.
- *
- * For more information how you can configurate this file
- * See https://github.com/MichMich/MagicMirror#configuration
- *
- */
- var config = {
- address: "0.0.0.0",
- port: 8080,
- ipWhitelist: [],
- language: "vi",
- timeFormat: 24,
- units: "metric",
- modules: [
- {
- module: "alert",
- },
- {
- module: "updatenotification",
- position: "top_bar"
- },
- {
- module: "MMM-network-signal",
- position: "center_top",
- config: {
- showMessage: false,
- }
- },
- {
- module: "clock",
- position: "top_left",
- config: {
- timezone: "Asia/Ho_Chi_Minh"
- }
- },
- {
- module: "MMM-LunarDate",
- position: "top_left",
- config: {
- template: `
- <font color="red">Âm lịch:</font><font color="#FFFFFF"> %LUNAR_DAY%/%LUNAR_MONTH%/%LUNAR_YEAR% - Kỷ Hợi</font>
- `,
- }
- },
- {
- module: "calendar",
- header: "Ngày lễ Việt Nam",
- position: "top_left",
- config: {
- calendars: [
- {
- symbol: "calendar-check",
- maximumEntries: "5",
- //url: "file:///home/pi/MagicMirror/config/vietnam_holidays.ics" }
- url: "http://192.168.99.17/mirror/vietnam_holidays.ics" }
- ]
- }
- },
- {
- module: "compliments",
- position: "lower_third",
- config: {
- compliments: {
- anytime: [
- "Xin Chào!",
- "Hãy nói: OK Google"
- ],
- morning: [
- "Chào buổi sáng!"
- ],
- afternoon: [
- "Chào buổi chiều"
- ],
- evening: [
- "Chào buổi tối!"
- ]
- }
- }
- },
- /*
- {
- module: "currentweather",
- position: "top_right",
- config: {
- location: "Hưng Yên",
- locationID: "1580142",//ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
- appid: "8473858601dabd3d2cbb24fb50840686"
- }
- },
- {
- module: "weatherforecast",
- position: "top_right",
- header: "Thời Tiết",
- config: {
- location: "Hưng Yên",
- locationID: "1580142",//ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
- appid: "8473858601dabd3d2cbb24fb50840686"
- }
- },
- */
- {
- module: "newsfeed",
- position: "bottom_bar",
- config: {
- feeds: [
- {
- title: "Báo 24h.com.vn ",
- url: "https://www.24h.com.vn/upload/rss/tintuctrongngay.rss"
- }
- ],
- showSourceTitle: true,
- showPublishDate: true,
- broadcastNewsFeeds: true,
- broadcastNewsUpdates: true
- }
- },
- {
- module: "MMM-Hotword",
- position: "top_left",
- config: {
- chimeOnFinish: null,
- mic: {
- recordProgram: "arecord",
- device: "plughw:1"
- },
- models: [
- {
- hotwords : "OK_Google",
- file : "OK_Google.pmdl",
- sensitivity : "0.5",
- },
- {
- hotwords : "smart_mirror",
- file : "smart_mirror.umdl",
- sensitivity : "0.5",
- },
- {
- hotwords : "Ê_Cu",
- file : "E_Cu.pmdl",
- sensitivity : "0.5",
- },
- ],
- commands: {
- "OK_Google": {
- notificationExec: {
- notification: "ASSISTANT_ACTIVATE",
- payload: (detected, afterRecord) => {
- return {profile:"default"}
- }
- },
- restart:false,
- afterRecordLimit:0
- },
- "smart_mirror": {
- notificationExec: {
- notification: "ASSISTANT_ACTIVATE",
- payload: (detected, afterRecord) => {
- return {profile:"default"}
- }
- },
- restart:false,
- afterRecordLimit:0
- },
- "Ê_Cu": {
- notificationExec: {
- notification: "ASSISTANT_ACTIVATE",
- payload: (detected, afterRecord) => {
- return {profile:"default"}
- }
- },
- restart:false,
- afterRecordLimit:0
- },
- }
- }
- },
- {
- module: "MMM-AssistantMk2",
- position: "top_left",
- config: {
- deviceLocation: {
- coordinates: {
- latitude: 20.9333678, //Tọa Độ Nhà Bạn Kinh Độ
- longitude: 106.0099915, // Tọa Độ Nhà Bạn VĨ Độ
- }},
- record: {
- sampleRate: 16000,// audio sample rate
- threshold : 0.5,// silence threshold (rec only)
- thresholdStart: null, // silence threshold to start recording, overrides threshold (rec only)
- thresholdEnd: null, // silence threshold to end recording, overrides threshold (rec only)
- silence : 1.0,// seconds of silence before ending
- verbose : false,// log info to the console
- recordProgram : "arecord",
- device: "plughw:1"
- },
- play: {
- playProgram: "mpg123",
- },
- responseVoice: true,
- responseScreen: true,
- responseAlert: true,
- screenDuration: 1500,
- useGactionCLI: false,
- youtubeAutoplay: true,
- pauseOnYoutube:true, //nếu là true thì khi chạy youtube không gọi đc google/ false
- projectId: "mirror-f1994",
- deviceModelId: "mirror-f1994-mirror-99myfb", //
- deviceInstanceId: "mirror",
- notifications: {
- ASSISTANT_ACTIVATED: "HOTWORD_PAUSE",
- ASSISTANT_DEACTIVATED: "HOTWORD_RESUME",
- },
- }
- },
- {
- module: 'MMM-Remote-Control',
- // uncomment the following line to show the URL of the remote control on the mirror
- // position: 'bottom_left'
- // you can hide this module afterwards from the remote control itself
- config: {
- customCommand: {}, // Optional, See "Using Custom Commands" below
- customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below
- showModuleApiMenu: true, // Optional, Enable the Module Controls menu
- //apiKey: "", // Optional, See API/README.md for details
- }
- },
- /*
- {
- module: 'MMM-Screencast',
- position: 'bottom_right', // This position is for a hidden <div /> and not the screencast window
- config: {
- position: 'bottomRight',
- height: 300,
- width: 500,
- }
- },
- {
- module: 'MMM-iFrame',
- position: 'top_right', // This can be any of the regions.
- config: {
- // See 'Configuration options' for more information.
- url: ["http://192.168.99.17/lich.html"], // as many URLs you want or you can just ["ENTER IN URL"] if single URL.
- updateInterval: 0.5 * 60 * 10000, // rotate URLs every 30 seconds
- width: "1000", // width of iframe
- height: "1685", // height of iframe
- // frameWidth: "300" // width of embedded iframe, height is beeing calculated by aspect ratio of iframe
- }
- },*/
- {
- module: "MMM-DarkSkyForecast",
- header: "Thời Tiết",
- position: "top_right",
- classes: "default everyone",
- disabled: false,
- config: {
- apikey: "355ac48a6f56825706fcf0c9f794a20a",
- latitude: "20.9333678",
- longitude: "106.0099915",
- iconset: "4c",
- concise: false,
- forecastLayout: "table",
- label_days: ["CN", "T2", "T3", "T4", "T5", "T6", "T7"],
- showForecastTableColumnHeaderIcons: false, // ẩn hiện icon ở các cột
- showHourlyForecast: false, // ẩn hiện thông báo hàng giờ
- showPrecipitation: false, // hiện ẩn lượng mưa
- showWind: false, // ẩn hiện gió
- label_high: "Cao nhất",
- label_low: "Thấp nhất",
- forecastHeaderText: "Dự báo 3 ngày tới",
- }
- },
- {
- module: 'MMM-connection-status',
- header: "Trạng thái mạng",
- position: 'top_right', // Or any valid MagicMirror position.
- config: {
- // See 'Configuration options' for more information.
- }
- },
- ]
- };
- /*************** DO NOT EDIT THE LINE BELOW ***************/
- if (typeof module !== "undefined") {module.exports = config;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement