Read the statement by Michael Teeuw here.
MMM-MyCommute - API Calls and Quota
-
@ooom416354 Look into line 173 of the MMM-MyCommute.js
getData: function() { //only poll if in window if ( this.isInWindow( this.config.startTime, this.config.endTime, this.config.hideDays ) ) { //build URLs
Above that you can find the
isInWindow()
-function that checks if current time is between start and end time. -
@lavolp3 Thanks so much for the details!
-
I’m the author of this plugin and I can confirm that the module will not poll for data outside the window you set. I designed it this way specifically to deal with Google’s quota.
-
@j-e-f-f
Hi, that want I am trying, to reduce the API calls. but I have problem with it.
My mirror stop showing MMM-Commute in the evening but doesn’t start in the morning… See my config.js:Thanks,
Herman
module: ‘MMM-MyCommute’,
position: ‘top_left’,
header: ‘Verkeer’,
classes: ‘default everyone’,
config: {
apikey: ‘xxx’,
origin: ‘87 Verisstraat, Hoofddorp, 2132 PC’,
startTime: ‘05:45’,
endTime: ‘23:00’,
// showSummary: true,
// hideDays: [0,6],
destinations: [
{
destination: ‘116 La Guardiaweg, Amsterdam, 1043 DL’,
label: ‘UWV’, -
@hermlam I haven’t looked at this code for a long time and it’s quite possible this module no longer works properly. I believe there are newer forks you can try that are currently under active development.
Try here:
https://github.com/jclarke0000/MMM-MyCommute/network/members -
@hermlam I am having this same issue, at least since the most recent MM update. Have you found a solution yet?