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.

    Magic mirror first try (France, ~Lille)

    Scheduled Pinned Locked Moved Show your Mirror
    50 Posts 16 Posters 45.7k Views 14 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.
    • M Offline
      MilkShake
      last edited by MilkShake

      Hi mmourcia!
      Do you mind sharing how you integrated into the doorbird API in english?

      I have an automated gate with a Doorbird D101S and it would be awesome if the picture came up on the Mirror when someone pressed the button. Also playing the wav file as a notification. My mirror also uses the Goolgle Assistant MK2 and Addons by Bugsounet which are awesome! It would be possible to “Google, Open Gate”!

      Best
      MilkShake

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        mmourcia @MilkShake
        last edited by mmourcia

        Hello @MilkShake ,

        The only thing I kept as interaction is playing a sound file when someone knock at the door.

        Conf on doorbird in http visit

        http://IP_MM:8080/remote?action=NOTIFICATION&notification=PLAY_SOUND&payload=%7B%22sound%22%3A%22carillon.wav%22%2C%22delay%22%3A100%7D
        

        Conf of MM

        Remote module

        		{
        			module: 'MMM-Remote-Control',
        			config: {
        					customCommand: {
        						monitorOnCommand: '/usr/bin/vcgencmd display_power 1',
        						monitorOffCommand: '/usr/bin/vcgencmd display_power 0',
        						monitorStatusCommand: '[ $(vcgencmd display_power) = "display_power=0" ] && echo "false" || echo "true"'
        					}
        		        }
        		},
        

        Sound module

        		{
        			module: 'MMM-Sounds',
        			config: {
        				startupSound:   'wobble.wav',
        				quietTimeStart: '23:00',      // 11pm
        				quietTimeEnd:   '07:00',       // 7am
        				debug: true
        			}
        		},
        

        I’ve plugged an external usb speaker and when someone press the doorbird button, it plays sound.

        I did some test before to show the face of the person ringing.
        You could try to enable Frame module and ask doorbird to visit this address

        http://IP_MM:8080/remote?action=SHOW&module=module_XX_MMM-iFrame-Ping
        
        		{
        			module: 'MMM-iFrame-Ping',
        			disabled: true,
        			position: 'middle_center',	// This can be any of the regions.
        			config: {
        				// See 'Configuration options' for more information.
        				url: "http://IP_DOORBIRD/bha-api/image.cgi?&http-user=user&http-password=password",
        				height:"480px%", 
        				width:"35%",
        				autoRefresh: true, //set to false for video
        				updateInterval: 0.5, //in min. Only if autoRefresh: true
        				displayLastUpdate: true,
        				//width: "100%", // Optional. Default: 100%
        				//height: "800px", //Optional. Default: 100px
        				scrolling: "no",
        				logDebug: true
        				}
        		},
        

        Finaly, to open the door, i’m using a wonderful french project, Jeedom (https://jeedom.com). It handles all my home domotics.

        Let me know if you need some other informations
        Regards

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          MilkShake
          last edited by

          Hi and thanks for the explanation, however I have a few questions.

          Why is the display_power involved in this?

          When you write “Conf on doorbird in http visit”, is that the HTPPS(S) calls part of the Doorbird config?

          I take it that I need a carillon.wav file in the MMM-Sounds/sounds directory or change the wav part to one of the default wav files like buzz.wav?

          The call “http://IP_MM:8080/remote?action=SHOW&module=module_XX_MMM-iFrame-Ping” is that correct? Does it need the XX part?

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            mmourcia @MilkShake
            last edited by

            @MilkShake

            Why is the display_power involved in this?

            It’s not. This is just my conf and i did not sanitize it

            When you write “Conf on doorbird in http visit”, is that the HTPPS(S) calls part of the Doorbird config?

            Yes it is

            I take it that I need a carillon.wav file in the MMM-Sounds/sounds directory or change the wav part to one of the default wav files like buzz.wav?

            Yes you’re right

            The call “http://IP_MM:8080/remote?action=SHOW&module=module_XX_MMM-iFrame-Ping” is that correct? Does it need the XX part?

            It is in fact the index of the module in your conf. You must guess it

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              MilkShake
              last edited by MilkShake

              @mmourcia said in Magic mirror first try (France, ~Lille):

              @MilkShake

              Why is the display_power involved in this?

              It’s not. This is just my conf and i did not sanitize it

              Ok :)

              When you write “Conf on doorbird in http visit”, is that the HTPPS(S) calls part of the Doorbird config?

              Yes it is

              Perfect. Where did you find the documentation for the URLs?

              I take it that I need a carillon.wav file in the MMM-Sounds/sounds directory or change the wav part to one of the default wav files like buzz.wav?

              Yes you’re right

              ok, so I can use the buzz.wav until it works.

              The call “http://IP_MM:8080/remote?action=SHOW&module=module_XX_MMM-iFrame-Ping” is that correct? Does it need the XX part?

              It is in fact the index of the module in your conf. You must guess it

              Guess it? Index of the module, is that the modules position within config.js?

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                MilkShake @mmourcia
                last edited by

                @mmourcia said in Magic mirror first try (France, ~Lille):

                @MilkShake

                Why is the display_power involved in this?

                It’s not. This is just my conf and i did not sanitize it

                I think it is me missing some information? Is the MMM-Remote-Control involved in any way API wise?

                Does it function the way, that when someone pushes the button on the doorbird, the doorbird makes a http call to the Mirror for the notification, and to enable the MMM-iFrame-Ping module? For how long is the iFrame module visible after someone pushes the button?

                Thanks dude!

                1 Reply Last reply Reply Quote 0
                • M Offline
                  MilkShake @mmourcia
                  last edited by MilkShake

                  @mmourcia said in Magic mirror first try (France, ~Lille):

                  http://IP_MM:8080/remote?action=NOTIFICATION&notification=PLAY_SOUND&payload=%7B%22sound%22%3A%22carillon.wav%22%2C%22delay%22%3A100%7D

                  I think there is an error in the URL. Funny thing is, when I look at your URL is states:

                  http://IP_MM:8080/remote?action=NOTIFICATION¬ification=PLAY_SOUND&payload=%7B%22sound%22%3A%22carillon.wav%22%2C%22delay%22%3A100%7D

                  When i quote you it states the correct thing:

                  NOTIFICATION & notification (without the spaces)

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    mmourcia @MilkShake
                    last edited by

                    @MilkShake
                    Yes, I lt you find answers by yourself ;)

                    Try some different conf and i’m sure you’ll find the one that you need !
                    Regards

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      MilkShake
                      last edited by

                      Yeah, I’m not so sure. I can’t get it to work :)

                      1 Reply Last reply Reply Quote 0
                      • L Offline
                        lodam
                        last edited by

                        @mmourcia , bravo pour votre installation !
                        J’ai débuté hier et ai bcp encore à découvrir mais votre exemple m’encourage
                        J’ai enfin pu connecter mon agenda apple et ça m’a pris qq heures… :)
                        bonne journée
                        damien

                        M 1 Reply Last reply Reply Quote 0
                        • M Offline
                          mmourcia @lodam
                          last edited by

                          @lodam
                          Tant mieux si cela vous aide !

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            MilkShake @MilkShake
                            last edited by

                            It is in fact the index of the module in your conf. You must guess it

                            Guess it? Index of the module, is that the modules position within config.js?

                            Could you give me a hint to find that number?

                            M 1 Reply Last reply Reply Quote 0
                            • M Offline
                              mmourcia @MilkShake
                              last edited by

                              @MilkShake
                              Maybe you could use MODULE_ACTION of remote module.

                              => http(s)://ip:8080/remote?action=MODULE_DATA

                              That will return all informations about your modules including their names.

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                MilkShake
                                last edited by

                                Thanks man. I think I’ll keep the feed open for the camera and use the MMM-Sounds for notification when someone pushes the button. That is, if I can get it to work :)

                                But a nice way to get the module data, thanks!

                                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
                                • 2
                                • 3
                                • 2 / 3
                                • 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