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 4.8k 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
                        • A Offline
                          Alyx
                          last edited by

                          @sdetweil Ah damn, what would you recommend then? I need the interface to be voice driven

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

                            @alyx as I said before, then only one I KNOW works is GoogleAssistant, BUT you ALSO have to do extra work to make YOUR command choice work. but there is little documentation on that, you have to discover it…

                            so its a lot MORE difficult than what u are already working on.

                            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 Right so i’m not left with much choice then, is magic mirror left in the past then with the lack of support/ documentation?

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

                                @alyx no… magic mirror is the runtime the modules plug into …

                                I am here providing support, voluntary… but module support is up to the author.
                                the voice_command thing is 3 years old.

                                there are 100’s of modules… i don’t even TRY to learn them… but I look for install and config problems, and new users.

                                but in many cases you the user, have to do extraordinary things to make some of these older modules work. BUT u need skills to do it

                                we are a shared community… some users jump in to help on specific modules, or types of modules. .
                                but still voluntary… some authors take the summer off, and work on modules in the winter…

                                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 Understandable Sam, the support is of course appreciated as I mentioned before. My self studies can only take me so far in a certain amount of time is all.

                                  I’ll take your advise with google assistant for now and se if I can find some documentation regarding implementing other modules. I saw some PM2 ones working with Alexa in videos so that my plan after.

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

                                    @alyx ok, alexa here is a pain in the rear…

                                    for GA, look at the recipes folder

                                    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 ah ok will do then haha cheers

                                      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