Kodi Mediaserver Support

Moderator: leecollings

Post Reply
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Kodi Mediaserver Support

Post by pvm »

I've seen the new Kod Mediaserver Support functionality
Image
(not my screenshot)

I do not see my mediacenter is active as in the picture above.. Need special settings?
Last edited by ThinkPad on Monday 31 August 2015 15:05, edited 1 time in total.
Reason: Fixed typo in topictitle :)
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Kodi Medisserver Support

Post by Raspberry Piet »

Settings:

IP-adress of your Kodi machine and the port of the Kodi webserver.
When you have set username and password for the Kodi webserver, remove them as this is not (yet?) supported in Domoticz settings.
Image

Edit: also works with username and password.
Add your username and password in front of the ip adress like this:
username:[email protected]
Last edited by Raspberry Piet on Monday 29 June 2015 0:41, edited 1 time in total.
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: Kodi Medisserver Support

Post by pvm »

Ah fixed, needed to change my port number to 80 (running openelec, guess this is the default)
Attachments
Screenshot
Screenshot
kodi.PNG (36.15 KiB) Viewed 24779 times
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
BigDog
Posts: 82
Joined: Tuesday 17 September 2013 13:59
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.9269
Location: The Netherlands
Contact:

Re: Kodi Medisserver Support

Post by BigDog »

where can you add kodi server i cant see it :)
is it in hardware?
1X Raspberry4B : Domoticz Version 2023.1 [Linux 5.10.63-v7l+ armv7l]
1X Conbee II : 2.25.3 - 26720700
1X RFXtrx433 USB Firmware:183
1X Mysensors Gateway 1.5 -3
6X ESP8266: Tosmota firmware
Zigbee : 6 Operators, 13 Sensors
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: Kodi Medisserver Support

Post by pvm »

Yes add hardware. This will result in new switches
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
BigDog
Posts: 82
Joined: Tuesday 17 September 2013 13:59
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.9269
Location: The Netherlands
Contact:

Re: Kodi Medisserver Support

Post by BigDog »

yes see it right now i havent updated yet :)

have updated and see it now :)

Thanks for the info

greetz
1X Raspberry4B : Domoticz Version 2023.1 [Linux 5.10.63-v7l+ armv7l]
1X Conbee II : 2.25.3 - 26720700
1X RFXtrx433 USB Firmware:183
1X Mysensors Gateway 1.5 -3
6X ESP8266: Tosmota firmware
Zigbee : 6 Operators, 13 Sensors
Shyam
Posts: 46
Joined: Sunday 11 May 2014 22:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Kodi Medisserver Support

Post by Shyam »

What version is this on?
Raspberry Pi B+
Rfxcomm rfxtrx433
LigthwaveRF
Byron Door Bell
Accenta Gen4 Security System Integration
HomeEasy PIR
Nest Thermostat
Geofencing
Pushover
Blog: http://www.shyambhundia.com
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Kodi Medisserver Support

Post by remb0 »

Latest beta
User avatar
Dnpwwo
Posts: 819
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Kodi Medisserver Support

Post by Dnpwwo »

Nice workaround with the username:password, I've updated the hardware page with some help text.

(I don't have a u:p set so this worked by complete accident btw :lol: )
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
Steven84
Posts: 69
Joined: Tuesday 15 April 2014 17:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Vaassen
Contact:

Re: Kodi Medisserver Support

Post by Steven84 »

Where can I find screen nodes? Can't get this to work...?? #noob
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Kodi Medisserver Support

Post by Raspberry Piet »

Steven84 wrote:Where can I find screen nodes? Can't get this to work...?? #noob
Setup=> Hardware then add "Kodi Media Server" , then use setup button. That's all. ;)
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Kodi Medisserver Support

Post by Raspberry Piet »

@Dnpwwo: Thank you for your effort to implement this functionality into Domoticz.
I really like it!
Till now i use the xbmc-kodi-status-in-domoticz script made by ChopperRob for this. (wich works very good!)
Maybe you can add same functions like that script. It changes user variables dependant on state from screensaver, profilename, mute, volume ..... etc.
User avatar
Dnpwwo
Posts: 819
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Kodi Medisserver Support

Post by Dnpwwo »

There is still a fair bit of integration work that I want to do around core functionality: logging, device control, 'switch off' to name a few. I also want to move from polling (which it currently does) to listening.

After that I will look at integrating it into things like lua (and maybe even blocky). The challenge will be in ensuring that it sits comfortably with the existing functionality and that the capabilities are kept as generic as possible so that other Media Players could be added later (Plex, Sonos....).

I will probably try and stay away from User Variables if possible because, as I understand it, they really a mechanism to allow custom extensions to Domoticz via scripts not to support native implementations. Also, if I can expose properties in lua then people can update User Variables manually as (or if) required.

I've had a look at ChopperRob's script and would expect to expose similar details. Also want to be able to push messages and/or images to Kodi.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
Chopper_Rob
Posts: 17
Joined: Wednesday 28 May 2014 21:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: NL
Contact:

Re: Kodi Medisserver Support

Post by Chopper_Rob »

If you would switch to the raw TCP port instead of the web api you can integrate a much better listening system. After connecting, KODI pushes all actions to the connected devices, so you would only need to listen and not poll. My script works the same way, this makes to reaction time very fast.

You can test this by connecting to the TCP port (9090) with a simple telnet client.
User avatar
tcviper
Posts: 89
Joined: Monday 30 June 2014 13:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: Kodi Medisserver Support

Post by tcviper »

Might aswell add support for Plex Media server? :) Would be very cool so you can see who and which friends are playing what.
A bit like what Plexwatchweb does.
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Kodi Medisserver Support

Post by Raspberry Piet »

V2.2662: Kodi Log function is working! (would be nice to choose Log On/Off)

Shutdown doesn't work:

Code: Select all

2015-08-02 15:01:35.430 Kodi: (Kodi Slaapkamer) Switch Off: CanReboot:true, CanShutdown:true, CanHibernate:false, CanSuspend:true. Shutdown requested.
2015-08-02 15:01:35.439 Error: Kodi: -32700 - 'Parse error.' request '/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%System.Shutdown%22,%22id%22:1,}'
User avatar
Dnpwwo
Posts: 819
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Kodi Medisserver Support

Post by Dnpwwo »

Thanks for reporting. I couldn't test this because when you run on top of Raspian all the shutdown options are 'false'. Try 2.2664 and let me know.

I'll turn the logging down as much as possible once I know things are working smoothly. Per hardware logging sounds like a good idea but would be quite a big job now so much hardware has been implemented.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Kodi Medisserver Support

Post by Raspberry Piet »

Updated to v2.2666, same error i'm affraid.

Code: Select all

2015-08-03 19:52:23.372 Kodi: (Kodi Slaapkamer) Switch Off: CanReboot:true, CanShutdown:true, CanHibernate:false, CanSuspend:true. Shutdown requested.
2015-08-03 19:52:23.376 Error: Kodi: -32700 - 'Parse error.' request '/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22System.Shutdown%22,%22id%22:1,}'
This command i use in bash scripts to shutdown my Kodi machine:

Code: Select all

curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"id":1,"jsonrpc":"2.0","method":"System.Shutdown"}' http://user:[email protected]:8080/jsonrpc
Edit: Updated to v2.2673, Shutdown is working now! Thanks for fixing.
Last edited by Raspberry Piet on Tuesday 04 August 2015 17:51, edited 1 time in total.
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Kodi Medisserver Support

Post by Derik »

Is it perhaps possible to use kodi in the network, use like a sonos?
And then with a bleutooth device?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
Dnpwwo
Posts: 819
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Kodi Medisserver Support

Post by Dnpwwo »

@Raspberry Piet, There was a fairly obvious spurious comma towards the end of the command. Crappy testing on my part. Glad it works now, thanks for letting me know.

@Derik, Not sure exactly what you looking to do with it. You can control it over the network, via http commands or UPNP and you can get remotes for most devices (there is even a primitive one even built into the latest beta for Domoticz)
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest