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 41.4k 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
      mmourcia @pplotton
      last edited by

      @pplotton
      Bonjour,

      Ce que je fais au final est de déclencher un son lorsque quelqu’un sonne.
      Dans la conf d’admin du doorbird, dans “visite http(s)” je mets un truc du genre :

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

      Et coté miroir j’ai simplement activé le module remote.

      Au départ j’affichais aussi une frame avec la vidéo du portier mais ce n’était pas très au point donc j’ai arrêté.

      			config: {
      				// See 'Configuration options' for more information.
      				url: "http://ip_doorbird/bha-api/image.cgi?&http-user=mon_user&http-password=mon_pass",
      				height:"480px%", 
      				width:"35%",
      				autoRefresh: true, 
      				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
      				}
      

      J’espère que ca pourra t’aider

      P 1 Reply Last reply Reply Quote 0
      • P Offline
        pplotton @mmourcia
        last edited by

        @mmourcia ok je vais commencer par ça. Merci en tous cas pour ton aide. Bonne soirée

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