Kodi buttons in Dashticz

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
jberinga
Posts: 60
Joined: Tuesday 11 August 2015 14:20
Target OS: NAS (Synology & others)
Domoticz version: 2024.7
Location: The Netherlands
Contact:

Kodi buttons in Dashticz

Post 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
jberinga
Posts: 60
Joined: Tuesday 11 August 2015 14:20
Target OS: NAS (Synology & others)
Domoticz version: 2024.7
Location: The Netherlands
Contact:

Re: Kodi buttons in Dashticz

Post 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?
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Kodi buttons in Dashticz

Post 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?
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Kodi buttons in Dashticz

Post 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.
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Kodi buttons in Dashticz

Post 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)
jberinga
Posts: 60
Joined: Tuesday 11 August 2015 14:20
Target OS: NAS (Synology & others)
Domoticz version: 2024.7
Location: The Netherlands
Contact:

Re: Kodi buttons in Dashticz

Post 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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest