MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-AssistantMk2

    Scheduled Pinned Locked Moved System
    421 Posts 61 Posters 565.5k Views 57 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      tanvir586
      last edited by

      hi everyone,
      how to get my YOUR_MODEL_ID. couldn’t find it any ware.

      ? 1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User @Keith
        last edited by

        @Keith

        I can hide and show single modules or all modules but I can’t figure out hide one and show another

        Almost same. :D

        command: {
          "HIDE_A_REVEAL_B": {
            moduleExec: {
              module: [], // For all modules,
              exec: (module, params, key) => {
                if (module.name == "MODULE_A") { // if module name is...
                  module.hide()
                }
                if (module.name == "MODULE_B") {
                  module.show()
                }
              }
            }
          },
        }
        

        Not tested code, but I believe you can catch the idea.

        K 2 Replies Last reply Reply Quote 0
        • ? Offline
          A Former User @tanvir586
          last edited by

          @tanvir586

          Read this doc.
          https://developers.google.com/assistant/sdk/guides/service/python/embed/register-device

          1 Reply Last reply Reply Quote 0
          • T Offline
            tanvir586
            last edited by

            Ive already registered. But now i can’t find the model id.

            ? 1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User @tanvir586
              last edited by

              @tanvir586
              0_1575297171747_ef28bbf2-1619-4e91-9491-e5a4aa58b08a-image.png

              T J 2 Replies Last reply Reply Quote 0
              • T Offline
                tanvir586 @Guest
                last edited by

                @Sean thanks for reply.
                My screen is like this.!0_1575303692872_Screenshot_20191202-162015_Samsung Internet.jpg
                I don’t have registration section.

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @tanvir586
                  last edited by

                  @tanvir586 back a couple pages, you created an application, right?

                  at https://console.actions.google.com/u/0/?pli=1

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    tanvir586
                    last edited by

                    Sorry guys i think i didn’t register it.
                    I followed this video https://youtu.be/UBgH5hejYtM.

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      Keith @Guest
                      last edited by

                      @Sean I’ll give that a try and let you know. Thanks

                      1 Reply Last reply Reply Quote 0
                      • K Offline
                        Keith @Guest
                        last edited by

                        @Sean I got it working, thanks for your help. The code that worked for me is below

                        command: {
                              "HIDECALENDAR": {
                                  moduleExec: {
                                       module:()=>{
                              return []
                            }, // For all modules,
                                      exec: (module, params, key) => {
                                          if (module.name == "MMM-GooglePhotos") { // if module name is...
                                              module.show()
                                          }
                                          if (module.name == "MMM-CalendarExt2") {
                                              module.hide()
                                          }
                                      }
                                  }
                              },
                              "SHOWCALENDAR": {
                                  moduleExec: {
                                       module:()=>{
                              return []
                            }, // For all modules,
                                      exec: (module, params, key) => {
                                          if (module.name == "MMM-GooglePhotos") { // if module name is...
                                              module.hide()
                                          }
                                          if (module.name == "MMM-CalendarExt2") {
                                              module.show()
                                          }
                                      }
                                  }
                        
                              }
                          }
                        
                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 42
                        • 43
                        • 1 / 43
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy