Add info about config in node helper.

This commit is contained in:
Michael Teeuw 2016-04-09 20:59:55 +02:00
parent bee04bec44
commit 58adf75c18

View File

@ -266,6 +266,8 @@ To show a module, you can call the `show(speed, callback)` method. You can call
The node helper is a Node.js script that is able to do some backend task to support your module. For every module type, only one node helper instance will be created. For example: if your MagicMirror uses two calendar modules, there will be only one calendar node helper instantiated. The node helper is a Node.js script that is able to do some backend task to support your module. For every module type, only one node helper instance will be created. For example: if your MagicMirror uses two calendar modules, there will be only one calendar node helper instantiated.
**Note:** Because there is only one node helper per module type, there is no default config available within your module. It's your task to send the desired config from your module to your node helper.
In it's most simple form, the node_helper.js file must contain: In it's most simple form, the node_helper.js file must contain:
````javascript ````javascript