Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Poll on inital refresh #15

Open
cain0z opened this issue May 20, 2020 · 3 comments
Open

Feature: Poll on inital refresh #15

cain0z opened this issue May 20, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@cain0z
Copy link

cain0z commented May 20, 2020

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.

@cain0z cain0z added the enhancement New feature or request label May 20, 2020
@qistoph
Copy link
Owner

qistoph commented May 20, 2020

Could you share your config?

The calendar events should be updated on a notification from the calendar module.

@cain0z
Copy link
Author

cain0z commented May 20, 2020

{
            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",
						
					},
								
				]
			}
		},

@cain0z
Copy link
Author

cain0z commented May 20, 2020

It shows the calendar events after the display has reached the poll time. but that seems to be after 30 minutes in my case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants