![](http://tb2.bdstatic.com/tb/editor/images/face/i_f01.png?t=20140803)
日程表
在终端依次键入以下代码
cd ~/MagicMirror/modules
gitclone
https://github.com/pinsdorf/MMM-WeeklySchedule.gitcd ~/MagicMirror/modules/MMM-WeeklySchedule
npm install
然后再config里面modules模块里添加下面一段代码
{
module: "MMM-WeeklySchedule",
position: "top_left",
header: "Household chores",
config: {
schedule: {
timeslots: [ "Feed thefish", "Set the table", "Take out the trash","Hoover living room" ],
lessons: {
mon: ["Bart", "Marge","Homer", "Lisa" ],
tue: ["Lisa", "Bart", "Marge", "Homer" ],
wed: ["Homer", "Lisa", "Bart", "Marge" ],
thu: [ "Marge","Homer", "Lisa", "Bart" ],
fri: ["Bart", "Marge","Homer", "Lisa" ]
}
},
updateInterval: 1 * 60 * 60 * 1000,// every hour
showNextDayAfter: undefined
}
},
![](http://tb2.bdstatic.com/tb/editor/images/face/i_f25.png?t=20140803)
参数修改说明:
updateInterval 为内容更新频率,1*60*60*1000ms=1h,timeslot和lessons中引号里面为字符串,可以为各种形式,我修改成了自己的个人课表,仅供参考
![](http://imgsrc.baidu.com/forum/w%3D580/sign=47a6788be6c4b7453494b71efffd1e78/f8c59ad3fd1f4134daf9fbdc281f95cad3c85ea5.jpg)
周日本没有课,我添加了一个example效果图:
![](http://imgsrc.baidu.com/forum/w%3D580/sign=fdea2056ba4543a9f51bfac42e168a7b/f608cf1f4134970a7ebdee8d98cad1c8a5865da5.jpg)