• 1
  • 3
  • 4
  • 5
  • 6
  • 7(current)
[HOW-TO] Easily switch audio outputs, settings, etc.
#91
I figured out what is wrong.  In short, the syntax changed.  For me, I had to append a literal "ALSA:" prefix to the targets.  See details in this thread.
Need help programming a Streamzap remote?
Reply
#92
Yep, I have a "ASLA:" at the start of my settings string too.
Reply
#93
Just as an FYI for others switching to v20 from v19, xbmc.translatePath has been depreciated in Kodi's Python API v19.  It has been replaced by xbmcvfs.translatePath.  Adjust your scripts accordingly.

Example:
Code:
 #!/usr/bin/env python3
 
 import xbmc
+import xbmcvfs
 import os
 
-tempdir = xbmc.translatePath('special://temp/')
+tempdir = xbmcvfs.translatePath('special://temp/')
 tempfile0 = os.path.join(tempdir, 'audiooutput0')
Need help programming a Streamzap remote?
Reply
#94
How can one get an updated list of settings, similar to the one linked in the OP? Lots of stuff has been added to Kodi since 2014.
For troubleshooting and bug reporting please make sure you read this first (usually it's enough to follow instructions in the second post).
Reply
#95
(2023-05-18, 00:06)ashlar Wrote: How can one get an updated list of settings, similar to the one linked in the OP? Lots of stuff has been added to Kodi since 2014.

issuing getsettings should return all available i believe - https://kodi.wiki/view/JSON-RPC_API/v13#...etSettings

or something else youre looking for?
Reply
#96
(2023-05-18, 00:17)jepsizofye Wrote:
(2023-05-18, 00:06)ashlar Wrote: How can one get an updated list of settings, similar to the one linked in the OP? Lots of stuff has been added to Kodi since 2014.

issuing getsettings should return all available i believe - https://kodi.wiki/view/JSON-RPC_API/v13#...etSettings

or something else youre looking for?
No, I suppose I was looking for that. It's just that while I can issue JSON commands through EventGhost, I'm not so sure about sending that command and actually getting the result in a format I can look at.

I will experiment. Thanks for your help.

(What I'm trying to say is that, apart from using it through EventGhost, I've never issued JSON commands through my Windows PC; don't know if it's something I can do through the command line... there's the need to study and experiment; thanks again)
For troubleshooting and bug reporting please make sure you read this first (usually it's enough to follow instructions in the second post).
Reply
#97
(2023-05-18, 12:02)ashlar Wrote:
(2023-05-18, 00:17)jepsizofye Wrote:
(2023-05-18, 00:06)ashlar Wrote: How can one get an updated list of settings, similar to the one linked in the OP? Lots of stuff has been added to Kodi since 2014.

issuing getsettings should return all available i believe - https://kodi.wiki/view/JSON-RPC_API/v13#...etSettings

or something else youre looking for?
No, I suppose I was looking for that. It's just that while I can issue JSON commands through EventGhost, I'm not so sure about sending that command and actually getting the result in a format I can look at.

I will experiment. Thanks for your help.

(What I'm trying to say is that, apart from using it through EventGhost, I've never issued JSON commands through my Windows PC; don't know if it's something I can do through the command line... there's the need to study and experiment; thanks again)

put the url in your browser

http://localhost:8080/jsonrpc?request={"jsonrpc":"2.0","id":1,"method":"Settings.GetSettings"}

format with something like https://jsonformatter.curiousconcept.com

save as a .json file

open with a nice editor -
https://kate-editor.org
https://notepad-plus-plus.org

look for id and value pairs
Reply
  • 1
  • 3
  • 4
  • 5
  • 6
  • 7(current)

Logout Mark Read Team Forum Stats Members Help
[HOW-TO] Easily switch audio outputs, settings, etc.3