Closed jseidman95 closed 4 years ago
Hi @jseidman95 - can you share your config so I can see what might be the problem?
@ianperrin i was using your example configs in the README
@jseidman95 - when starting up, the module ensures no schedules exist. It does this by clearing any existing schedules - so the message in the logs is expected.
With the default config, additional entries should appear in the log, but to be sure you can include ‘debug: true, ‘ in the module config.
Additionally, please check whether there are any errors in the browser console.
Finally, if you can share the config you are using, that would be really helpful
Thanks
@ianperrin im using this in my config:
{
module: 'MMM-ModuleScheduler',
config: {
global_schedule: {from: '0 8 * * *', to: '0 21 * * *', dimLevel: '40'},
}
}
And I see no additional logs or any indication that the schedule is working
Hi @jseidman95 thanks for sharing this.
Check that you followed all the steps to install the module, including installing the dependencies (cd ~/MagicMirror/modules/MMM-ModuleScheduler
and npm install --production
) then restart the mirror (e.g. pm2 restart mm
)
If that doesn’t work, try making a copy of your current config file, then starting again with fresh copy of the sample config, add the module config above the alert module and restart the mirror again.
If this doesn’t work, can you share the output of the logs from the mirror and any errors in the browser console? If you are using the default config file, the mirror logs will look something like this
2020-07-22T06:21:32.014031083Z [2020-07-22 07:21:32.008] [LOG] Starting MagicMirror: v2.11.0
2020-07-22T06:21:32.016802483Z [2020-07-22 07:21:32.016] [LOG] Loading config ...
2020-07-22T06:21:32.020678238Z [2020-07-22 07:21:32.019] [LOG] Loading module helpers ...
2020-07-22T06:21:32.078062202Z [2020-07-22 07:21:32.077] [LOG] Initializing new module helper ...
2020-07-22T06:21:32.078741730Z [2020-07-22 07:21:32.078] [LOG] Module helper loaded: MMM-ModuleScheduler
2020-07-22T06:21:32.080464017Z [2020-07-22 07:21:32.079] [LOG] No helper found for module: alert.
2020-07-22T06:21:32.101128032Z [2020-07-22 07:21:32.100] [LOG] Initializing new module helper ...
2020-07-22T06:21:32.101631078Z [2020-07-22 07:21:32.101] [LOG] Module helper loaded: updatenotification
2020-07-22T06:21:32.102220166Z [2020-07-22 07:21:32.101] [LOG] No helper found for module: clock.
2020-07-22T06:21:32.356954298Z [2020-07-22 07:21:32.356] [LOG] Initializing new module helper ...
2020-07-22T06:21:32.357615249Z [2020-07-22 07:21:32.357] [LOG] Module helper loaded: calendar
2020-07-22T06:21:32.416819762Z [2020-07-22 07:21:32.416] [LOG] No helper found for module: compliments.
2020-07-22T06:21:32.417314497Z [2020-07-22 07:21:32.416] [LOG] No helper found for module: currentweather.
2020-07-22T06:21:32.418803593Z [2020-07-22 07:21:32.418] [LOG] No helper found for module: weatherforecast.
2020-07-22T06:21:32.437785898Z [2020-07-22 07:21:32.437] [LOG] Initializing new module helper ...
2020-07-22T06:21:32.438434139Z [2020-07-22 07:21:32.438] [LOG] Module helper loaded: newsfeed
2020-07-22T06:21:32.438807146Z [2020-07-22 07:21:32.438] [LOG] All module helpers loaded.
2020-07-22T06:21:32.505806190Z [2020-07-22 07:21:32.505] [LOG] Starting server on port 8080 ...
2020-07-22T06:21:32.515948761Z [2020-07-22 07:21:32.515] [LOG] Server started ...
2020-07-22T06:21:32.516919656Z [2020-07-22 07:21:32.516] [LOG] Connecting socket for: MMM-ModuleScheduler
2020-07-22T06:21:32.517520965Z [2020-07-22 07:21:32.517] [LOG] Starting node helper for: MMM-ModuleScheduler
2020-07-22T06:21:32.518244491Z [2020-07-22 07:21:32.517] [LOG] Connecting socket for: updatenotification
2020-07-22T06:21:32.518752426Z [2020-07-22 07:21:32.518] [LOG] Connecting socket for: calendar
2020-07-22T06:21:32.519560527Z [2020-07-22 07:21:32.519] [LOG] Starting node helper for: calendar
2020-07-22T06:21:32.520194591Z [2020-07-22 07:21:32.519] [LOG] Connecting socket for: newsfeed
2020-07-22T06:21:32.520642395Z [2020-07-22 07:21:32.520] [LOG] Starting module: newsfeed
2020-07-22T06:21:32.521175751Z [2020-07-22 07:21:32.520] [LOG] Sockets connected & modules started ...
2020-07-22T06:21:32.521793193Z [2020-07-22 07:21:32.521] [LOG]
2020-07-22T06:21:32.521965275Z Ready to go! Please point your browser to: http://localhost:8080
2020-07-22T06:22:17.454134357Z [2020-07-22 07:22:17.453] [LOG] MMM-ModuleScheduler is removing all scheduled jobs
2020-07-22T06:22:17.471356732Z [2020-07-22 07:22:17.454] [LOG] MMM-ModuleScheduler received CREATE_GLOBAL_SCHEDULE
2020-07-22T06:22:17.471476016Z [2020-07-22 07:22:17.455] [LOG] MMM-ModuleScheduler is creating a global schedule for all modules using "0 8 * * *" and "0 21 * * *" with dim level 40
2020-07-22T06:22:17.471602634Z [2020-07-22 07:22:17.469] [LOG] MMM-ModuleScheduler is dimming all modules
2020-07-22T06:22:17.472227409Z [2020-07-22 07:22:17.471] [LOG] MMM-ModuleScheduler has created the global schedule for all modules
2020-07-22T06:22:17.472883960Z [2020-07-22 07:22:17.472] [LOG] MMM-ModuleScheduler will next show all modules at Wed Jul 22 2020 08:00:00 GMT+0100 (British Summer Time)
2020-07-22T06:22:17.473198792Z [2020-07-22 07:22:17.472] [LOG] MMM-ModuleScheduler will next dim all modules at Wed Jul 22 2020 21:00:00 GMT+0100 (British Summer Time)
2020-07-22T06:22:17.499619243Z [2020-07-22 07:22:17.499] [LOG] Create new calendar fetcher for url: http://www.calendarlabs.com/templates/ical/US-Holidays.ics - Interval: 300000
2020-07-22T06:22:17.508640836Z [2020-07-22 07:22:17.508] [LOG] Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
@ianperrin I started doing some isolating of the module and debugging and found out the problem was actually an issue in my own module. In my module I was accidentally trying to get the length of an undefined array at one point and strangely enough, the module was failing with no indication in the logs. Thanks for your help!
@jseidman95 okay no worries, I suspect there may have been something in the browser console, but glad you’re fixed.
👍 thanks again
When I set either of those values, I see no logs besides
MMM-ModuleScheduler is removing all scheduled jobs
and the schedule doesn't execute