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.

    Load based on classes

    Scheduled Pinned Locked Moved Entertainment
    3 Posts 2 Posters 431 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.
    • M Offline
      mm1964
      last edited by

      Re: MMM-MP3Player (remade asimhsidd's player)

      Hi
      I have added your module to my mirror, and it plays as noted. But I wanted to use it in conjunction with my facila recog module by creating 2 entries in my config file.

      Each entry would differ based on the classes label (2 different people), I hoped it would load the music stored in /home/pi/MagicMirror/modules/MMM-MP3Player/music/Name 1 or /home/pi/MagicMirror/modules/MMM-MP3Player/music/Name 2 dependant on which face it saw.

      It seems to play music randomly and does not seem to load correctly based on the classes assigned.

      Do I need to make any changes to the the actual module file.

      Have you heard of any similar issues when you try to load the module based on classes with face recog. All my other modules seem to work well based on classes, this leads me to beleive it is something to do with this particular.

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

        @mm1964 I do not think this module supports multiple instances in config.js

        mm can only show or hide modules. it does not load them on demand.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @sdetweil
          Thank you, I wanted to use the Face Recog function to play a message when it recognises a face.
          This would be a simlpe mp3 saying something like " Hello XXXXX" .

          I was hoping to do this using this module by using classes, but thnk you for pointing out this would not work.
          Do you know what I could use, before you starting talkimg real techy, I am a novice and no real coding experience.

          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