News:

HOT TIP! In the command editor, you can ctrl-click and drag an item to create a copy of it.

Main Menu

volume amplification shortcut

Started by PegLegTV, February 02, 2015, 06:09:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PegLegTV

This was Discussed on here over a year ago - shortcut for volume amplification

I came across another way of doing it with a direct command (no OSD Setting Window)

XBMC Volume Amplification
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.3.3-->
<commandGroup open="True" name="XBMC Volume Amplification" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="931" name="Amp volume {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Input.ExecuteAction</param>
        <param>"action":"volampup"</param>
      </params>
      <cmdRepeat>{1}</cmdRepeat>
    </action>
    <phrase>Increase, Amplifie, Raise</phrase>
    <phrase optional="true">the</phrase>
    <phrase>Volume</phrase>
    <phrase optional="true">by</phrase>
    <payloadRange>1,60</payloadRange>
  </command>
  <command id="560" name="decrease volume {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Input.ExecuteAction</param>
        <param>"action":"volampdown"</param>
      </params>
      <cmdRepeat>{1}</cmdRepeat>
    </action>
    <phrase>decrease, lower</phrase>
    <phrase optional="true">the</phrase>
    <phrase>Volume</phrase>
    <phrase optional="true">by</phrase>
    <payloadRange>1,60</payloadRange>
  </command>
  <command id="863" name="Default Volume" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Input.ExecuteAction</param>
        <param>"action":"volampdown"</param>
      </params>
      <cmdRepeat>60</cmdRepeat>
    </action>
    <phrase> Reset Default Volume</phrase>
  </command>
</commandGroup>


The "reset default volume" command sends the decrease volume command 60 times so even if you had your volume increased by 10 it would still send the decrease volume command 60 times

jitterjames

Nice one!  Looks like a "gem" to me. :D

I think there are probably all sorts of little things like this that were added since Eden, or even after Frodo that we can now do with the JSON api.

The hardest part (for me) is organizing them to see what is missing and what is worth adding to the default configs.

jitterjames

Quote from: PegLegTV on February 02, 2015, 06:09:51 PM
The "reset default volume" command sends the decrease volume command 60 times so even if you had your volume increased by 10 it would still send the decrease volume command 60 times

OOps.

There is also an error in your default volume command that you posted.  Somehow you got the wrong action in there. You are sending a page down keypress.

PegLegTV

Sorry about that,  for awhile I remapped "Page down" to "volampdown" before I updated the command

Updated the first post with the fixed command

Haddood

Quote from: jitterjames on February 02, 2015, 08:25:07 PM
Nice one!  Looks like a "gem" to me. :D

just to make sure it is not something that I index in the Gems forum, no? (as it will be part of XBMC commands)
When Voice command gets tough, use hand gestures

jitterjames

I will try to add it to the default config but I think it is OK to put it in "gems" too.

What I actually need is probably a special thread where we can keep track of missing "essential" Kodi commands can be posted so that I can consult it from time to time and update the standard configs accordingly.

MrWolf

Yep, this is awesome.  Thanks a million!

xxx
Home automation guides for idiots like me by an idiot (me)...
https://www.youtube.com/user/wolfsweb