We all know the modern complaint: movie sound sucks now unless you have a high-end sound system. Frantically turning down the volume after turning it up to hear the dialogue only to need to turn it up again can be frustrating. Now, this doesn’t solve the underlying problem, but why not have a “Volume A” and “Volume B” you can easily set and toggle between with the simple press of a button?


I have this for Kodi as a shortcut for iOS. You can connect via ssh if you allow ssh in settings.
My command is:
curl -u login:password —header “Content-Type: application/json” —request POST —data ‘{“jsonrpc”: “2.0”, “method”: “Application.SetVolume”, “params”: {“volume”: Rounded Number}, “id”: 1}’ http://localhost:8080/jsonrpcMy exact command is a bit different, it takes the current volume of my iPhone / iPad multiplies that by 100 (as iOS volume is between 0 and 1, while Kodi’s from 0 to 100) and sends that volume to the HTPC. But it’s a nice idea, and there are various options to make it. I think I’d just do two buttons.
So you can take that code and change
Rounded Numberto actual volume you need.