Read the statement by Michael Teeuw here.
After adding MMM-GPIO-Notifications, config.js doesn't work...
-
-
@sdetweil said in After adding MMM-GPIO-Notifications, config.js doesn't work...:
npm check:config
It says, that there is no such command… I’m running it in the MagicMirror directory…
-
-
@sdetweil The command still doesn’t work and after adding a comma, nothing is even shown. What am i doing wrong?
-
@tomXGames you do this command in the MagicMirror folder
-
@sdetweil Yeah that’s what I did
-
@tomXGames THis certainly doesn’t look right:
notification: "'CURRENT_PROFILE', 'Tom'",
-
@tomXGames what do u mean by doesn’t work?
Black screen could indicate another problem
Are u using pm2?
If so, pm2 logs to see what the output is.Also, dev mode
pm2 stop 0 cd ~/MagicMirror npm start dev
-
@tomXGames IF not mistaken, the “,” after the last module should not be there either.
-
@tomXGames so much fun…
so, looking thru the config…
I think u just have a syntax error
module: 'MMM-GPIO-Notifications', config: { '17': { gpio_state: 1, gpio_debounce: 10, notifications: [ { // see https://github.com/tosti007/MMM-ProfileSwitcher // Switching Profiles // this.sendNotification('CURRENT_PROFILE', 'DESIRED_PROFILE_NAME_HERE'); notification: 'CURRENT_PROFILE', payload: 'Tom' }, { notification: 'SCREEN_ON', payload: { 'forced': false } } ] }, '4': { gpio_state: 1, gpio_debounce: 20, notifications: [ { 'notification': 'SCREEN_TOGGLE', 'payload': { 'forced': true } } ] } } },
at least this works for me
altho he left out an install step…
after git clonecd MMM-GPIO-Notifications npm install