MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    After adding MMM-GPIO-Notifications, config.js doesn't work...

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    13 Posts 3 Posters 4.7k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      tomXGames
      last edited by

      @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…

      S 2 Replies Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @tomXGames
        last edited by

        @tomXGames sorry,

        npm config:check

        See list of npm enabled commands in package.json

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          tomXGames @sdetweil
          last edited by

          @sdetweil The command still doesn’t work and after adding a comma, nothing is even shown. What am i doing wrong?

          S 2 Replies Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @tomXGames
            last edited by

            @tomXGames you do this command in the MagicMirror folder

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            T 1 Reply Last reply Reply Quote 0
            • T Offline
              tomXGames @sdetweil
              last edited by

              @sdetweil Yeah that’s what I did

              1 Reply Last reply Reply Quote 0
              • mumblebajM Offline
                mumblebaj Module Developer @tomXGames
                last edited by

                @tomXGames THis certainly doesn’t look right:
                notification: "'CURRENT_PROFILE', 'Tom'",

                Check out my modules at: https://github.com/mumblebaj?tab=repositories
                Check my blog-post: https://mumblebaj.xyz/
                Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                1 Reply Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @tomXGames
                  last edited by

                  @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
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • mumblebajM Offline
                    mumblebaj Module Developer @tomXGames
                    last edited by

                    @tomXGames IF not mistaken, the “,” after the last module should not be there either.

                    Check out my modules at: https://github.com/mumblebaj?tab=repositories
                    Check my blog-post: https://mumblebaj.xyz/
                    Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                    1 Reply Last reply Reply Quote 0
                    • S Do not disturb
                      sdetweil @tomXGames
                      last edited by

                      @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 clone

                      cd MMM-GPIO-Notifications
                      npm install 
                      

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      T 1 Reply Last reply Reply Quote 0
                      • T Offline
                        tomXGames @sdetweil
                        last edited by tomXGames

                        @sdetweil
                        Thanks for your help… I implemented your change and there’s no error anymore. But MMM-CalendarExt is not being shown, even though I put the class to “default everyone”. Do you have an idea, what I’m doing wrong here?

                        S 1 Reply Last reply Reply Quote 0
                        • S Do not disturb
                          sdetweil @tomXGames
                          last edited by sdetweil

                          @tomXGames sorry, don’t know the module at all… just debugged why it didn’t load.

                          you could open the developers console and see if the notification is sent from the module as u expected

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • 1 / 1
                          • First post
                            Last post
                          Enjoying MagicMirror? Please consider a donation!
                          MagicMirror created by Michael Teeuw.
                          Forum managed by Sam, technical setup by Karsten.
                          This forum is using NodeBB as its core | Contributors
                          Contact | Privacy Policy