Posts: 19,982
Joined: May 2009
Reputation:
452
nickr
Retired Team-Kodi Member
Posts: 19,982
You have done well. Good job.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 3,545
Joined: Mar 2010
Reputation:
120
2014-12-29, 01:24
(This post was last modified: 2014-12-29, 01:25 by teeedubb.)
Its not necessary to change xbmc to kodi as nothing has changed in this regard with Helix, the same script works with both versions. Did the log file show any clues?
Posts: 3,545
Joined: Mar 2010
Reputation:
120
'{"jsonrpc": "2.0", "method": "Application.SetVolume", "params": { "volume":10}, "id": 1}'
Change the value after "volume": to suit
Posts: 123
Joined: Sep 2014
Reputation:
1
TimoJ
Senior Member
Posts: 123
Restart is not very usable in this case. I usually start to watch something late at night and want to reduce dynamic range with quick toggle. I'll check if this is possible to do with other scripts or as a last resort with remote control macro.
Posts: 160
Joined: May 2013
Reputation:
2
So this works for me, however I'm getting the following error:
13:46:20 T:5512 NOTICE: CURRENT AUDIO DEVICE:
13:46:20 T:5512 NOTICE: {"id":1,"jsonrpc":"2.0","result":{"value":"DIRECTSOUND:{22CF9947-3D93-41FC-8505-26F800E3AD96}"}}
13:46:20 T:5512 ERROR: JSONRPC: Failed to parse '{"jsonrpc":"2.0", "method":"GUI.ShowNotification", "params":{"title":"AUDIO OUTPUT", "message":"DS", "image":"C:\garden_on.png"}, "id":1}'
As a result, no notification is shown.
The relevant section of the python code is:
xbmc.executeJSONRPC('{"jsonrpc":"2.0", "method":"GUI.ShowNotification", "params":{"title":"AUDIO OUTPUT", "message":"WASAPI", "image":"C:\garden_on.png"}, "id":1}')
Anyone have any ideas please?
Kodi 16.1 on main HTPC Win 7 64-bit, 8 GB RAM, Quad Core 2.4 Ghz
3 x Pi2 running Kodi 16.1 (OSMC)
TVHeadend PVR server providing Freeview HD and Freesat HD