Kodi Mediaserver Support

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

Kodi Mediaserver Support

Post by pvm » Sunday 28 June 2015 23:41

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, PI3, ZWave, Xiamo zigbee devices, BTLE plant sensor

Raspberry Piet
Posts: 464
Joined: Saturday 11 January 2014 17:21
Target OS: Raspberry Pi
Domoticz version: Beta
Location: NL
Contact:

Re: Kodi Medisserver Support

Post by Raspberry Piet » Sunday 28 June 2015 23:48

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:password@192.168.1.10
Last edited by Raspberry Piet on Monday 29 June 2015 0:41, edited 1 time in total.

pvm
Posts: 930
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: NL
Contact:

Re: Kodi Medisserver Support

Post by pvm » Monday 29 June 2015 0:15

Ah fixed, needed to change my port number to 80 (running openelec, guess this is the default)
Attachments
kodi.PNG
Screenshot
kodi.PNG (36.15 KiB) Viewed 16560 times
Synology NAS, PI3, ZWave, Xiamo zigbee devices, BTLE plant sensor

User avatar
BigDog
Posts: 300
Joined: Tuesday 17 September 2013 13:59
Target OS: Raspberry Pi
Domoticz version: V3.9269
Location: The Netherlands
Contact:

Re: Kodi Medisserver Support

Post by BigDog » Monday 29 June 2015 8:40

where can you add kodi server i cant see it :)
is it in hardware?
1X Raspberry1B : Domoticz V3.8153 [Linux ver. 4.14.34+ #1110]
1X RFXtrx433 USB Firmware:183
1X Mysensors Gateway 1.5 -3 Mysensors
3X Cresta Thermo-hygro sensor
6X ESP8266: easy firmware(Testing)
1X 8 Channel Relay Web Control Ethernet interface(Testing)

pvm
Posts: 930
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: NL
Contact:

Re: Kodi Medisserver Support

Post by pvm » Monday 29 June 2015 9:57

Yes add hardware. This will result in new switches
Synology NAS, PI3, ZWave, Xiamo zigbee devices, BTLE plant sensor

User avatar
BigDog
Posts: 300
Joined: Tuesday 17 September 2013 13:59
Target OS: Raspberry Pi
Domoticz version: V3.9269
Location: The Netherlands
Contact:

Re: Kodi Medisserver Support

Post by BigDog » Monday 29 June 2015 10:04

yes see it right now i havent updated yet :)

have updated and see it now :)

Thanks for the info

greetz
1X Raspberry1B : Domoticz V3.8153 [Linux ver. 4.14.34+ #1110]
1X RFXtrx433 USB Firmware:183
1X Mysensors Gateway 1.5 -3 Mysensors
3X Cresta Thermo-hygro sensor
6X ESP8266: easy firmware(Testing)
1X 8 Channel Relay Web Control Ethernet interface(Testing)

Shyam
Posts: 117
Joined: Sunday 11 May 2014 22:11
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Kodi Medisserver Support

Post by Shyam » Monday 29 June 2015 12:36

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: 945
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Kodi Medisserver Support

Post by remb0 » Monday 29 June 2015 17:47

Latest beta
All Domoticz compatible products at shop: https://www.domoticz.com/wiki/Compatibl ... n_gearbest

User avatar
Dnpwwo
Posts: 715
Joined: Sunday 23 March 2014 10:00
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Kodi Medisserver Support

Post by Dnpwwo » Tuesday 30 June 2015 13:00

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: 95
Joined: Tuesday 15 April 2014 17:05
Target OS: Raspberry Pi
Domoticz version:
Location: Vaassen
Contact:

Re: Kodi Medisserver Support

Post by Steven84 » Tuesday 30 June 2015 19:17

Where can I find screen nodes? Can't get this to work...?? #noob

Raspberry Piet
Posts: 464
Joined: Saturday 11 January 2014 17:21
Target OS: Raspberry Pi
Domoticz version: Beta
Location: NL
Contact:

Re: Kodi Medisserver Support

Post by Raspberry Piet » Tuesday 30 June 2015 20:04

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: 464
Joined: Saturday 11 January 2014 17:21
Target OS: Raspberry Pi
Domoticz version: Beta
Location: NL
Contact:

Re: Kodi Medisserver Support

Post by Raspberry Piet » Tuesday 30 June 2015 20:30

@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: 715
Joined: Sunday 23 March 2014 10:00
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Kodi Medisserver Support

Post by Dnpwwo » Wednesday 01 July 2015 9:07

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: 57
Joined: Wednesday 28 May 2014 21:11
Target OS: Raspberry Pi
Domoticz version:
Location: NL
Contact:

Re: Kodi Medisserver Support

Post by Chopper_Rob » Saturday 04 July 2015 13:06

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: 169
Joined: Monday 30 June 2014 13:34
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands
Contact:

Re: Kodi Medisserver Support

Post by tcviper » Sunday 02 August 2015 14:37

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: 464
Joined: Saturday 11 January 2014 17:21
Target OS: Raspberry Pi
Domoticz version: Beta
Location: NL
Contact:

Re: Kodi Medisserver Support

Post by Raspberry Piet » Sunday 02 August 2015 15:41

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: 715
Joined: Sunday 23 March 2014 10:00
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Kodi Medisserver Support

Post by Dnpwwo » Sunday 02 August 2015 23:32

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: 464
Joined: Saturday 11 January 2014 17:21
Target OS: Raspberry Pi
Domoticz version: Beta
Location: NL
Contact:

Re: Kodi Medisserver Support

Post by Raspberry Piet » Monday 03 August 2015 20:08

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:password@192.168.1.12: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.

User avatar
Derik
Posts: 2100
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Kodi Medisserver Support

Post by Derik » Monday 03 August 2015 20:58

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: 715
Joined: Sunday 23 March 2014 10:00
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Kodi Medisserver Support

Post by Dnpwwo » Sunday 09 August 2015 2:37

@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 2 guests