Read the statement by Michael Teeuw here.
MMM-Pages module all showing on one page
-
Hello!
I am having a strange issue where all of the modules are loading onto the first page and not rotating through pages while using the MMM-Pages module. I’ve worked through the suggested uninstall/reinstalling the module process outlined in the issue brought up here, but it hasn’t resolved it.
Magic Mirror version: 2.33.0
The pages config is below. Thanks for the help!
module: "MMM-pages", // flip between pages - goal was to set full page calendar on one page, rest on other config: { timings: { default: 10000, // rotate every 10 seconds 0: 20000 // page 0 rotates every 20 seconds }, animationTime: 2000, modules: [ [ // page 0 'weather', 'alert', 'clock' ], [ 'MMM-CalendarExt3' ], // page 1 ], fixed: [ ['MMM-page-indicator'], // what to show on every page ], hiddenPages:{ // modules to not show, or to hide in specific pages "hidden": [ 'calendar', 'updatenotification' ], //calendar module only needed to feed into MMM-CalendarExt3 and associated modules, but setting "disable = true" breaks this connection } } -
@hahawoooooo as pages is done all in browser, can you open the developers window, ctrl -shift-I, select the console tab,
And enter page is the filter field -
@sdetweil
Sam,
MMM-Adventskalendar, causes Your Pages to load all 50 of my modules on one page. I removed it and installed MMM-MyTeams-Adventskalendar and it works fine, now… Could not figure out what was actually causing it. Something about picture not having naming text. Didn’t know that would cause it to freak out. -
@sdetweil : Thanks for the help! Here’s what I copied from the dev console after filtering for “Page”:
-
Failed to load resource: the 8080/modules/MMM-page-indicator/MMM-page-indicator.js:1 server responded with a status of 404 (Not Found)
-
Refused to execute script from ‘http://localhost:8080/modules/MMM-page-indicator/MMM-page-indicator.js’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.
-
Refused to apply style from ‘http://localhost:8080/modules/MMM-pages/pages.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
-
-
@plainbroke thx… will look at it
I added it with example params and it works with pages just fine…{ module: "MMM-Adventskalender", classes:"page1", // on my pages def position: "top_center", config: { backgroundImage: "/modules/MMM-Adventskalender/images/background.jpg", doorMargin: 30, moduleWidth: 800, moduleHeight: 600, autopen: true, autoopenat: "10:00", }, }, -
@hahawoooooo weird… none of those make sense…
not found, then not executable
and css… typically that means not foundis this on a synology nas, and docker for MM??
-
@sdetweil I was a bit flummoxed myself, honestly. It’s on a raspberry pi, and I’m not using docker.
-
@hahawoooooo can you do
cd ~/MagicMirror/modules ls -laF -
@sdetweil Sure thing:
total 32
drwxr-xr-x 8 dtraindisplay dtraindisplay 4096 Dec 2 21:36 ./
drwxr-xr-x 16 dtraindisplay dtraindisplay 4096 Dec 2 21:15 …/
drwxr-xr-x 10 dtraindisplay dtraindisplay 4096 Dec 2 21:08 default/
drwxr-xr-x 7 dtraindisplay dtraindisplay 4096 Dec 2 21:36 MMM-CalendarExt3/
drwxr-xr-x 5 dtraindisplay dtraindisplay 4096 Dec 2 21:37 MMM-LINQConnectCalendar/
drwxr-xr-x 4 dtraindisplay dtraindisplay 4096 Dec 2 21:30 MMM-mmpm/
drwxr-xr-x 7 dtraindisplay dtraindisplay 4096 Dec 2 21:34 MMM-page-indicator/
drwxr-xr-x 5 dtraindisplay dtraindisplay 4096 Dec 2 21:34 MMM-pages/I also tried doing a fresh install using the install script in a new folder, and I’m running into the same issue, but the console logs (ctrl+shift_I) is now showing a different output:
loader.js:179 Load script: modules/MMM-pages/MMM-pages.js
module.js:489 Module registered: MMM-pages
loader.js:152 Bootstrapping module: MMM-pages
loader.js:156 Scripts loaded for: MMM-pages
loader.js:195 Load stylesheet: modules/MMM-pages/pages.css
loader.js:159 Styles loaded for: MMM-pages
loader.js:162 Translations loaded for: MMM-pages
loader.js:179 Load script: modules/MMM-page-indicator/MMM-page-indicator.js
module.js:489 Module registered: MMM-page-indicator
loader.js:152 Bootstrapping module: MMM-page-indicator
loader.js:156 Scripts loaded for: MMM-page-indicator
loader.js:195 Load stylesheet: modules/MMM-page-indicator/page-indicators.css
loader.js:159 Styles loaded for: MMM-page-indicator
loader.js:162 Translations loaded for: MMM-page-indicator
MMM-page-indicator.js:138 [MMM-page-indicator]: MMM-pages detected. Will ignore PAGE_INCREMENT and PAGE_DECREMENT as it is already handled by MMM-pages
MMM-pages.js:117 [MMM-pages] received that all objects are created; will now hide things!
MMM-pages.js:331 [MMM-pages] resuming rotation
MMM-page-indicator.js:106 [MMM-page-indicator]: Changing maximum pages to 2
MMM-page-indicator.js:131 [MMM-page-indicator]: Setting page to 0
main.js:527 Uncaught (in promise) TypeError: searchClass.toLowerCase is not a function
at main.js:527:38
at Array.filter ()
at modulesByClass (main.js:523:31)
at Array.exceptWithClass (main.js:508:11)
at Class.animatePageChange (MMM-pages.js:234:8)
at Class.notificationReceived (MMM-pages.js:121:14)
at sendNotification (main.js:101:12)
at main.js:70:4I also
-
@hahawoooooo interesting
Can you docd ~/MagicMirror/modules/MMM-pages
grep version package.jsonLatest is 1.3.0
If not 1.3.0
git pullThe restart MagicMirror
