Read the statement by Michael Teeuw here.
Troublesshooting config
-
this is my config file if I remove the page everything show up fine but with pages installed I lose the weather saying loading and the calendar but sometime the calendar
var config = { address: "localhost", port: 8080, basePath: "/", ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], useHttps: false, language: "en", locale: "en-US", logLevel: ["INFO", "LOG", "WARN", "ERROR"], timeFormat: 24, units: "metric", modules: [ { // MMM-pages controller module: "MMM-pages", config: { modules: [ ["MMM-OpenWeatherMapForecast", "clock"], // Page 1 ["calendar", "clock"], // Page 2 ["MMM-OpenWeatherMapForecast", "calendar", "clock", "compliments", "newsfeed"], // Page 3 (All) ["MMM-OpenWeatherMapForecast", "calendar", "clock", "compliments", "newsfeed"] // Page 4 (All) ], fixed: ["MMM-MotionDetector"], // Keeps motion detector running in the background rotationTime: 10000, // Optional: auto-rotates every 10 seconds. Remove if you want manual control. } }, { module: 'MMM-page-indicator', position: 'bottom_bar', config: { activeBright: true, } }, { module: "clock", position: "top_left" }, { module: "calendar", header: "US Holidays", position: "top_left", config: { calendars: [ { fetchInterval: 7 * 24 * 60 * 60 * 1000, symbol: "calendar-check", url: "https://calendar.google.com" } ] } }, { module: "MMM-OpenWeatherMapForecast", header: "Weather", position: "top_right", config: { apikey: "192baf050dxxxxxxxxf1a10d32088c93fb", latitude: 51.5775, longitude: -0.1786, iconset: "4c", forecastLayout: "table" } }, { module: "compliments", position: "lower_third" }, { module: "MMM-MotionDetector", config: { captureIntervalTime: 1000, scoreThreshold: 200, timeout: 3000 } }, { module: "newsfeed", position: "bottom_bar", config: { feeds: [ { title: "BBC England", url: "https://feeds.bbci.co.uk" } ] } } ] }; if (typeof module !== "undefined") { module.exports = config; }shows up on different boot ups?
any help please
-
@videogame95 which mmm-pages are you using?
-
@videogame95 the calendar will show every 40 seconds
Not for 10 seconds page 1
Yes for 10 seconds page 2
Not for 10 seconds page 3
Not for 10 seconds page 4
Repeat
Not for 10 seconds page 1I don’t know that weather module. Does it restart when shown?
What is the refresh time for weather? -
The weather and the calendar both just in loading not coming up. I could try a different weather module any suggestions? their are different way of adding the pages look at 3rd party pages see which ways best to use .
any help please and thanks
-
@videogame95 yes there are two different ways of coding the pages
You can use the module names as you are doing
I always found this frustrating. Looking at a module config, I had to scroll back to the pages config to find out where it was and then scroll back to the module config, where was that?
So I documented the page classes approach
In pages
Call them useful names , page1,page2, mom, dad, kids, houseThen at each module after the module:
Addclasses:"page1”,Or whatever page (or space separated list of page names)
On the pages config fixed, I use “on_every_page”This also solves the problem with multiple of same module on different pages(weather current on one forecast on another)
But I also am confused, as the latest pages config uses a different timing variable name?
-
Thanks what are page position can i use as see that s missing and could not see
any on the list use could give me a list of position I can use in pages like top-left
would this be the correct way to write it in the position space? I’ve seen it on
other modules but can remember all the position .thank for your help
-
I have a copy of my config before adding page I’ve replaced it with that one so I can add the pages to that one if its working always make a copy before add any new modules.
thank again
-
@videogame95 positions are unchanged in pages
See https://docs.magicmirror.builders/modules/configuration.html#position
We can only show or hide modules
Pages module makes virtual pages by only showing selected modules in defined groups, hiding all the others -
@videogame95 change the update time in pages to 20 seconds to test
20000 ( milliseconds)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login