MMM-MyCommute
MMM-MyCommute copied to clipboard
Feature: Poll on inital refresh
I am finding that until the first time pollFrequency is engaged, it is not showing my calendar events.
Is there a way to have it refresh early on say 30 seconds after, then keep on going on every pollFrequency?
Just as my display turns on, it refreshes everything.
Could you share your config?
The calendar events should be updated on a notification from the calendar module.
{
module: 'MMM-MyCommute',
position: 'top_center',
config: {
apiKey: 'someapi',
origin: 'Home',
pollFrequency: 30*60*1000,
showSummary: true,
showUpdated: true,
colourCodeTravelTime: true,
destinations: [
{
destination: 'Bond University',
label: 'University',
mode: 'driving',
color: '#457195',
alternatives: true,
},
{
destination: 'Level 1, Paradise Centre, Cavill Ave, Surfers Paradise QLD 4217',
label: 'Surfers Paradise',
mode: 'driving',
color: '#e0c787',
alternatives: true,
},
{
destination: '1 Eastern Ave, Bilinga QLD 4225',
label: 'Gold Coast Airport',
mode: 'driving',
color: '#7d48ad',
alternatives: true,
},
{
destination: '42-44 Qantas Dr, Brisbane Airport QLD 4009',
label: 'Brisbane Airport no toll',
avoid: 'tolls',
mode: 'driving',
color: '#2da237',
alternatives: true,
},
{
destination: '42-44 Qantas Dr, Brisbane Airport QLD 4009',
label: 'Brisbane Airport with toll',
mode: 'driving',
color: '#e6511c',
alternatives: true,
},
],
// Additional config for calendar routes:
maxCalendarEvents: 4,
maxCalendarTime: 7*24*60*60*1000,
calendarOptions: [
{
mode: 'driving',
alternatives: true,
},
{
mode: 'transit',
transitMode: 'rail|bus',
showNextVehicleDeparture: true,
},
],
}
},
module: "calendar",
header: "Conrads Calender",
position: "top_left",
broadcastEvents: true,
config: {
maximumEntries: "5",
showLocation: true,
coloured: true,
coloredSymbolOnly: true,
broadcastEvents: true,
tableClass: 'large',
calendars: [
{
symbol: "calendar-check",
url: "https://calendar.google.com/calendar/ical/sexy as/basic.ics",
broadcastEvents: true,
},
{
symbol: "toilet-paper",
url: "https://www.officeholidays.com/ics-clean/australia/queensland",
},
]
}
},
It shows the calendar events after the display has reached the poll time. but that seems to be after 30 minutes in my case.