Kodi Mediaserver Support
Moderator: leecollings
-
- Posts: 14
- Joined: Monday 02 February 2015 21:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.2336
- Location: Netherlands
- Contact:
Re: Kodi Medisserver Support
Can jou explain how to use the simple remote ?
-
- Posts: 158
- Joined: Saturday 11 January 2014 16:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: NL
- Contact:
Re: Kodi Medisserver Support
Yes, Click on the remote icon!Jantje1972 wrote:Can jou explain how to use the simple remote ?
- 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
i'm running kodi 15 final on my minix.
but can't control it remotely. when I use the same credentials in my browser for the default kodi controls it wors great!
2015-08-17 15:54:39.120 Error: Kodi: (482) Command: 'RIGHT'. Device not found.
2015-08-17 15:54:40.128 Error: Kodi: (482) Command: 'UP'. Device not found.
2015-08-17 15:54:40.655 Error: Kodi: (482) Command: 'UP'. Device not found.
2015-08-17 15:54:41.040 Error: Kodi: (482) Command: 'UP'. Device not found.
while logging and status are OK.
but can't control it remotely. when I use the same credentials in my browser for the default kodi controls it wors great!
2015-08-17 15:54:39.120 Error: Kodi: (482) Command: 'RIGHT'. Device not found.
2015-08-17 15:54:40.128 Error: Kodi: (482) Command: 'UP'. Device not found.
2015-08-17 15:54:40.655 Error: Kodi: (482) Command: 'UP'. Device not found.
2015-08-17 15:54:41.040 Error: Kodi: (482) Command: 'UP'. Device not found.
while logging and status are OK.
- 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
Not sure what is going on there. I would have suspected that your Kodi isn't using 8080 but you say that the logging and status works so probably not the issue.
I did commit an update into svn a few days ago but it was lost in the move to github so I will need to recommit it once I get my development environment operational again on the new version. The remote has way more buttons on it (so its actually useful!) and the logic has changed on the server to be more simplistic (and therefore robust).
I'll let you know when I've re upped it.
I did commit an update into svn a few days ago but it was lost in the move to github so I will need to recommit it once I get my development environment operational again on the new version. The remote has way more buttons on it (so its actually useful!) and the logic has changed on the server to be more simplistic (and therefore robust).
I'll let you know when I've re upped it.
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
- 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
If have committed the update to git (I think) so can you give it another go.
From a logic point of view, the "482" is an invalid ID for one reason or another (this is the 'idx' that you see on the 'Devices' page, do you actually have that many devices???). The Kodi code uses the the DeviceID that matches that index to look into the WOL device table for connection details (I copied the pattern set for 'ping' devices). As shown here: I used sqlitebowser to check (a backup of) the database. The error you are seeing is a failure of that mapping.
If you still have the error can you show me the relevant details of those two tables?
From a logic point of view, the "482" is an invalid ID for one reason or another (this is the 'idx' that you see on the 'Devices' page, do you actually have that many devices???). The Kodi code uses the the DeviceID that matches that index to look into the WOL device table for connection details (I copied the pattern set for 'ping' devices). As shown here: I used sqlitebowser to check (a backup of) the database. The error you are seeing is a failure of that mapping.
If you still have the error can you show me the relevant details of those two tables?
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
- kraades
- Posts: 36
- Joined: Wednesday 24 June 2015 9:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: The Netherlands
- Contact:
Re: Kodi Medisserver Support
Is it still using a polling mechanism instead of a direct tcp port connection?Chopper_Rob wrote: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.
Does this mean that if you for example pause Kodi (*) you cannot immediately turn on the lights -like the Chopper_Rob solution- and you have to wait for the polling interval?
(*) from Kodi not Domoticz
- 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
It is still polling at the moment. I'm focussing on getting the current functionality working for everyone before I start something else.
Definitely high on the list though.
Definitely high on the list though.
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
- kraades
- Posts: 36
- Joined: Wednesday 24 June 2015 9:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: The Netherlands
- Contact:
Re: Kodi Medisserver Support
Thanks.
I installed it and it works fine, but how can I get the Kodi status in a blockly?
Edit:
...or in general switch on a lamp if Kodi is paused.
Like for example:
I installed it and it works fine, but how can I get the Kodi status in a blockly?
Edit:
...or in general switch on a lamp if Kodi is paused.
Like for example:
Code: Select all
If Kodi = Paused
Do
Light = On
- StanHD
- Posts: 347
- Joined: Friday 12 July 2013 16:09
- Target OS: Windows
- Domoticz version:
- Location: East Sussex, UK
- Contact:
Re: Kodi Medisserver Support
Hi, I have added the Kodi hardware and the remote control works very well. The problem is that WOL doesn't work. I have the WOL hardware enabled and a switch that does work. The IP address matches but when I active the switch nothing happens. If I activate my WOL switch the Kodi HTPC wakes up. Any ideas?
Domoticz Main - Intel nuc, Windows, RFXTRX433E. Lan Relay Boards, Aeon Z-Stick Gen 5, Evohome HGI80, Milight WiFi, MySensors Ethernet Gateway, Harmony Hub
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
- Dnpwwo
- Posts: 819
- Joined: Sunday 23 March 2014 9:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Melbourne, Australia
- Contact:
Re: Kodi Mediaserver Support
StanHD, the Domoticz data model only supports network devices by MAC address or IP address at the moment. All the current Kodi operation require IP address so adding WOL will take time. I could look at this when I get the core functionality locked in but WOL will not work for all Kodis anyway (Raspberry Pi, for example, does not support it).
pepeEL, I don't think the Microsoft Edge browser is officially supported by Domoticz yet (I don't have Windows 10 yet) but using the built in IE11 should work. See comment above around clicking to turn on. Once I finish my next development cycle I will go back and look at the remote, I want to put some special handling in for mobiles to maximise it so the buttons are more usable.
kraades, I picked moving away from polling as the next uplift over event integration. It's high on the list though. It is interesting to hear what events people would like to see so thanks for the feedback. Keep watching the thread for updates
pepeEL, I don't think the Microsoft Edge browser is officially supported by Domoticz yet (I don't have Windows 10 yet) but using the built in IE11 should work. See comment above around clicking to turn on. Once I finish my next development cycle I will go back and look at the remote, I want to put some special handling in for mobiles to maximise it so the buttons are more usable.
kraades, I picked moving away from polling as the next uplift over event integration. It's high on the list though. It is interesting to hear what events people would like to see so thanks for the feedback. Keep watching the thread for updates
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
- Dnpwwo
- Posts: 819
- Joined: Sunday 23 March 2014 9:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Melbourne, Australia
- Contact:
Re: Kodi Mediaserver Support
You will need to copy StanHD and create a WOL Device and switch on your Kodi using that at the moment.
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
- StanHD
- Posts: 347
- Joined: Friday 12 July 2013 16:09
- Target OS: Windows
- Domoticz version:
- Location: East Sussex, UK
- Contact:
Re: Kodi Mediaserver Support
I am StanHD .
I used the Wake On Lan hardware to make a push button to wake up my Kodibuntu HTPC.
I used the Wake On Lan hardware to make a push button to wake up my Kodibuntu HTPC.
Domoticz Main - Intel nuc, Windows, RFXTRX433E. Lan Relay Boards, Aeon Z-Stick Gen 5, Evohome HGI80, Milight WiFi, MySensors Ethernet Gateway, Harmony Hub
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
- kraades
- Posts: 36
- Joined: Wednesday 24 June 2015 9:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: The Netherlands
- Contact:
Re: Kodi Mediaserver Support
Great, having a direct connection is a great improvement over polling.Dnpwwo wrote:kraades, I picked moving away from polling as the next uplift over event integration. It's high on the list though. It is interesting to hear what events people would like to see so thanks for the feedback. Keep watching the thread for updates
Ok, so at the moment it is not possible to switch on a lamp when Kodi is paused and vice versa? I think we need at least the playing state in Domoticz (playing, paused etc.). Imho if there is no event integration between Kodi and Domoticz the integration is a nice to have but pointless from a Domotica point of view.
Thank you for your efforts! Much appreciated.
- StanHD
- Posts: 347
- Joined: Friday 12 July 2013 16:09
- Target OS: Windows
- Domoticz version:
- Location: East Sussex, UK
- Contact:
Re: Kodi Mediaserver Support
Ah I think I understand. My HTPC is used only for Kodi (Kodibuntu). When I wake it up, Kodi is already running, so already to use the excellent remote now available in Domoticz. I sleep the HTPC using the Kodi shutdown menu.pepeEL wrote:But when you wake up how run KODI ? By click in Domoticz on switch KODI ?
I have a PC and also can wake on lan this PC. But then when i click in DOmoticz to run KODI on PC KODI not running....
Not sure how you could "Launch" or "Run" Kodi if it isn't already started. Sorry
Domoticz Main - Intel nuc, Windows, RFXTRX433E. Lan Relay Boards, Aeon Z-Stick Gen 5, Evohome HGI80, Milight WiFi, MySensors Ethernet Gateway, Harmony Hub
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
- StanHD
- Posts: 347
- Joined: Friday 12 July 2013 16:09
- Target OS: Windows
- Domoticz version:
- Location: East Sussex, UK
- Contact:
Re: Kodi Mediaserver Support
Start here:- http://kodi.tvpepeEL wrote:OK thanks... I Think about to install KODI on Raspberry PI 2.
Do you know how ? Anything is available image to sd card ?
There are Wiki and Faq's to help you.
Domoticz Main - Intel nuc, Windows, RFXTRX433E. Lan Relay Boards, Aeon Z-Stick Gen 5, Evohome HGI80, Milight WiFi, MySensors Ethernet Gateway, Harmony Hub
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
-
- Posts: 550
- Joined: Tuesday 17 June 2014 22:14
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10538
- Location: NL
- Contact:
Re: Kodi Mediaserver Support
PepeEL. Openelec is popular. I use it on a Pi B
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
-
- Posts: 550
- Joined: Tuesday 17 June 2014 22:14
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10538
- Location: NL
- Contact:
Re: Kodi Mediaserver Support
It is similar to domoticz. Download SD card image from http://openelec.tv/get-openelec and write in the same way to an empty SD card and plug it in, power it on. Openelec.tv also has a wiki/chat/forum for questions
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
-
- Posts: 550
- Joined: Tuesday 17 June 2014 22:14
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10538
- Location: NL
- Contact:
Re: Kodi Mediaserver Support
This is a complete Linux operating system including the latest kodi version. The operating system is optimized to run kodi
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
- StanHD
- Posts: 347
- Joined: Friday 12 July 2013 16:09
- Target OS: Windows
- Domoticz version:
- Location: East Sussex, UK
- Contact:
Re: Kodi Mediaserver Support
Just an update, here's how I have things working now:-
Hardware WOL - Push On button set-up for my Kodi HTPC (Kodibuntu)
Hardware Ping - Virtual Switch set-up to monitor Kodi HTPC Status
Hardware Kodi - Media Player button set-up for the IP address of the Kodi HTPC.
Blockly Event:- If Kodi = On, Set WOL Push On button On
So when I set the Kodi Media Player button on it triggers the WOL button for 5 seconds (set within the button off delay). When the Kodi HTPC is "awake" the Ping virtual switch lights up.
The "Off" action of the Kodi Media Player button works fine, and the Ping vitual switch goes off.
A bit messy perhaps, but nice and simple for a non-coder
Thank you for the Kodi Hardware, your work is very much appreciated.
Hardware WOL - Push On button set-up for my Kodi HTPC (Kodibuntu)
Hardware Ping - Virtual Switch set-up to monitor Kodi HTPC Status
Hardware Kodi - Media Player button set-up for the IP address of the Kodi HTPC.
Blockly Event:- If Kodi = On, Set WOL Push On button On
So when I set the Kodi Media Player button on it triggers the WOL button for 5 seconds (set within the button off delay). When the Kodi HTPC is "awake" the Ping virtual switch lights up.
The "Off" action of the Kodi Media Player button works fine, and the Ping vitual switch goes off.
A bit messy perhaps, but nice and simple for a non-coder
Thank you for the Kodi Hardware, your work is very much appreciated.
Domoticz Main - Intel nuc, Windows, RFXTRX433E. Lan Relay Boards, Aeon Z-Stick Gen 5, Evohome HGI80, Milight WiFi, MySensors Ethernet Gateway, Harmony Hub
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
Who is online
Users browsing this forum: No registered users and 1 guest