ok, starting to migrate…
questions:
is there a way to communicate across modules? I don’t see a way to have module A request info from module B, and have B’s response only come back to module A.
in my design, only the scheduler knows about the config DB, and HOW to decide if a viewer is needed, or not.
it then tells the viewer manager to start/stop a viewer… the schedulers also is the only one that knows HOW to get the list of images (using the appropriate api of the source location, file, dropbox, etc)
the viewer makes a call to the scheduler to get the next image, and if at the end of the list, it causes another list reload. the viewer doesn’t know where the list came from. the list is just to images.
now, if someone uses the mobile app and changes the data, it MAY be cause to terminate a running viewer, as the filter would no longer cause that particular viewer to be selected…
but… the db change handler is in the viewer scheduler node_helper, and the running viewer list is in the viewer handler node_helper…
looks like I can only do sendnotification, and broadcast to all modules (ugh)