New FREE Control4 Driver Available (JSON) - Printable Version
+- Kodi Community Forum (http://forum.kodi.tv)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+--- Thread: New FREE Control4 Driver Available (JSON) (/showthread.php?tid=128714)
New FREE Control4 Driver Available (JSON) - brandonj - 2012-04-12 23:43
I would like to announce the first release of a new Control4 XBMC driver for Eden, which uses JSON-RPC:
I know there are other projects out there that have tried to accomplish the same thing, but they either didn't do what I wanted, or are no longer free. So I started development of my own driver, and this is the result, and I am releasing it free for everyone to use.
I hope you control4 users out there find it useful, and if you would like to contribute to the further development of the driver, it would be very much welcomed.
There are a few minor issues that are currently known, but please report any issues on the github page, and I will try and fix them right away.
Basic navigation/playback is supported, with more features coming as quickly as possible. There are some commands that are not yet available in the JSON interface, so I use the HTTP interface for those instead. When they become available in the JSON interface, I will move them over.
RE: New FREE Control4 Driver Available (JSON) - ajburnet - 2012-04-14 09:50
This is great news and will be fantastic - many thanks for sharing!
I tried to add it to Composer Pro (v2.2) however it crashes and exits every time I try!
Have you come across this at all?
RE: New FREE Control4 Driver Available (JSON) - brandonj - 2012-04-16 19:17
(2012-04-14 09:50)ajburnet Wrote: I tried to add it to Composer Pro (v2.2) however it crashes and exits every time I try!
I have not seen it, but I can look in to it. Do you happen to have the exact build number of your C4 system? (e.g. 2.2.0.xxxxxx)
Also, if you see anything in any logs that is relevant, that would help as well.
I'll let you know what I find.
RE: New FREE Control4 Driver Available (JSON) - ajburnet - 2012-04-17 10:47
I'm on build 18.104.22.168343.
Error log extract below:
Message: Object reference not set to an instance of an object.
at Control4.Client.ConfigDataManager.UpdateConfigInfo(String fileName, Boolean forceOverwrite)
at Control4.Designer.DesignerForm.OnDriverAdd(Command cmd)
at Control4.Designer.MenuItemExecutor.menuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.Command.DispatchID(Int32 id)
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
RE: New FREE Control4 Driver Available (JSON) - brandonj - 2012-04-17 20:29
I just tested the driver on a clean project with the same build number and didn't have any issues.
The message you are getting looks like it is trying to update the composer config file and fails.
Can you PM me the contents of this log file:
Reinstalling Composer may fix the problem as well, if you want to try that.
RE: New FREE Control4 Driver Available (JSON) - mrjosborn - 2012-04-17 23:26
I tried adding to the same version/build of composer and received the same crash error as Alex. I checked the composer.log and debugged a few html format errors (below), however even when i manage to get composer to load error free i am unable to find the driver, when trying to "add driver" it does not crash anymore but still cannot find it?? Any ideas.
2012-04-17 22:25:16,829  ERROR Control4.Client.ConfigDataManager - Error opening C:\Users\James Osborn\Documents\Control4\Drivers\XBMC-JSON-EDEN.c4i
Message: The 'link' start tag on line 28 does not match the end tag of 'head'. Line 39, position 5.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String args)
at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)
at Control4.Client.ConfigDataManager.GetConfigFileInfoWithWarningsXML(String file, Boolean& hadProblemsLoading, Boolean xmlStream, String configXml)
2012-04-17 22:25:16,842  WARN Control4.Client.ConfigDataManager - Unable to open C:\Users\James Osborn\Documents\Control4\Drivers\XBMC-JSON-EDEN.c4i
RE: New FREE Control4 Driver Available (JSON) - mrjosborn - 2012-04-17 23:50
Ah ok... when i went to this page - https://github.com/RDX/Drivers/blob/master/README.md and downloaded the zip file it had the correct driver.
Now to have a play, thanks Brandon.
RE: New FREE Control4 Driver Available (JSON) - brandonj - 2012-04-18 18:05
(2012-04-17 23:50)mrjosborn Wrote: Ah ok... when i went to this page - https://github.com/RDX/Drivers/blob/master/README.md and downloaded the zip file it had the correct driver.
I wonder if that's the same problem that ajburnet is having. Alex, can you try downloading from the zip file instead and see if you get any better result?
RE: New FREE Control4 Driver Available (JSON) - ajburnet - 2012-04-19 00:20
Looks like my first attenpt to add the deiver uploaded a corrupted file. Manually removed and re-added and all is well! Does the driver import media into C4 - or is that next on the to do list?
RE: New FREE Control4 Driver Available (JSON) - brandonj - 2012-04-19 18:58
(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.
RE: New FREE Control4 Driver Available (JSON) - Craig P - 2012-04-20 18:32
nice work, PM me if you want sections of my XBMC driver, I have a whole bunch of power management like using a relay to power the system on or off or using Wake-On-Lan, etc...
RE: New FREE Control4 Driver Available (JSON) - penfolds - 2012-04-21 05:28
(2012-04-20 18:32)Craig P Wrote: Hey Guys
The driver posted here does not appear to allow media scanned into C4 to play (unless I have the wrong version)
Craig, The version of your driver I have is great (allows media playback), but it does not allow xbmc menu navigation. Have you updated this? Would you share your latest driver?
RE: New FREE Control4 Driver Available (JSON) - Craig P - 2012-04-21 15:28
I have done a little work, i was waiting for XBMC to move all (like context menu, etc) of the commands to the new JSON stuff (which i see is happening now).
i was also waiting for C4 to finish their new media proxy so that C4 can import the movie info from XBMC rather than C4 scanning a folder.
My driver might not load into Composer as i was playing around with it but you can copy and paste some code out of there. I use the WakeOnLan stuff every day with another driver i have...
RE: New FREE Control4 Driver Available (JSON) - penfolds - 2012-04-21 23:29
Thanks Craig, I'll give it a go..
I wasn't aware of the new media proxy, sounds interesting...
Is a driver works version released per composer pro version?
RE: New FREE Control4 Driver Available (JSON) - penfolds - 2012-04-22 00:30
Brandon, just an FYI - Your driver seems to crash (link light goes off and loose composer pro access) the controller when I delete the driver. When composer re-established a link to the controller the driver is still there. Tried about 5 times and even removed the "connection" to TV first, but still crashes. Not sure if it is just particular to my environment or not.