Read the statement by Michael Teeuw here.
MMM-Chores - Manage and keep track of your household Chores
-
@jtillinghast
What does the command pm2 logs give you? -
@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.
-
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.
-
@jtillinghast and then you need multiple instances in config.js
-
@sdetweil Sure-- I have the multiple instances, but I’m just not sure what to put into the config to filter each instance down.
-
@jtillinghast ok, takes a little extra coding for multiple instances. Just making sure that is handled too
-
@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?
-
@jtillinghast it’s inside the module, nothing you can do.
Currently the module does not do this extraThe module with a node helper sends a request to the helper
The helper gets done and sends the response backBut, 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 listMagicMirror 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. -
@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?
-
@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 matcheselse, 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…
