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.

    A little help with my own module

    Scheduled Pinned Locked Moved Development
    7 Posts 3 Posters 3.4k 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.
    • K Offline
      kichilron
      last edited by

      Hey, thanks for your reply.

      I have already figured out that the entire request-block is the problem and was hoping for someone to look over it and maybe find what my problem with it is. There must be some logical error hidden inside there somewhere - which I don’t know of, as I only just started working with JS.

      Which means I am as far as knowing that entire request-block isn’t executed at all, which I know because not even if I add log-commands directly after the request-statement, will they be executed.

      1 Reply Last reply Reply Quote 0
      • tosti007T Offline
        tosti007 Module Developer
        last edited by

        I am really not familiair with requests and such, but I did notice this line:

        var a = $(this).next();
        

        Are you sure you want to use this here and not self?

        If there is anything don't hesitate to contact me!
        ProfileSwitcher, TouchNotifications

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          kichilron @tosti007
          last edited by

          @tosti007 Hi, yeah - what I’m trying to achieve with that line is to work with the each statement. I’m working within the scope of the each loop and try to find the next object after the one that was found there in the document.

          tosti007T 1 Reply Last reply Reply Quote 0
          • tosti007T Offline
            tosti007 Module Developer @kichilron
            last edited by

            @kichilron alright :)

            Does your console show any errors when you run your code?

            Since the callback isn’t called at all it might also be a problem with the request("omitted" part. Try doing something simple (only log something) inside the callback. If it doesn’t show up then I think the problem lays in the request function that might be called wrong.

            If there is anything don't hesitate to contact me!
            ProfileSwitcher, TouchNotifications

            K 1 Reply Last reply Reply Quote 0
            • K Offline
              kichilron @tosti007
              last edited by

              @tosti007 I will have to try again, but what I did was similar to what you suggested.Atleast I believe it was.

              The thing that’s mainly bothering me is the fact, that the same code executed on its own and not automated within the node_helper is working fine.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • 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