• 1
  • 10
  • 11
  • 12
  • 13(current)
  • 14
New FREE Control4 Driver Available (JSON)
(2017-02-21, 21:41)RetardedGoat Wrote:
(2017-02-20, 23:00)Blackfiveo Wrote:
(2016-08-09, 19:30)RetardedGoat Wrote: No a separate thread, I'm afraid. Just earlier in this one.

http://forum.kodi.tv/showthread.php?tid=...pid2232098

I wrote this Event Server version because the JSON one had a few minor limits(like you noticed with the On Screen Display). I posted it in this thread because even though it's an 80% rewrite, it is based on the JSON one BrandonJ wrote.

BrandonJ was great in that he posted his source code on GitHub. I'd do the same except I don't know how. And I'm too phenomenally lazy to figure it out. But if anyone expresses interest, I can post it here and/or figure out GitHub.


Thanks so much for the driver, been trying to get it with my matricom box and no luck. Is there a way to know that it has succesfully established connection from ComposerPro. I put in the MAC Address with no spaces or colons but it doesnt seem to connect


Code:
XBMC: ReceivedFromProxy: ON
Got ON Command:
XBMC: OnConnectionStatusChanged[6003 (9)]: ONLINE
XBMC: OnConnectionStatusChanged[6003 (9)]: OFFLINE
XBMC: OnConnectionStatusChanged[6003 (9)]: ONLINE
XBMC: ReceivedFromProxy: GET_ADV_SCENES
XBMC: ReceivedFromProxy: GET_ADV_SCENES
[string "Lua Code"]:91: attempt to concatenate local 'strData' (a nil value) (ReceivedFromProxy)
[string "Lua Code"]:91: attempt to concatenate local 'strData' (a nil value) (ReceivedFromProxy)
XBMC: ReceivedFromProxy: GET_ADV_SCENES
[string "Lua Code"]:91: attempt to concatenate local 'strData' (a nil value) (ReceivedFromProxy)
XBMC: ReceivedFromProxy: GET_ADV_SCENES
[string "Lua Code"]:91: attempt to concatenate local 'strData' (a nil value) (ReceivedFromProxy)
On Timer Expired
On Timer Expired
Unrecognized TimerID
Sending Wake on LAN magic packet
00000000  FF FF FF FF FF FF C4 4E  AC 10 1C FD C4 4E AC 10  .......N.....N..
00000010  1C FD C4 4E AC 10 1C FD  C4 4E AC 10 1C FD C4 4E  ...N.....N.....N
00000020  AC 10 1C FD C4 4E AC 10  1C FD C4 4E AC 10 1C FD  .....N.....N....
00000030  C4 4E AC 10 1C FD C4 4E  AC 10 1C FD C4 4E AC 10  .N.....N.....N..
00000040  1C FD C4 4E AC 10 1C FD  C4 4E AC 10 1C FD C4 4E  ...N.....N.....N
00000050  AC 10 1C FD C4 4E AC 10  1C FD C4 4E AC 10 1C FD  .....N.....N....
00000060  C4 4E AC 10 1C FD                                 .N....
XBMC: ReceivedFromProxy: ENTER
Sending EventServer packet: enter
XBMC: ReceivedFromProxy: ENTER
Sending EventServer packet: enter
XBMC: ReceivedFromProxy: ENTER

Did you specify the IP address in the Connections section of Composer?

Open Composer.
Click on Connections(Just below System Design on the bottom left)
Click the Network tab.
Select 'IP Network'
Your kodi device should be in the list on the right. Right click it and select 'Identity'.
Enter the IP address of your Kodi device.

Hopefully this gets things going for you. Let me know if it doesn't work.

That was it! works like a boss!! thank you very very much!
Reply
Was trying to convert this over to a c4z to change the icon but there not having anyluck maybe my <capabilities> tag is in the wrong area, do you have any experience with that?
Reply
I cant manage to setup a hotkey on the coloured keys. The default one 't' in the driver works but anything else i try to input (for example 'h') doesn't stick in the driver and isn't sent by Lua.

XBMC: ReceivedFromProxy: PROGRAM_A
Sending EventServer packet: t
XBMC: ReceivedFromProxy: PROGRAM_A
Sending EventServer packet: t
XBMC: ReceivedFromProxy: PROGRAM_D
XBMC: ReceivedFromProxy: PROGRAM_D
XBMC: ReceivedFromProxy: PROGRAM_D
XBMC: ReceivedFromProxy: PROGRAM_D

I set 'h' on program D keymap in the properties but it seems it's not doing anything.
Thanks
Reply
(2017-02-24, 19:41)Blackfiveo Wrote: Was trying to convert this over to a c4z to change the icon but there not having anyluck maybe my <capabilities> tag is in the wrong area, do you have any experience with that?

I figured it out, had some silly typos in it
Reply
Anyone try this on Krypton?!
Reply
(2017-04-07, 03:29)Blackfiveo Wrote: Anyone try this on Krypton?!

yes i can confirm it's working fine both 17.0 17.1 android and libreelec
Reply
Anyone here with Control4 using an AppleTV box with Kodi side-loaded? Using the AppleTV driver once in Kodi the "select" button doesnt seem to work. Just curious if anyone else is trying to accomplish Kodi through AppleTV with a Control4 remote
Reply
I just installed this driver and I noticed it wouldn't power off the kodi unit on room off even though the shutdown property was configured to do so. I did some debugging and what appears to be happening is that the connection is getting severed before OnConnectionStatusChanged function is called. This creates a condition where idBinding = 6004 and strStatus = OFFLINE which is not accounted for. Therefore the RPC call is never sent to power the unit off. I tried a few workarounds and got it working in my local copy but in not what I would call a clean way. It looks like C4 can shut the network connection down if you don't call C4:NetPortOptions with the KEEP_ALIVE parameter. I don't know if it would be cleaner to hold the connection open or add a case such that if the connection is down it can re-open one before sending the shutdown command.

I experienced this with multiple intel NUCs running Kodi. It seems like the condition would occur after they were on for a while. I did validate with the switch infrastructure that there was no packet loss.


Code:
function OnConnectionStatusChanged(idBinding, nPort, strStatus)
        dbg("XBMC: OnConnectionStatusChanged[" .. idBinding .. " (" .. nPort .. ")]: " .. strStatus)

        if (idBinding == 6003) then
                if (strStatus == "ONLINE") then
                        idWakeOnLan = C4:AddTimer(Properties["Power On Delay-Seconds"], "SECONDS", false)
                end
        elseif(idBinding == 6004) then
                if (strStatus == "ONLINE") then
                        dbg("TCP Connected.  Sending Shutdown Command.")
                        JsonRPCSend(XBMC_SHUTDOWN_ACTIONS[Properties['Room Off Command']])
                end
        end
end
Reply
(2012-04-19, 18:58)brandonj Wrote:
(2012-04-19, 00:20)ajburnet Wrote: Does the driver import media into C4 - or is that next on the to do list?

Currently it does not support this, but I am working on it.  There are some limitations on the C4 side that I have to overcome to implement it, so I don't know how well it will work yet.

Currently, if XBMC is using the same share and credentials as the Network Storage driver in your C4 project, you can play files from navigator that way.

Hopefully I will be able to get a good solution implemented soon.

-Brandon

Hi Guys, driver is working great on Krypton Openelec/librelec. Thanks!. 

Had anyone imported media into Control4??
Reply
RetardedGoat's driver seems to be broken with Kodi v.18 Leia's recent nightlies, starting with Nov 9 2017.  Hope someone can fix, C4 and Kodi work beautifully otherwise.

I've posted a bug report on the LibreElec site, will do so with Kodi bug tracker as well shortly.

https://forum.libreelec.tv/thread/11314-...er-loss-o/
Reply
(2018-01-15, 17:16)Yorgos Wrote: RetardedGoat's driver seems to be broken with Kodi v.18 Leia's recent nightlies, starting with Nov 9 2017.  Hope someone can fix, C4 and Kodi work beautifully otherwise.

I've posted a bug report on the LibreElec site, will do so with Kodi bug tracker as well shortly.

https://forum.libreelec.tv/thread/11314-...er-loss-o/
Too bad. I better not update to Leia's. By the way have any of you been able to play My Movies From the C4 interface to Kodi using this driver? If so please let me know how.  Thanks in advance
Reply
(2018-02-23, 05:57)fbrea Wrote:
(2018-01-15, 17:16)Yorgos Wrote: RetardedGoat's driver seems to be broken with Kodi v.18 Leia's recent nightlies, starting with Nov 9 2017.  Hope someone can fix, C4 and Kodi work beautifully otherwise.

I've posted a bug report on the LibreElec site, will do so with Kodi bug tracker as well shortly.

https://forum.libreelec.tv/thread/11314-...er-loss-o/
Too bad. I better not update to Leia's. By the way have any of you been able to play My Movies From the C4 interface to Kodi using this driver? If so please let me know how.  Thanks in advance

Just noticed it’s broken with Leia. I’ll look at it and update the driver as soon as I can.
Reply
(2018-01-15, 17:16)Yorgos Wrote: RetardedGoat's driver seems to be broken with Kodi v.18 Leia's recent nightlies, starting with Nov 9 2017.  Hope someone can fix, C4 and Kodi work beautifully otherwise.

I've posted a bug report on the LibreElec site, will do so with Kodi bug tracker as well shortly.

https://forum.libreelec.tv/thread/11314-...er-loss-o/

I’m on it. I’ll post back when I have an updated version.
Reply
(2018-01-15, 17:16)Yorgos Wrote: RetardedGoat's driver seems to be broken with Kodi v.18 Leia's recent nightlies, starting with Nov 9 2017.  Hope someone can fix, C4 and Kodi work beautifully otherwise.

I've posted a bug report on the LibreElec site, will do so with Kodi bug tracker as well shortly.

https://forum.libreelec.tv/thread/11314-...er-loss-o/

Well. I’m stumped. There seems to be a bug in Leia. I send the packet. I see in the logs that kodi got the packet and successfully parsed it. But it still doesn’t work. At least not entirely. Some buttons work. But not others. It almost seems related to keys that are setup with the longpress mod.

I even pulled the kodi EventServer code from github. But everything looks fine. I’m not sure what’s causing the problem.
Reply
(2019-08-29, 18:43)RetardedGoat Wrote:
(2018-01-15, 17:16)Yorgos Wrote: RetardedGoat's driver seems to be broken with Kodi v.18 Leia's recent nightlies, starting with Nov 9 2017.  Hope someone can fix, C4 and Kodi work beautifully otherwise.

I've posted a bug report on the LibreElec site, will do so with Kodi bug tracker as well shortly.

https://forum.libreelec.tv/thread/11314-...er-loss-o/

Well. I’m stumped. There seems to be a bug in Leia. I send the packet. I see in the logs that kodi got the packet and successfully parsed it. But it still doesn’t work. At least not entirely. Some buttons work. But not others. It almost seems related to keys that are setup with the longpress mod.

I even pulled the kodi EventServer code from github. But everything looks fine. I’m not sure what’s causing the problem.  

I'm seeing the same thing. I think I also found where you opened an issue on the Kodi bug tracker and were told this is functioning as designed... It's hard to get my head around why they are making this so complicated. It looks like the C4 driver needs to track the state of the UI and send the appropriate command for the player state etc...

I have made a significant number of modifications and changes to your driver including combining the JSON and EventServer driver so the driver can get feedback from C4 for video playing for integration with lighting controls etc.. I have also added support for power on via IR command which is needed for certain platforms that don't support WOL. I have also re-packaged in the .c4z format and included decent looking icons. If you want to take a look at my revision and possibly collaborate on a Leia driver I would be interested. Either way I would be glad to share back the changes I have made.
Reply
  • 1
  • 10
  • 11
  • 12
  • 13(current)
  • 14

Logout Mark Read Team Forum Stats Members Help
New FREE Control4 Driver Available (JSON)3