MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    Volume Control

    General Discussion
    2
    3
    1488
    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
      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
        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
          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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy