MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. 3squaremirror
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    3
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 14
    • Groups 0

    Posts

    Recent Best Controversial
    • MMM-MQTT add conversion from metric to imperial

      https://github.com/ottopaulsen/MMM-MQTT

      can anyone help me add conversion functionality to this module? I’m pulling temp and distance from my MQTT broker, but it’s only in metric and would like it in imperial.

      posted in Troubleshooting
      3
      3squaremirror
    • RE: MMM-Touch

      @MMRIZE thank you for responding, that works well.

      posted in System
      3
      3squaremirror
    • RE: MMM-Touch

      one other question. I’m trying to make use of the onIdle function to activate a screensaver page in my MMM-pages.

      from Pages’s github

      SHOW_HIDDEN_PAGE	String	MMM-pages will switch to the provided hidden page name.
      

      from Touch’s github

      // will send a TOUCH_IDLE_TRIGGERED notification
      onIdle: "TOUCH_IDLE_TRIGGERED",
      

      I’ve successfully got the Touch module to send a notification based on the onIdle timer. I just don’t know how to specify my Page’s screensaver page along with the payload.

      "SHOW_HIDDEN_PAGE", 'screenSaver'
      

      my code for each module

      {
              module: 'MMM-pages',
      	disabled: false,
          classes: 'default everyone',
              config: {
                      modules:
                          [[ "MMM-DateOnly", "clock2" ],
      			[ "MMM-OpenWeatherMapForecast", "clock" ],
                  [ "calendar", "clock" ],
      			[ "clock", "MMM-Wallpaper" ]
      			],
                      fixed: [ "weather", "MMM-page-indicator", "MMM-SimpleLogo" ],
                      hiddenPages: {
                          "screenSaver": [ "MMM-Wallpaper", "MMM-FlipClock" ],
                          "admin": [ "MMM-ShowMeSystemStatsModule", "MMM-AnOnScreenMenuModule" ],
                      },
              }
          },
      
      {
          module: "MMM-Touch",
          position: "top_bar",
          disabled: false,
          config: {
          debug: false,
          useDisplay: false,
      	autoMode: false,
          defaultMode: "default",
      
        threshold: {
          idle_ms: 3000, // Idle time (in milliseconds) after which the defined "onIdle" notification / callback function should be triggered
        },
        onIdle: ("SHOW_HIDDEN_PAGE", 'screenSaver'),
      
              gestureCommands: {
                  default: {
                      TAP_1: (commander) => {
                          commander.sendNotification("USER_PRESENCE", true);
                      },
                      PRESS_1: (commander) => {
                          commander.sendNotification("USER_PRESENCE", true);
                      },
                      TAP_2: (commander) => {
                          commander.sendNotification("LOAD_NEXT_WALLPAPER", true);
                      },
      
                      "SWIPE_UP_1" : (commander) => {
                        let clock = commander.getModule('MMM-OpenWeatherMapForecast')
                        clock.show()
                      },
                      "SWIPE_DOWN_1" : (commander) => {
                        let clock = commander.getModule('MMM-OpenWeatherMapForecast')
                        clock.hide()
                      },
      
                      SWIPE_UP_2: (commander) => {
                          commander.sendNotification("SHOW_HIDDEN_PAGE", "screenSaver");
                      },
                      SWIPE_DOWN_2: (commander) => {
                          commander.sendNotification("LEAVE_HIDDEN_PAGE");
                      },
      
                      SWIPE_LEFT_1: (commander) => {
                          commander.sendNotification("PAGE_INCREMENT", null);
                      },
                      SWIPE_RIGHT_1: (commander) => {
                          commander.sendNotification("PAGE_DECREMENT", null);
                      }
                  },
              }
          }
      },
      
      posted in System
      3
      3squaremirror
    • RE: MMM-ProfileSwitcher, A Profile/User/Layout Switching Module

      @wishmaster270 thank you, i think you’re right. i read about forcing a module to unhide the lockstring. not sure how to get that done.

      posted in Utilities
      3
      3squaremirror
    • RE: MMM-ProfileSwitcher, A Profile/User/Layout Switching Module

      @wishmaster270 i also use the Touch and Pages module.

      posted in Utilities
      3
      3squaremirror
    • RE: MMM-ProfileSwitcher, A Profile/User/Layout Switching Module

      @sdetweil my apology about the double posting, it’s noted. i am not clear on how to force profile switcher to switch. can you elaborate that?

      posted in Utilities
      3
      3squaremirror
    • RE: MMM-ProfileSwitcher, A Profile/User/Layout Switching Module

      having issue showing MMM-Profilepicture using MMM-ModuleScheduler and MMM-ProfileSwitcher.

      I’m trying to switch a day and night time image with profilepicture. Using modulescheduler to switch the image based on the time.

      As far as I can tell, each module is running correctly, as I’m not seeing any error in the console log.

      i think the issue has to do with LockStrings, and i don’t know how to fix it

      Will not show MMM-Profilepicture. LockStrings active: module_2_MMM-ProfileSwitcher
      

      my configs

      //////////////////// profile ///////////////////////////
      //////////////////// profile ///////////////////////////
              {
                  module: 'MMM-ProfileSwitcher',
                  disabled: false,
                  classes: 'default everyone',
                  config: {
                      // See 'Configuration options' for more information.
                          defaultClass: 'default',
                          everyoneClass: 'everyone',
                  }
              },
          
           {
              module: 'MMM-ModuleScheduler',
              disabled: false,
              classes: 'default everyone',
              config: {
                  notification_schedule: [
                      // SWITCH TO THE DAY PROFILE AT 07:30 EVERY DAY
                      {notification: 'CURRENT_PROFILE', schedule: '30 7 * * *', payload: 'day'},
                      // SWITCH TO THE NIGHT PROFILE AT 23:30 EVERY DAY
                      {notification: 'CURRENT_PROFILE', schedule: '30 18 * * *', payload: 'night'},
                  ]
              }
          },
          
              {
                  module: "MMM-Profilepicture",
                  position: "fullscreen_below",
                  classes: "day",
                  disabled: false,
                  config: {
                      url: "https://images.unsplash.com/photo-1623150502742-6a849aa94be4?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1980&q=80",
                      opacity: 1,
                      maxWidth: "120%",
                      maxHeight: "120%",
                  }
              },
          
              {
                  module: "MMM-Profilepicture",
                  position: "fullscreen_below",
                  classes: "night",
                  disabled: false,
                  config: {
                      url: "https://images.unsplash.com/photo-1620121692029-d088224ddc74?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1980&q=80",
                      opacity: 1,
                      maxWidth: "140%",
                      maxHeight: "140%",
                  }
              },
          ////////////////end profile //////////////////////////
      
      posted in Utilities
      3
      3squaremirror
    • RE: MMM-Touch

      @MMRIZE THANK YOU! much appreciated.

      posted in System
      3
      3squaremirror
    • RE: MMM-Touch

      @sdetweil I’m not clear on where to specify the module I want to hide/show. Can you help me understand? Thank you.

      posted in System
      3
      3squaremirror
    • RE: MMM-Touch

      @sdetweil to hide and show a specific module.

      posted in System
      3
      3squaremirror
    • 1
    • 2
    • 1 / 2