Posts: 3,545
Joined: Mar 2010
Reputation:
120
2015-11-15, 21:28
(This post was last modified: 2015-11-15, 23:10 by teeedubb.)
Not sure... Maybe it's a Mac thing.. Have you tried putting the script in the kodi userdata directory? What happens if you run it via the terminal?
And have you set the script to be executable?
Posts: 107
Joined: Sep 2015
Reputation:
1
Thanks. You save my time alot..Have you tried Default Sound Gadget?
Posts: 227
Joined: Nov 2014
Reputation:
3
I had configured this successfully on Kodi 15.2. Now I am running 16beta5 and the only thing I see in the log is:
WARNING: CPythonInvoker(6): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
The expected output "CURRENT AUDIO DEVICE" does not appear in the log. After I (re)start Kodi, the notification appears once, at the first time I press the remote button. After that, nothing but the above message in the log.
Is there another requirement in Jarvis to run python scripts?
TIA,
Bart
Kodi 20.2 runs on a Celeron N5095 with 8 GB memory, Windows 11 Pro 22H2.
DVBviewer 7.2.4.0 with DMS 3.2.4.0 | Digital Devices Cine S2 V7 dual DVB-S2 tuner with CI
Windows 10 Pro x64 with all updates | Core i3 CPU, 16 GB memory
Posts: 3,545
Joined: Mar 2010
Reputation:
120
Not sure about any changed requirements in Jarvis, though going by that error message the script should still work. I'll set this up again on my windows machine and test it out.
Posts: 18
Joined: Feb 2015
Reputation:
0
After restart audio still gets sent to last output device. Any idea how to set it up so after restart default output device will be used, no matter what has been used last?
Posts: 3,545
Joined: Mar 2010
Reputation:
120
Yeah I just tried.. while I do get the "WARNING: CPythonInvoker(6): Script invoked without an addon....." error, the script worked over several runs on Jarvis RC3. Post a version of your script and I'll try on my machine.
Posts: 3,545
Joined: Mar 2010
Reputation:
120
Works as should on my system. You might wanna try the audio profile switcher addon.
Posts: 3,545
Joined: Mar 2010
Reputation:
120
It uses kodi's jsonrpc protocol to toggle settings. The example is for switching hardware audio outputs (eg HDMI and analog), but the script can be modified to change any settings that are exposed via jsonrpc.