Page 1 of 1
Kodi buttons in Dashticz
Posted: Tuesday 31 March 2020 9:22
by jberinga
Hi,
Is it possible to get the Kodi buttons (Play, Pause, SkipNext, SkipPrevious, etc) in Dashticz?
On my Dashticz I do have shown what is playing with Kodi right now, but it would be nice if I could control Kodi as well from Dashticz.
Thanks.
JB
Re: Kodi buttons in Dashticz
Posted: Thursday 20 August 2020 12:08
by jberinga
In the meantime I have been playing around and have this:
- Spoiler: show
-
//KodiShield Buttons
buttons.kodishieldback = {width:2, isimage : true, newwindow: 0, image: 'kodiback.png', title:'Back',url: 'http://192.168.178.111:8080/jsonrpc?req ... igbackward"}}'}
buttons.kodishieldpause = {width:2, isimage : true, newwindow: 0, image: 'kodipause.png', title:'Pause', url: 'http://192.168.178.111:8080/jsonrpc?req ... layerid":1}}'}
buttons.kodishieldfwd = {width:2, isimage : true, newwindow: 0, image: 'kodifwd.png', title:'Next', url: 'http://192.168.178.111:8080/jsonrpc?req ... bigforward"}}'}
But when clicking the button it opens a new site which is normal behavior, but can it also be configured as a "normal" button?
And using this json command is not working anymore, as Kodi is restricted to use this command and you get
"Bad client permission." when pressing\executing the url. Is there a way to get this working in Dashticz?
Re: Kodi buttons in Dashticz
Posted: Thursday 20 August 2020 15:49
by Lokonli
jberinga wrote: ↑Thursday 20 August 2020 12:08
In the meantime I have been playing around and have this:
- Spoiler: show
-
//KodiShield Buttons
buttons.kodishieldback = {width:2, isimage : true, newwindow: 0, image: 'kodiback.png', title:'Back',url: 'http://192.168.178.111:8080/jsonrpc?req ... igbackward"}}'}
buttons.kodishieldpause = {width:2, isimage : true, newwindow: 0, image: 'kodipause.png', title:'Pause', url: 'http://192.168.178.111:8080/jsonrpc?req ... layerid":1}}'}
buttons.kodishieldfwd = {width:2, isimage : true, newwindow: 0, image: 'kodifwd.png', title:'Next', url: 'http://192.168.178.111:8080/jsonrpc?req ... bigforward"}}'}
But when clicking the button it opens a new site which is normal behavior, but can it also be configured as a "normal" button?
And using this json command is not working anymore, as Kodi is restricted to use this command and you get
"Bad client permission." when pressing\executing the url. Is there a way to get this working in Dashticz?
Try with newwindow:3 to execute the request without opening it in a window.
See:
https://dashticz.readthedocs.io/en/beta ... parameters
I don't know how to solve the Kodi 'bad client permission'. Is the URL working when you open it in a browser?
Re: Kodi buttons in Dashticz
Posted: Thursday 20 August 2020 15:52
by Lokonli
Lokonli wrote: ↑Thursday 20 August 2020 15:49
jberinga wrote: ↑Thursday 20 August 2020 12:08
In the meantime I have been playing around and have this:
- Spoiler: show
-
//KodiShield Buttons
buttons.kodishieldback = {width:2, isimage : true, newwindow: 0, image: 'kodiback.png', title:'Back',url: 'http://192.168.178.111:8080/jsonrpc?req ... igbackward"}}'}
buttons.kodishieldpause = {width:2, isimage : true, newwindow: 0, image: 'kodipause.png', title:'Pause', url: 'http://192.168.178.111:8080/jsonrpc?req ... layerid":1}}'}
buttons.kodishieldfwd = {width:2, isimage : true, newwindow: 0, image: 'kodifwd.png', title:'Next', url: 'http://192.168.178.111:8080/jsonrpc?req ... bigforward"}}'}
But when clicking the button it opens a new site which is normal behavior, but can it also be configured as a "normal" button?
And using this json command is not working anymore, as Kodi is restricted to use this command and you get
"Bad client permission." when pressing\executing the url. Is there a way to get this working in Dashticz?
Try with newwindow:3 to execute the request without opening it in a window.
See:
https://dashticz.readthedocs.io/en/beta ... parameters
I don't know how to solve the Kodi 'bad client permission'. Is the URL working when you open it in a browser?
On the Kodi release notes I read we have to change it into a Post instead of a normal http request. I will add a block parameter for that.
Re: Kodi buttons in Dashticz
Posted: Wednesday 07 October 2020 21:02
by Lokonli
jberinga wrote: ↑Thursday 20 August 2020 12:08
In the meantime I have been playing around and have this:
- Spoiler: show
-
//KodiShield Buttons
buttons.kodishieldback = {width:2, isimage : true, newwindow: 0, image: 'kodiback.png', title:'Back',url: 'http://192.168.178.111:8080/jsonrpc?req ... igbackward"}}'}
buttons.kodishieldpause = {width:2, isimage : true, newwindow: 0, image: 'kodipause.png', title:'Pause', url: 'http://192.168.178.111:8080/jsonrpc?req ... layerid":1}}'}
buttons.kodishieldfwd = {width:2, isimage : true, newwindow: 0, image: 'kodifwd.png', title:'Next', url: 'http://192.168.178.111:8080/jsonrpc?req ... bigforward"}}'}
But when clicking the button it opens a new site which is normal behavior, but can it also be configured as a "normal" button?
And using this json command is not working anymore, as Kodi is restricted to use this command and you get
"Bad client permission." when pressing\executing the url. Is there a way to get this working in Dashticz?
In the latest beta you can set newwindow:4 as block parameter to execute the URL as POST request.
I expect this will solve your issue with Kodi. Can you test? (I did not test myself)
Re: Kodi buttons in Dashticz
Posted: Thursday 08 October 2020 14:50
by jberinga
Thanks Lokonli! The URL is not opening in a new window now, but I am not sure what URL to use to control Kodi.
Are you or anybody else in this forum able to tell me what URL to use to go back, play\pause and to go to the next song in Kodi?