2018-08-21, 12:56
Hi All,
I have a problem with Kodi and TVH I hope someone can help out with. I have a TV Headend instance running on a Linux (Debian) PC, which has Kodi running on as a front end. The channels come from a DVB-S2 dual tuner card and a USB DVB-T2 stick.
I have been playing with Alexa to add voice control to Kodi, and can switch channels with "Alexa, ask Kodi to play channel Sky News" (for example). Alexa looks up 'Sky News' in it's internal script, and calls a web server in my house with "sky news" and a code of "284".
The number 284 relates to the unique internal index number Kodi has given the channel. My web server then sends a JSON request to Kodi to change the channel, based on the index number provided. This works perfectly. Please note, the number used here is Kodi (or the TVH plugin's) internal index number, not the channel number which I would use on a remote or in the EPG (Sky news is actually on channel 501 as far as users see). 284 is the internal index number Kodi or the TVH plugin seem to use, and Alexa works fine with it.
My issue came up when I added a second front end in the bedroom connected to the same TVH backend on the PC. I added Alexa control to that one, and Alexa requests Sky News on index 284 with my web server sending the JSON request to the bedroom PI frontend.
It seems that although the secondary frontend is using the same backend as the original Kodi, the internal index numbers have changed. So calling channel 284 on the secondary frontend gives me BBC1, not Sky News!
I can of course code around this, but I was hoping someone could give me a way to make the internal channel index numbers match on both Kodi/TVH plugin instances? I assume there is a database somewhere in Kodi or TVH that keeps the PVR channel index, so can I copy the master frontend version of that database onto the secondary frontend to match everything up? Kodi certainly doesn't seem to use the channel index numbers from the backend TVH, or both would already match. It's something generated in Kodi or the TVH plugin.
Any advise would be greatly appreciated,
With Kindest Regards,
Ian
I have a problem with Kodi and TVH I hope someone can help out with. I have a TV Headend instance running on a Linux (Debian) PC, which has Kodi running on as a front end. The channels come from a DVB-S2 dual tuner card and a USB DVB-T2 stick.
I have been playing with Alexa to add voice control to Kodi, and can switch channels with "Alexa, ask Kodi to play channel Sky News" (for example). Alexa looks up 'Sky News' in it's internal script, and calls a web server in my house with "sky news" and a code of "284".
The number 284 relates to the unique internal index number Kodi has given the channel. My web server then sends a JSON request to Kodi to change the channel, based on the index number provided. This works perfectly. Please note, the number used here is Kodi (or the TVH plugin's) internal index number, not the channel number which I would use on a remote or in the EPG (Sky news is actually on channel 501 as far as users see). 284 is the internal index number Kodi or the TVH plugin seem to use, and Alexa works fine with it.
My issue came up when I added a second front end in the bedroom connected to the same TVH backend on the PC. I added Alexa control to that one, and Alexa requests Sky News on index 284 with my web server sending the JSON request to the bedroom PI frontend.
It seems that although the secondary frontend is using the same backend as the original Kodi, the internal index numbers have changed. So calling channel 284 on the secondary frontend gives me BBC1, not Sky News!
I can of course code around this, but I was hoping someone could give me a way to make the internal channel index numbers match on both Kodi/TVH plugin instances? I assume there is a database somewhere in Kodi or TVH that keeps the PVR channel index, so can I copy the master frontend version of that database onto the secondary frontend to match everything up? Kodi certainly doesn't seem to use the channel index numbers from the backend TVH, or both would already match. It's something generated in Kodi or the TVH plugin.
Any advise would be greatly appreciated,
With Kindest Regards,
Ian