Read the statement by Michael Teeuw here.
Not all Modules are displaying on the tv
-
Thanks…her the console debug:
Initializing MagicMirror. translator.js:129 Loading core translation file: translations/de.json translator.js:154 Loading core translation fallback file: translations/en.json loader.js:176 Load script: modules/default/alert//alert.js module.js:513 Module registered: alert loader.js:148 Bootstrapping module: alert loader.js:176 Load script: modules/default/alert/notificationFx.js loader.js:153 Scripts loaded for: alert loader.js:195 Load stylesheet: modules/default/alert/notificationFx.css loader.js:195 Load stylesheet: vendor/css/font-awesome.css loader.js:155 Styles loaded for: alert translator.js:100 alert - Load translation: translations/de.json translator.js:102 alert - Load translation fallback: translations/en.json loader.js:157 Translations loaded for: alert loader.js:176 Load script: modules/default/updatenotification//updatenotification.js module.js:513 Module registered: updatenotification loader.js:148 Bootstrapping module: updatenotification loader.js:153 Scripts loaded for: updatenotification loader.js:155 Styles loaded for: updatenotification loader.js:157 Translations loaded for: updatenotification loader.js:176 Load script: modules/default/clock//clock.js module.js:513 Module registered: clock loader.js:148 Bootstrapping module: clock loader.js:176 Load script: vendor/node_modules/moment/min/moment-with-locales.js loader.js:176 Load script: vendor/node_modules/moment-timezone/builds/moment-timezone-with-data.js loader.js:176 Load script: vendor/node_modules/suncalc/suncalc.js loader.js:153 Scripts loaded for: clock loader.js:195 Load stylesheet: modules/default/clock/clock_styles.css loader.js:155 Styles loaded for: clock loader.js:157 Translations loaded for: clock loader.js:176 Load script: modules/default/calendar//calendar.js module.js:513 Module registered: calendar loader.js:148 Bootstrapping module: calendar loader.js:236 File already loaded: moment.js loader.js:153 Scripts loaded for: calendar loader.js:195 Load stylesheet: modules/default/calendar/calendar.css loader.js:236 File already loaded: font-awesome.css loader.js:155 Styles loaded for: calendar loader.js:157 Translations loaded for: calendar loader.js:148 Bootstrapping module: calendar loader.js:236 File already loaded: moment.js loader.js:153 Scripts loaded for: calendar loader.js:236 File already loaded: calendar.css loader.js:236 File already loaded: font-awesome.css loader.js:155 Styles loaded for: calendar loader.js:157 Translations loaded for: calendar loader.js:176 Load script: modules/MMM-Remote-Control//MMM-Remote-Control.js module.js:505 Check MagicMirror version for module 'MMM-Remote-Control' - Minimum version: 2.12.0 - Current version: 2.13.0 module.js:507 Version is ok! module.js:513 Module registered: MMM-Remote-Control loader.js:148 Bootstrapping module: MMM-Remote-Control loader.js:153 Scripts loaded for: MMM-Remote-Control loader.js:195 Load stylesheet: modules/MMM-Remote-Control/remote-control.css loader.js:155 Styles loaded for: MMM-Remote-Control loader.js:157 Translations loaded for: MMM-Remote-Control loader.js:176 Load script: modules/MMM-SoccerLiveScore//MMM-SoccerLiveScore.js module.js:513 Module registered: MMM-SoccerLiveScore loader.js:148 Bootstrapping module: MMM-SoccerLiveScore loader.js:236 File already loaded: moment.js loader.js:153 Scripts loaded for: MMM-SoccerLiveScore loader.js:236 File already loaded: font-awesome.css loader.js:195 Load stylesheet: modules/MMM-SoccerLiveScore/MMM-SoccerLiveScore.css loader.js:155 Styles loaded for: MMM-SoccerLiveScore loader.js:157 Translations loaded for: MMM-SoccerLiveScore loader.js:176 Load script: modules/MMM-OpenmapWeather//MMM-OpenmapWeather.js module.js:513 Module registered: MMM-OpenmapWeather loader.js:148 Bootstrapping module: MMM-OpenmapWeather loader.js:236 File already loaded: moment.js loader.js:153 Scripts loaded for: MMM-OpenmapWeather loader.js:195 Load stylesheet: vendor/node_modules/weathericons/css/weather-icons.css loader.js:195 Load stylesheet: modules/MMM-OpenmapWeather/MMM-OpenmapWeather.css loader.js:155 Styles loaded for: MMM-OpenmapWeather loader.js:157 Translations loaded for: MMM-OpenmapWeather loader.js:176 Load script: modules/default/weatherforecast//weatherforecast.js module.js:513 Module registered: weatherforecast loader.js:148 Bootstrapping module: weatherforecast loader.js:236 File already loaded: moment.js loader.js:153 Scripts loaded for: weatherforecast loader.js:236 File already loaded: weather-icons.css loader.js:195 Load stylesheet: modules/default/weatherforecast/weatherforecast.css loader.js:155 Styles loaded for: weatherforecast loader.js:157 Translations loaded for: weatherforecast loader.js:176 Load script: modules/MMM-Traffic//MMM-Traffic.js module.js:513 Module registered: MMM-Traffic loader.js:148 Bootstrapping module: MMM-Traffic loader.js:236 File already loaded: moment.js loader.js:153 Scripts loaded for: MMM-Traffic loader.js:195 Load stylesheet: modules/MMM-Traffic/traffic.css loader.js:236 File already loaded: font-awesome.css loader.js:155 Styles loaded for: MMM-Traffic loader.js:157 Translations loaded for: MMM-Traffic loader.js:176 Load script: modules/MMM-ioBroker//MMM-ioBroker.js module.js:513 Module registered: MMM-ioBroker loader.js:148 Bootstrapping module: MMM-ioBroker loader.js:153 Scripts loaded for: MMM-ioBroker loader.js:195 Load stylesheet: modules/MMM-ioBroker/MMM-ioBroker.css loader.js:155 Styles loaded for: MMM-ioBroker loader.js:157 Translations loaded for: MMM-ioBroker loader.js:176 Load script: modules/default/newsfeed//newsfeed.js module.js:513 Module registered: newsfeed loader.js:148 Bootstrapping module: newsfeed loader.js:236 File already loaded: moment.js loader.js:153 Scripts loaded for: newsfeed loader.js:155 Styles loaded for: newsfeed loader.js:157 Translations loaded for: newsfeed loader.js:176 Load script: modules/MMM-Tankerkoenig//MMM-Tankerkoenig.js module.js:505 Check MagicMirror version for module 'MMM-Tankerkoenig' - Minimum version: 2.2.0 - Current version: 2.13.0 module.js:507 Version is ok! module.js:513 Module registered: MMM-Tankerkoenig loader.js:148 Bootstrapping module: MMM-Tankerkoenig loader.js:153 Scripts loaded for: MMM-Tankerkoenig loader.js:195 Load stylesheet: modules/MMM-Tankerkoenig/MMM-Tankerkoenig.css loader.js:155 Styles loaded for: MMM-Tankerkoenig translator.js:100 MMM-Tankerkoenig - Load translation: i18n/de.json translator.js:102 MMM-Tankerkoenig - Load translation fallback: i18n/en.json loader.js:157 Translations loaded for: MMM-Tankerkoenig loader.js:176 Load script: modules/MMM-PublicTransportHafas//MMM-PublicTransportHafas.js module.js:513 Module registered: MMM-PublicTransportHafas loader.js:148 Bootstrapping module: MMM-PublicTransportHafas loader.js:236 File already loaded: moment.js loader.js:176 Load script: modules/MMM-PublicTransportHafas/core/PTHAFASDomBuilder.js loader.js:176 Load script: modules/MMM-PublicTransportHafas/core/PTHAFASTableBodyBuilder.js loader.js:153 Scripts loaded for: MMM-PublicTransportHafas loader.js:195 Load stylesheet: modules/MMM-PublicTransportHafas/css/styles.css loader.js:236 File already loaded: font-awesome.css loader.js:155 Styles loaded for: MMM-PublicTransportHafas translator.js:100 MMM-PublicTransportHafas - Load translation: translations/de.json translator.js:102 MMM-PublicTransportHafas - Load translation fallback: translations/en.json loader.js:157 Translations loaded for: MMM-PublicTransportHafas loader.js:176 Load script: modules/MMM-COVID19-AMPEL//MMM-COVID19-AMPEL.js module.js:513 Module registered: MMM-COVID19-AMPEL loader.js:148 Bootstrapping module: MMM-COVID19-AMPEL loader.js:153 Scripts loaded for: MMM-COVID19-AMPEL loader.js:195 Load stylesheet: modules/MMM-COVID19-AMPEL/MMM-COVID19-AMPEL.css loader.js:155 Styles loaded for: MMM-COVID19-AMPEL translator.js:100 MMM-COVID19-AMPEL - Load translation: translations/de.json translator.js:102 MMM-COVID19-AMPEL - Load translation fallback: translations/en.json loader.js:157 Translations loaded for: MMM-COVID19-AMPEL loader.js:176 Load script: modules/MMM-pages//MMM-pages.js module.js:513 Module registered: MMM-pages loader.js:148 Bootstrapping module: MMM-pages loader.js:153 Scripts loaded for: MMM-pages loader.js:195 Load stylesheet: modules/MMM-pages/pages.css loader.js:155 Styles loaded for: MMM-pages loader.js:157 Translations loaded for: MMM-pages loader.js:176 Load script: modules/MMM-Globe//MMM-Globe.js module.js:513 Module registered: MMM-Globe loader.js:148 Bootstrapping module: MMM-Globe loader.js:153 Scripts loaded for: MMM-Globe loader.js:195 Load stylesheet: modules/MMM-Globe/MMM-Globe.css loader.js:155 Styles loaded for: MMM-Globe loader.js:157 Translations loaded for: MMM-Globe loader.js:176 Load script: modules/MMM-Formula1//MMM-Formula1.js module.js:513 Module registered: MMM-Formula1 loader.js:148 Bootstrapping module: MMM-Formula1 loader.js:153 Scripts loaded for: MMM-Formula1 loader.js:236 File already loaded: font-awesome.css loader.js:195 Load stylesheet: modules/MMM-Formula1/MMM-Formula1.css loader.js:155 Styles loaded for: MMM-Formula1 translator.js:100 MMM-Formula1 - Load translation: translations/de.json translator.js:102 MMM-Formula1 - Load translation fallback: translations/en.json loader.js:157 Translations loaded for: MMM-Formula1 loader.js:176 Load script: modules/MMM-MoonPhase//MMM-MoonPhase.js module.js:505 Check MagicMirror version for module 'MMM-MoonPhase' - Minimum version: 2.1.0 - Current version: 2.13.0 module.js:507 Version is ok! module.js:513 Module registered: MMM-MoonPhase loader.js:148 Bootstrapping module: MMM-MoonPhase loader.js:153 Scripts loaded for: MMM-MoonPhase loader.js:195 Load stylesheet: modules/MMM-MoonPhase/MMM-MoonPhase.css loader.js:155 Styles loaded for: MMM-MoonPhase translator.js:100 MMM-MoonPhase - Load translation: translations/de.json translator.js:102 MMM-MoonPhase - Load translation fallback: translations/en.json loader.js:157 Translations loaded for: MMM-MoonPhase loader.js:176 Load script: modules/MMM-Fuel//MMM-Fuel.js module.js:513 Module registered: MMM-Fuel loader.js:148 Bootstrapping module: MMM-Fuel loader.js:153 Scripts loaded for: MMM-Fuel loader.js:236 File already loaded: font-awesome.css loader.js:195 Load stylesheet: modules/MMM-Fuel/MMM-Fuel.css loader.js:155 Styles loaded for: MMM-Fuel translator.js:100 MMM-Fuel - Load translation: translations/de.json translator.js:102 MMM-Fuel - Load translation fallback: translations/en.json loader.js:157 Translations loaded for: MMM-Fuel loader.js:195 Load stylesheet: css/custom.css alert.js:162 Starting module: alert updatenotification.js:19 Start updatenotification clock.js:46 Starting module: clock 2calendar.js:81 Starting module: calendar MMM-Remote-Control.js:23 Starting module: MMM-Remote-Control MMM-OpenmapWeather.js:117 Starting module: MMM-OpenmapWeather weatherforecast.js:90 Starting module: weatherforecast MMM-Traffic.js:21 Starting module: MMM-Traffic MMM-ioBroker.js:52 Starting module: MMM-ioBroker newsfeed.js:57 Starting module: newsfeed MMM-PublicTransportHafas.js:43 Starting module: MMM-PublicTransportHafas with identifier: module_13_MMM-PublicTransportHafas MMM-Formula1.js:50 Starting module: MMM-Formula1 MMM-Fuel.js:180 Starting module: MMM-Fuel MMM-Fuel.js:183 Config option sortBy has no matching value in config option types! Falling back to first entry. start @ MMM-Fuel.js:183 main.js:508 All modules started! MMM-MoonPhase.js:165 5.311200000102331 MMM-Formula1.js:66 MMM-Formula1 received a notification: DRIVER_STANDINGS MMM-Traffic.js:132 received MMM_TRAFFIC_ERROR calendar.js:145 Calendar Error. Could not fetch calendar: https://calendar.google.com/calendar/ical/xxxxxxxxxxxxxxxxxxxxxxxxxxx/private-4268xxxxxxxxxxxxxxxxxxxxxx84/basic.ics socketNotificationReceived @ calendar.js:145 MMM-pages.js:110 [Pages]: received that all objects are created;will now hide things! module.js:199 alert is suspended. module.js:199 MMM-pages is suspended. module.js:199 MMM-OpenmapWeather is suspended. module.js:199 weatherforecast is suspended. module.js:199 MMM-Remote-Control is suspended. module.js:199 MMM-Traffic is suspended. module.js:199 MMM-PublicTransportHafas is suspended. module.js:199 MMM-COVID19-AMPEL is suspended. module.js:199 MMM-Globe is suspended. module.js:199 MMM-Formula1 is suspended. module.js:199 MMM-MoonPhase is suspended. main.js:297 Will not show MMM-OpenmapWeather. LockStrings active: module_7_MMM-OpenmapWeather main.js:297 Will not show weatherforecast. LockStrings active: module_8_weatherforecast module.js:206 clock is resumed. 2module.js:206 calendar is resumed. module.js:206 MMM-SoccerLiveScore is resumed. module.js:206 MMM-ioBroker is resumed. module.js:206 newsfeed is resumed. module.js:206 MMM-Tankerkoenig is resumed. module.js:206 MMM-Fuel is resumed. api.openweathermap.org/data/2.5/forecast/daily?id=xxxxxxxx&cnt=7&exclude=false&units=metric&lang=de&APPID=xxxxxxxxxxxxxxxxxxxxx98a:1 Failed to load resource: the server responded with a status of 401 (Unauthorized) weatherforecast.js:265 weatherforecast: Your AppID does not support long term forecasts. Switching to fallback endpoint. weatherRequest.onreadystatechange @ weatherforecast.js:265 calendar.js:145 Calendar Error. Could not fetch calendar: https://calendar.google.com/calendar/ical/xxxxxxxxxxxxxxxxxxxxxxxx/prxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/basic.ics socketNotificationReceived @ calendar.js:145 (anonymous) @ module.js:250 (anonymous) @ socketclient.js:39 r.emit @ index.js:83 r.onevent @ index.js:83 MMSocket.self.socket.onevent @ socketclient.js:33 r.onpacket @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 r.ondecoded @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 a.add @ index.js:83 r.ondata @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 r.onPacket @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 r.onPacket @ index.js:83 r.onData @ index.js:83 ws.onmessage @ index.js:83 MMM-Traffic.js:132 received MMM_TRAFFIC_ERROR MMM-pages.js:98 [Pages]: received a notification to increment pages! module.js:199 alert is suspended. module.js:199 MMM-pages is suspended. module.js:199 MMM-Remote-Control is suspended. module.js:199 MMM-SoccerLiveScore is suspended. module.js:199 MMM-Traffic is suspended. module.js:199 MMM-PublicTransportHafas is suspended. module.js:199 MMM-COVID19-AMPEL is suspended. module.js:199 MMM-Globe is suspended. module.js:199 MMM-Formula1 is suspended. main.js:297 Will not show MMM-OpenmapWeather. LockStrings active: module_7_MMM-OpenmapWeather module.js:206 clock is resumed. 2module.js:206 calendar is resumed. module.js:206 weatherforecast is resumed. module.js:206 MMM-ioBroker is resumed. module.js:206 newsfeed is resumed. module.js:206 MMM-Tankerkoenig is resumed. module.js:206 MMM-MoonPhase is resumed. module.js:206 MMM-Fuel is resumed. MMM-pages.js:98 [Pages]: received a notification to increment pages! module.js:199 alert is suspended. module.js:199 MMM-pages is suspended. module.js:199 MMM-Remote-Control is suspended. module.js:199 MMM-SoccerLiveScore is suspended. module.js:199 MMM-Traffic is suspended. module.js:199 MMM-PublicTransportHafas is suspended. module.js:199 MMM-Globe is suspended. module.js:199 MMM-Formula1 is suspended. module.js:199 MMM-MoonPhase is suspended. main.js:297 Will not show MMM-OpenmapWeather. LockStrings active: module_7_MMM-OpenmapWeather module.js:206 clock is resumed. 2module.js:206 calendar is resumed. module.js:206 weatherforecast is resumed. module.js:206 MMM-ioBroker is resumed. module.js:206 newsfeed is resumed. module.js:206 MMM-Tankerkoenig is resumed. module.js:206 MMM-COVID19-AMPEL is resumed. module.js:206 MMM-Fuel is resumed. MMM-pages.js:98 [Pages]: received a notification to increment pages! module.js:199 alert is suspended. module.js:199 MMM-pages is suspended. module.js:199 MMM-Remote-Control is suspended. module.js:199 MMM-SoccerLiveScore is suspended. module.js:199 MMM-Traffic is suspended. module.js:199 MMM-PublicTransportHafas is suspended. module.js:199 MMM-COVID19-AMPEL is suspended. module.js:199 MMM-Globe is suspended. module.js:199 MMM-MoonPhase is suspended. main.js:297 Will not show MMM-OpenmapWeather. LockStrings active: module_7_MMM-OpenmapWeather module.js:206 clock is resumed. 2module.js:206 calendar is resumed. module.js:206 weatherforecast is resumed. module.js:206 MMM-ioBroker is resumed. module.js:206 newsfeed is resumed. module.js:206 MMM-Tankerkoenig is resumed. module.js:206 MMM-Formula1 is resumed. module.js:206 MMM-Fuel is resumed. MMM-pages.js:98 [Pages]: received a notification to increment pages! module.js:199 alert is suspended. module.js:199 MMM-pages is suspended. module.js:199 MMM-Remote-Control is suspended. module.js:199 MMM-SoccerLiveScore is suspended. module.js:199 MMM-Traffic is suspended. module.js:199 MMM-PublicTransportHafas is suspended. module.js:199 MMM-COVID19-AMPEL is suspended. module.js:199 MMM-Formula1 is suspended. module.js:199 MMM-MoonPhase is suspended. main.js:297 Will not show MMM-OpenmapWeather. LockStrings active: module_7_MMM-OpenmapWeather module.js:206 clock is resumed. 2module.js:206 calendar is resumed. module.js:206 weatherforecast is resumed. module.js:206 MMM-ioBroker is resumed. module.js:206 newsfeed is resumed. module.js:206 MMM-Tankerkoenig is resumed. module.js:206 MMM-Globe is resumed. module.js:206 MMM-Fuel is resumed. calendar.js:145 Calendar Error. Could not fetch calendar: https://calendar.google.com/calendar/ical/xxxxxxxxxxxxxxxxxxxxxxxxxxxx/private-426839fca2c51459341321f6f4e55e84/basic.ics socketNotificationReceived @ calendar.js:145 (anonymous) @ module.js:250 (anonymous) @ socketclient.js:39 r.emit @ index.js:83 r.onevent @ index.js:83 MMSocket.self.socket.onevent @ socketclient.js:33 r.onpacket @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 r.ondecoded @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 a.add @ index.js:83 r.ondata @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 r.onPacket @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 r.onPacket @ index.js:83 r.onData @ index.js:83 ws.onmessage @ index.js:83 MMM-Traffic.js:132 received MMM_TRAFFIC_ERROR main.js:297 Will not show MMM-Traffic. LockStrings active: module_15_MMM-pages calendar.js:145 Calendar Error. Could not fetch calendar: https://calendar.google.com/calendarxxxxxxxxxxgroup.calendar.google.com/private-42xxxxxxxxxxxx55e84/basic.ics socketNotificationReceived @ calendar.js:145 (anonymous) @ module.js:250 (anonymous) @ socketclient.js:39 r.emit @ index.js:83 r.onevent @ index.js:83 MMSocket.self.socket.onevent @ socketclient.js:33 r.onpacket @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 r.ondecoded @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 a.add @ index.js:83 r.ondata @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 r.onPacket @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 r.onPacket @ index.js:83 r.onData @ index.js:83 ws.onmessage @ index.js:83 MMM-Traffic.js:132 received MMM_TRAFFIC_ERROR main.js:297 Will not show MMM-Traffic. LockStrings active: module_15_MMM-pages MMM-pages.js:98 [Pages]: received a notification to increment pages! module.js:199 alert is suspended. module.js:199 MMM-pages is suspended. module.js:199 MMM-Remote-Control is suspended. module.js:199 MMM-SoccerLiveScore is suspended. module.js:199 MMM-Traffic is suspended. module.js:199 MMM-COVID19-AMPEL is suspended. module.js:199 MMM-Globe is suspended. module.js:199 MMM-Formula1 is suspended. module.js:199 MMM-MoonPhase is suspended. main.js:297 Will not show MMM-OpenmapWeather. LockStrings active: module_7_MMM-OpenmapWeather module.js:206 clock is resumed. 2module.js:206 calendar is resumed. module.js:206 weatherforecast is resumed. module.js:206 MMM-ioBroker is resumed. module.js:206 newsfeed is resumed. module.js:206 MMM-Tankerkoenig is resumed. module.js:206 MMM-PublicTransportHafas is resumed. module.js:206 MMM-Fuel is resumed.
i can see some mistake about my calender but not from MMM-Traffic…
-
@kusselin Do you know, that MMM-Pages has a paramter named “fixed” where you can list all the modules which should appear on every page? May be this helps to investigate or avoid side-effects.
-
@kusselin There is an error from openweather:
api.openweathermap.org/data/2.5/forecast/daily?id=xxxxxxxx&cnt=7&exclude=false&units=metric&lang=de&APPID=xxxxxxxxxxxxxxxxxxxxx98a:1 Failed to load resource: the server responded with a status of 401 (Unauthorized) weatherforecast.js:265 weatherforecast: Your AppID does not support long term forecasts. Switching to fallback endpoint. weatherRequest.onreadystatechange @ weatherforecast.js:265
Unless you referring to Traffic which also has an error.
MMM-Traffic.js:132 received MMM_TRAFFIC_ERROR
-
@kusselin said in Not all Modules are displaying on the tv:
main.js:297 Will not show MMM-OpenmapWeather. LockStrings active: module_7_MMM-OpenmapWeather
Also, this is the problem why openmapweather does not show.
I do not yet understand lockstrings. If someone does, I’m happy for an explanantion. Looking at you @sdetweil :-) -
@lavolp3 Same for MMM-Traffic:
main.js:297 Will not show MMM-Traffic. LockStrings active: module_15_MMM-pages
-
@kusselin MMM-Pages uses hiding to only show what you selected to be on each page. Mm only hides or shows modules.
Pages uses that to display just a few at a time. (Per page)
LockStrings are used to make sure that the module requesting show, is the same that requested hide. So u get consistent behavior. Else u might have things popping up all over. Remember, mm only does hide or show. It assumes all modules are showing all the time. AND all modules ARE running all the time.
-
@sdetweil But how do you set/change or address lockstrings?
-
@lavolp3 on the show/hide there is an optional additional parameter, the ‘string’ for the lockstring… its any text u want.
from
https://docs.magicmirror.builders/development/core-module-file.html#module-instance-methodsthis.hide(speed, callback, options) speed Number - Optional (Required when setting callback or options), The speed of the hide animation in milliseconds. callback Function - Optional, The callback after the hide animation is finished. options Function - Optional, Object with additional options for the hide action (see below). (Introduced in version: 2.1.0.) To hide a module, you can call the hide(speed, callback) method. You can call the hide method on the module instance itself using this.hide(), but of course you can also hide another module using anOtherModule.hide(). Possible configurable options: lockString - String - When setting lock string, the module can not be shown without passing the correct lockstring. This way (multiple) modules can prevent a module from showing. It's considered best practice to use your modules identifier as the locksString: this.identifier. See visibility locking below.
-
@sdetweil Thank you. It seems the hide and show calls in MMM-pages need to be amended by the (standard) lockstring to work properly.
The module is after all expected to overwrite any other hide/show functionality.
I had the same issue so I’ll try that out in the next days. -
@lavolp3 Pages uses lockstring already
module.hide( self.config.animationTime / 2, { lockString: self.identifier } )); module.show( self.config.animationTime / 2, { lockString: self.identifier } ));
uses the MMM-Pages module identifier as the string