Comments (9)
will check the volume change and report here.
Checked. New command works well with RPi & Buster. Thanks. Will add pull request to add this config to readme.md
from mmm-volume.
Maybe your ALSA setup doesn't have PCM
.
Try this on your terminal shell.
amixer sset -M 'Master' 10%
If volume is changed, configure your config.js like this;
usePresetScript: null,
getVolumeScript: `amixer sget 'Master' | awk -F"[][]" '{print ""$2""}' | grep % | awk '{gsub ( /%/, "" ) ; print}'`,
setVolumeScript: `amixer sset -M 'Master' #VOLUME#%`,
Everybody might have a different environment, so if presetScript
doesn't work, find proper command for your environment and use it.
from mmm-volume.
Thank you for quick responses
Will check today
from mmm-volume.
amixer sset returns the following
pi@raspberrypi:~ $ amixer sset -M 'Master' 100%
amixer: Unable to find simple control 'Master',0
will look for other options
from mmm-volume.
Sorry. I don't know your environment. You need to find a proper command to control your RPI volume by yourself.
from mmm-volume.
I have found this one - this commands 10%+ increases and 10%- decreases by voulme by 10% (percentage could be any)
pi@raspberrypi:~ $ amixer set Speaker 10%+
Simple mixer control 'Speaker',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 151
Mono:
Front Left: Playback 68 [45%] [-15.63dB] [on]
Front Right: Playback 68 [45%] [-15.63dB] [on]
pi@raspberrypi:~ $ amixer set Speaker 30%+
Simple mixer control 'Speaker',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 151
Mono:
Front Left: Playback 114 [75%] [-7.00dB] [on]
Front Right: Playback 114 [75%] [-7.00dB] [on]
from mmm-volume.
your environment
i have clean Buster updated/upgraded. RPi 3 B+. usb sound card
from mmm-volume.
So, try this;
usePresetScript: null,
getVolumeScript: `amixer sget Speaker | awk -F"[][]" '{print ""$2""}' | grep % | awk '{gsub ( /%/, "" ) ; print}'`,
setVolumeScript: `amixer sset -M Speaker #VOLUME#%`,
from mmm-volume.
So, try this;
Thank you.
Can't check the volume change right now, only volume set at the start.
But during the start the module is set to the level specified in config.
Also, dark-blue rectangle disappear as needed (from #14 )
Will install telegram later and will check the volume change and report here.
from mmm-volume.
Related Issues (9)
- GroveGesture notificationExec VOLUME_UP/VOLUME_DOWN not working as expected HOT 3
- Visual appearance - static dark blue block at the main MagicMirror's screen HOT 1
- It makes sense to specify the output device in the get and set scripts.
- Always on HOT 1
- Nothing on screen
- GET_VOLUME Notification HOT 3
- Error following last commit Uncaught TypeError: Cannot read property 'faded' of null HOT 4
- Notification with MMM-AssistantMk2 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmm-volume.