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.

    Connecting Modules to Each Other

    Scheduled Pinned Locked Moved Solved Troubleshooting
    16 Posts 3 Posters 3.6k Views 3 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
      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 Offline
        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

        How to add modules

        learning how to use browser developers window for css changes

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          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 Offline
            sdetweil @tonkxy
            last edited by

            @tonkxy correct

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            T 1 Reply Last reply Reply Quote 1
            • T Offline
              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 Offline
                sdetweil @tonkxy
                last edited by

                @tonkxy glad you are making progress.

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

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                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 Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy