mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-05 15:17:49 +00:00
Updated Module System Proposal (asciidoc)
parent
b6e7da0841
commit
d5afbda6ee
@ -38,8 +38,15 @@ Every module in the module folder should contain the module.js file defining a c
|
||||
|
||||
Any helper scrips (php) should be in the module folder, and should not affect any other module or the main system. There should be a way to start scripts (python, node etc.) as daemons. Maybe some kind of API to send data back to the modules should be implemented (socket.io & UNIX sockets).
|
||||
|
||||
## API functionality
|
||||
### Multiuser
|
||||
|
||||
`function overwriteRegion(region, content) { ... }` - Function to temporarily overwrite regions used by other modules and replace their content (for multiuser applications or showing information after login)
|
||||
|
||||
`function restoreRegion(region) { ... }` - Function to restore regions to their original state. Also add an `all` input to restore all regions changed by the plugin.
|
||||
|
||||
Maybe it would be better to implement some kind of general multiuser system, so that in config.js you can specify different module sets for different users. Modules could than be used to switch them by providing face, speech or whatever recognition .
|
||||
|
||||
***
|
||||
|
||||
_... please edit with your suggestions ...._
|
||||
_... please edit with your suggestions ...._
|
Loading…
x
Reference in New Issue
Block a user