MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED Connecting Modules to Each Other

    Troubleshooting
    3
    16
    418
    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
      tonkxy @sdetweil last edited by

      @sdetweil funny you say that. Ive been reading and you offered the solution on someone using compliments + weather. My issue is when i step through to set image, the type is back to undefined and not carried from the notification. Im wondering if its in my order as to why its going back to undefined

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

        @tonkxy I would put a stop everywhere u set it.

        make sure the this. pointer is pointing to the same place set vs use

        Sam

        Create a working config
        How to add modules

        T 1 Reply Last reply Reply Quote 0
        • T
          tonkxy @sdetweil last edited by

          @sdetweil when you say stop you mean in my debug to see where im losing the value?

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

            @tonkxy correct

            Sam

            Create a working config
            How to add modules

            T 1 Reply Last reply Reply Quote 1
            • T
              tonkxy @sdetweil last edited by

              @sdetweil Great advice.

              I stepped through and you were right on two things. When it starts, it defaults with the else case, because it hasn’t fetched the type yet. Once it does fetch the type I was resetting it in the myJob() function causing it to be undefined again.

              I appreciate the break down on this. JS is definitely giving me a run for my money on learning it.

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

                @tonkxy glad you are making progress.

                not a JS problem. any language would have the same problem…

                Sam

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • 1
                • 2
                • 2 / 2
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy