Multiple Schedules
Opened this issue · 2 comments
I'd love to be able to create multiple schedules to display on different screens using MMM-Pages.
2 kids, 2 different class schedules.
Hi @gonzonia , thanks for your comment. Your scenario is actually supported. Please create multiple entries for MMM-WeeklySchedule in your config.js
, one for each kid. You can use the header:
tag to differentiate the schedules. Certainly, you can define different timeslots for each kid, e.g. when they visit different schools.
Example:
modules: [
{
module: "MMM-WeeklySchedule",
position: "top_left",
header: "Hermione's classes",
config: {
schedule: {
timeslots: [ "8:00", "10:00", "12:00", "14:00", "16:00" ],
lessons: {
mon: [ "Potions", "Defense against the Dark Arts", "Lunch Break", "Transfiguration" ],
tue: [ "", "Astronomy", "Lunch Break", "Charms", "History of Magic" ],
wed: [ "Arithmancy", "Divination", "Lunch Break", "Muggle Studies", "Herbology" ],
thu: [ "Care of Magical Creatures", "Care of Magical Creatures", "Lunch Break", "Transfiguration", "Charms" ],
fri: [ "Potions", "Herbology", "Lunch Break", "Charms", "Defense against the Dark Arts" ]
// no entries for saturday
// no entries for sundays
}
},
updateInterval: 1 * 60 * 60 * 1000, // every hour
showNextDayAfter: "16:00"
},
module: "MMM-WeeklySchedule",
position: "top_left",
header: "Harry's classes",
config: {
schedule: {
timeslots: [ "8:00", "10:00", "12:00", "14:00", "16:00" ],
lessons: {
mon: [ "Herbology", "Defense against the Dark Arts", "Lunch Break", "Quidditch training" ],
tue: [ "Card for Magical Creatures", "Charms", "Lunch Break", "Divination", "History of Magic" ],
wed: [ "Potions", "Potions", "Lunch Break", "Arithmancy", "Muggle Studies" ],
thu: [ "", "Herbology", "Lunch Break", "Herbology", "Astronomy" ],
fri: [ "Care of Magical Creatures", "-", "Lunch Break", "Charms", "Defense against the Dark Arts" ],
// no entries for saturday
sun: [ "", "Quidditch Match", "Sunday Lunch" ] // short day on sundays
}
},
updateInterval: 1 * 60 * 60 * 1000, // every hour
showNextDayAfter: "16:00"
}
},
... // other modules.
]
Thanks. That's not ideal for what I'm trying to do though. I'm using the MMM-Pages module so that each kid's calendar/HW/info is on a separate page from the other's (it won't fit together on one). Ideally I'd like to be able to have WeeklySchedule1 and WeeklySchedule2 so that I can assign them to specific pages. Right not the only way to do this is to physically copy the module and update the name. Preferable would be something more like what MMM-CalendarExt2 is doing where there are scenes and it rotates through the scenes when it receives the PAGE_INCREMENT notification. I know it's probably a unique case and I sincerely appreciate the response.