Combine Yatse custom commands
#1
Hi there

With json-rpc custom commands I can conveniently change the rpi2s audio settings in yatse.
E.g. I switch to hdmi by:

Method:
Settings.SetSettingValue
Params:
{"setting":"audiooutput.audiodevice", "value":"PI:HDMI"}, "id":1}

or to output through my hifiberry by (it took a while to figure that out...):

Method:
Settings.SetSettingValue
Params:
{"setting":"audiooutput.audiodevice", "value":"ALSA:@"}, "id":1}

Furthermore I can switch to 7.1 channel output by:
Params:
params:{"setting":"audiooutput.channels","value":10}, "id":1}
For 2.0 it is "value":1, etc., Method is the same as above.

Now what I would like to do is combine the settings, e.g. switch to hdmi and 7.1 channels with a single custom command. Is there a way?

cheers
Oliver
Reply
#2
(2017-02-25, 22:46)lich000king Wrote: Hi there

With json-rpc custom commands I can conveniently change the rpi2s audio settings in yatse.
E.g. I switch to hdmi by:

Method:
Settings.SetSettingValue
Params:
{"setting":"audiooutput.audiodevice", "value":"PI:HDMI"}, "id":1}

or to output through my hifiberry by (it took a while to figure that out...):

Method:
Settings.SetSettingValue
Params:
{"setting":"audiooutput.audiodevice", "value":"ALSA:@"}, "id":1}

Furthermore I can switch to 7.1 channel output by:
Params:
params:{"setting":"audiooutput.channels","value":10}, "id":1}
For 2.0 it is "value":1, etc., Method is the same as above.

Now what I would like to do is combine the settings, e.g. switch to hdmi and 7.1 channels with a single custom command. Is there a way?

cheers
Oliver
Any idea why this would not work

Method Input.ExecuteAction

{{ "action": "pagedown" }, "id": 1}}

mod edit to reduce font size to normal
Reply
#3
Let's not have text posted in stupidly large font size please...
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#4
(2020-11-02, 19:41)DarrenHill Wrote: Let's not have text posted in stupidly large font size please...
Not sure what happened but had no intention of stupidly large font.
Reply
#5
(2020-11-02, 19:43)[email protected] Wrote: Not sure what happened but had no intention of stupidly large font.

Sometimes, our forum editor gets a bit allergic whenever text is directly copy/pasted from a different word processor, especially from Windows editors.
Try to us plain ASCII text if possible. Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Combine Yatse custom commands0