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.

    Volume Control

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 1.9k 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.
    • P Offline
      paul.calladine
      last edited by

      I’ve added a rotary encoder to the mirror frame to be able to control the system volume on my pi. This is working well based upon the instructions found here: https://gist.github.com/savetheclocktower/9b5f67c20f6c04e65ed88f2e594d43c1

      What i’d ideally like to do is to create a volume level module that will show a graphic on screen showing if the volume is muted, louder or quieter when the encoder is turned or clicked for a few seconds then fade and disappear until it is changed again.

      I’ve dabbled with coding in the past and im not afraid of giving it a go (i’ve created a very basic savings module for myself) but is someone able to tell me if this is possible and the best way to go about starting this?

      I feel i’d be fine creating a module that would show when the encoder is turned and hide after a timeout period but i’m unsure how to get the change registered at system level for the change in volume the way the daemon does it above.

      Any pointers would be great!

      1 Reply Last reply Reply Quote 0
      • P Offline
        paul.calladine
        last edited by

        For anyone searching for this at a later date I managed to get it working using a sysvol npm. At the moment the module hides and shows based upon if the volume level has changed but I may trigger this through input from the rotary encoder itself.

        1 Reply Last reply Reply Quote 2
        • T Offline
          timur87
          last edited by

          hello paul.calladine

          I would be interested in this module could you make it available to me and also show a picture of how you have connected?

          Many Thanks

          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