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.

    How do I use notfications

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    tutorialhelpnotifications
    18 Posts 2 Posters 3.6k Views 2 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.
    • S Offline
      sdetweil @Alyx
      last edited by

      @alyx said in How do I use notfications:

      self.sendNotification(“SHOW_ALERT”, {type: “notification”, title: “Voice Commands”, message: “Deactivated”})

      thats all u have to do

      sendNotification(“string”, optional_parameters needed by receiver of message

      this is a broadcast… all modules get it…

      so when u figure out what the command is then do that

      self.sendNotification(“SELFIE_SHOOT”, ???)
      make sure ‘self’ is set when u make the call

      where ??? is optional parms, (don’t supply it if not used)

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      A 1 Reply Last reply Reply Quote 0
      • A Offline
        Alyx @sdetweil
        last edited by

        @sdetweil

        Ok so for selfie shoot all I need to do is to input in my MM conf, self.sendNotification(“SELFIE_SHOOT”, “selfie”) ‘selfie’ is the voice command i wish to call. And I put this where i call the selfie_shoot module or the voice commands module?

        Sorry I’ll need some hand holding with the request haha

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @Alyx
          last edited by

          @alyx said in How do I use notfications:

          self.sendNotification(“SELFIE_SHOOT”,

          sorry, after looking at the module, i don’t understand what its looking for in its config…

          supposedly you would have to write no code.

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            Alyx @sdetweil
            last edited by

            @sdetweil so then should I remove my notification code and any reference I’ve made?

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @Alyx
              last edited by

              @alyx i don’t know.

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                Alyx @sdetweil
                last edited by

                @sdetweil I did there with no results, how would you usually set this up? I’ve tried following the documentation but its hard for myself to understand.

                https://github.com/mykle1/Hello-Lucy/blob/master/How to add modules to Hello-Lucy

                The dev of the custom config I use said to follow this but it doesnt make sense to me

                S 1 Reply Last reply Reply Quote 0
                • A Offline
                  Alyx
                  last edited by

                  I was playing around with the default compliments module and apparently it is supposed to work out of the box with the voice_commands config I have although that doesnt seem to be the case… Am I doing something wrong form the start?

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @Alyx
                    last edited by

                    @alyx are u an english speaker? if not translate the file to your language

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    A 1 Reply Last reply Reply Quote 0
                    • A Offline
                      Alyx @sdetweil
                      last edited by

                      @sdetweil yep I am, I’m thinking of moving to another module. I’m thinking Hello Lucy, do you have any recommendations? As long as I can make it communicate with a module I dont care haha

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @Alyx
                        last edited by

                        @alyx hello-lucy never worked for me… poor voice recognition, have to repeat myself 4 or 5 times…

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • 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