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-Chores - Manage and keep track of your household Chores

    Scheduled Pinned Locked Moved Utilities
    100 Posts 17 Posters 25.0k Views 18 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.
    • PierreGodeP Offline
      PierreGode Module Developer @jtillinghast
      last edited by

      @jtillinghast
      What does the command pm2 logs give you?

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jtillinghast @PierreGode
        last edited by

        @PierreGode And of course, today it works for seemingly no other reason. I don’t believe I have touched anything in the module or the config since it wasn’t working, but now it looks good! I will continue to monitor. Thanks.

        1 Reply Last reply Reply Quote 0
        • J Offline
          jtillinghast
          last edited by

          Question: Is it possible to set the config in some way to only show chores for one person? I’m using MMM-Pages to give each kid their own dashboard, for example, and I’m wondering if the page could just show the chores for that one person.

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

            @jtillinghast and then you need multiple instances in config.js

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              jtillinghast @sdetweil
              last edited by

              @sdetweil Sure-- I have the multiple instances, but I’m just not sure what to put into the config to filter each instance down.

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

                @jtillinghast ok, takes a little extra coding for multiple instances. Just making sure that is handled too

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  jtillinghast @sdetweil
                  last edited by

                  @sdetweil Can you say more about the extra coding? I created multiple instances, and assigned them to the unique pages via the class. Is there more unique configuration that needs to get handled?

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

                    @jtillinghast it’s inside the module, nothing you can do.
                    Currently the module does not do this extra

                    The module with a node helper sends a request to the helper
                    The helper gets done and sends the response back

                    But, the method we use which is fast and flexible,
                    goes to ALL the same modules at once
                    So read chore list, send back, all instances get the One list

                    MagicMirror provides a unique identifier for each module entry in config.js . The trick is to send that identifier with the request
                    And the helper sends it back with the data AND The modules checks to see if the identifier in the response matches its identifier.
                    If not just ignore it.

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    J 1 Reply Last reply Reply Quote 0
                    • J Offline
                      jtillinghast @sdetweil
                      last edited by

                      @sdetweil Thanks-- I just want to be sure I’m understanding you correctly. You’re saying that it is not possible to filter the to-do list by individual person as the module is currently constructed. To do so, we would have to add a function which would be able to take in the person parameter from config and filter the data accordingly. If I’m following, that could be done in the module since it’s already performing a check to see if the information matches, but that would require further development.

                      Am I on track?

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

                        @jtillinghast yes, AND it needs to add the this.identifier to the data it sends to the node_helper,
                        and the node helper has to send that identifier back as part of the returned data, AND the module needs to check the identifier to make sure it matches

                        else, filter for tasks Sue, send it back and ALL instance will get the tasks for Sue, even tho they asked for Bob or Bill.

                        so the module needs to be enhanced for 2 different things…

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 5
                        • 6
                        • 7
                        • 8
                        • 9
                        • 10
                        • 7 / 10
                        • 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