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.

    Voice command to open videos

    Scheduled Pinned Locked Moved Development
    6 Posts 4 Posters 1.0k Views 4 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.
    • B Offline
      bigjojo
      last edited by

      Hello,
      I use GA assistant from bugsounet who no longer posts on this forum because he made his own forum, see on his github.
      I made a recipe which allows me to run the raspbian vlc in full screen. which allows me to either launch a video (christmas tree or halloween) but especially watch the streaming stream from my dreambox directly on the mirror. when i stop looking i just say jarvis stop vlc and he comes back to the mirror.
      I put an example of my recipe so you can have fun.
      I speak French so see to change the sentences in your language.
      bye.
      var recipe = {
      transcriptionHooks: {
      “miroir vidéo”: {
      pattern: “regarder miroir vidéo”,
      command: “miroir_vidéo”
      },
      “rtsun”: {
      pattern: “regarder rts1”,
      command: “rtsun”
      },“stop_vlc”: {
      pattern: “stopper vlc”,
      command: “stop_vlc”
      },
      },

      commands: {
      “miroir_vidéo”: {
      soundExec: {
      chime: “close”,
      },
      shellExec: {
      exec: “vlc -f file:///home/pi/MagicMirror/video/02.mp4”
      }
      },
      “rtsun”: {
      soundExec: {
      chime: “close”,
      },
      shellExec: {
      exec: “vlc -f http://...:****/1:0:19:4333:300C:13E:820000:0:0:0:”
      }
      },
      “stop_vlc”: {
      soundExec: {
      chime: “close”,
      },
      shellExec: {
      exec: “killall vlc”
      },
      },
      }

      }

      exports.recipe = recipe // Don’t remove this line.

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

        the path to local videos for url loading is

        http://localhost:port/modules/???/videofile.name

        note they have to be in the mm modules folder tree to be able to use the mm server to load them

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • P Offline
          pbetre
          last edited by

          @bigjojo

          Bonsoir,

          Bon travail, pourriez-vous me donner des explications sur la ligne suivante :
          exec: “vlc -f http://…:****/1:0:19:4333:300C:13E:820000:0:0:0:”

          merci d’avance,
          Cordialement,
          Paul

          B 1 Reply Last reply Reply Quote 0
          • B Offline
            bigjojo @pbetre
            last edited by bigjojo

            @pbetre
            c’est la ligne qui correspond a une chaine télé de ma dreambox.
            a vous de changer, je pense que sa doit être possible de mettre une ligne pour de l’iptv ou autres.

            sur le 1er exemple
            quand je dis regarder miroir vidéo, il m’ouvre un fichier vidéo stocké dans le chemin plus bas.
            c’est simplement un vidéo pour un effet a halloween ou encore a noël, il me mets un sapin.
            sur le 2 eme exemple
            je lui demande de regarder une chaine télé ici rts1 et il va chercher le lien de ma démodulateur satellite pour l’afficher.
            cordialement

            P 1 Reply Last reply Reply Quote 0
            • P Offline
              pbetre @bigjojo
              last edited by

              @bigjojo

              Merci, j’ai essayé, ça marche.

              cordialement,
              Paul

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