File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ Add the following code to your ~/MagicMirror/config/config.js:
1818 module: "MMM-CommandToNotification",
1919 disabled: false,
2020 config: {
21- commands: [
22- ]
21+ commands: [
22+ ]
2323 },
2424 },
2525```
@@ -52,31 +52,31 @@ Add the following example to produce the following result:
5252 * the result of the script (JSON object as string) will be send as payload of notification TEST3
5353
5454```
55- {
55+ {
5656 module: "MMM-CommandToNotification",
5757 disabled: false,
5858 config: {
5959 updateInterval: 10,
60- commands: [
61- {
62- script: "randomInteger.js",
63- args: "-10 10",
64- timeout: 5,
65- notifications: [
66- "TEST1",
67- "TEST2",
68- ],
69- },
70- {
71- script: "randomNumberJson.js",
72- args: "-50 20",
73- skips: 3,
74- timeout: 10,
75- notifications: [
76- "TEST3",
77- ],
78- }
79- ]
60+ commands: [
61+ {
62+ script: "randomInteger.js",
63+ args: "-10 10",
64+ timeout: 5,
65+ notifications: [
66+ "TEST1",
67+ "TEST2",
68+ ],
69+ },
70+ {
71+ script: "randomNumberJson.js",
72+ args: "-50 20",
73+ skips: 3,
74+ timeout: 10,
75+ notifications: [
76+ "TEST3",
77+ ],
78+ }
79+ ]
8080 },
8181 },
8282```
You can’t perform that action at this time.
0 commit comments