niall Posted October 29, 2015 Author Share Posted October 29, 2015 Nothing prevents you from using c4 soap. You just have to figure it all out and expect no c4 supportSent from my iPhone using Tapatalk Here was me thinking it was just us British who loved sarcasm :-) Link to comment Share on other sites More sharing options...
digitaltrader Posted October 29, 2015 Share Posted October 29, 2015 This is absolutely amazing!!!! Couple of additional questions: 1) How do I get OSX to autoload the script upon reboot?2) How do I get the Homebridge and Eve to update after adding additional accessories to the config.json? Link to comment Share on other sites More sharing options...
niall Posted October 29, 2015 Author Share Posted October 29, 2015 1) I think in OSX the recommended way is to use launchd - there is info here: http://launchd.info2) You just need to restart homebridge and the next time you open eve all the new accessories will be there Link to comment Share on other sites More sharing options...
digitaltrader Posted October 29, 2015 Share Posted October 29, 2015 1) I think in OSX the recommended way is to use launchd - there is info here: http://launchd.info2) You just need to restart homebridge and the next time you open eve all the new accessories will be there You've been extremely helpful and I have tried without success. If anyone else is running Homebridge from within OSX and is able to get it to boot upon startup please let me know as I would love this to survive a reboot. Link to comment Share on other sites More sharing options...
niall Posted October 29, 2015 Author Share Posted October 29, 2015 You've been extremely helpful and I have tried without success. If anyone else is running Homebridge from within OSX and is able to get it to boot upon startup please let me know as I would love this to survive a reboot. Thats a shame, maybe another way is to create a command file to run it.This is just a text file with a .command extension, like homebridge.command The contents would be#!/bin/shcd /full/path/to/homebridgenode app.js Then if you go to system preferences, users and groups, click on your user that logs in, then select startup items and click + and select your command file. If you have a user who automatically logs in, then it will start automatically. Other options might be to add the script to @reboot with cron. Link to comment Share on other sites More sharing options...
digitaltrader Posted October 29, 2015 Share Posted October 29, 2015 Thats a shame, maybe another way is to create a command file to run it.This is just a text file with a .command extension, like homebridge.command The contents would be#!/bin/shcd /full/path/to/homebridgenode app.js Then if you go to system preferences, users and groups, click on your user that logs in, then select startup items and click + and select your command file. If you have a user who automatically logs in, then it will start automatically. Other options might be to add the script to @reboot with cron. I appreciate the help. I made the command file but get the error: The file “homebridge.command” could not be executed because you do not have appropriate access privileges. upon rebooting the computer I am an admin on the computer and have looked at file permissions and have read/write access under my name Link to comment Share on other sites More sharing options...
digitaltrader Posted October 29, 2015 Share Posted October 29, 2015 Found the solution....I had to run the following command on the file: chmod u+x /path/to/file.command Link to comment Share on other sites More sharing options...
digitaltrader Posted October 29, 2015 Share Posted October 29, 2015 Can I ask if you have an Apple TV? If so thats the reason you can run it remotely. If you haven't then I'm unsure why it works remotely. For remote access this is all taken care of by Apple HomeKit, so it will be protected by the encryption and authentication it is using. Its only the local access between the HomeBridge software and the C4 Driver that is unencrypted. To me the issues are that someone would need to be:1) Connected to your network (you allowed them access via wifi or they connected via a cable)2) Break into your network (they gained access via some other method, at which point you are in more trouble than them doing what your C4 script allows)For both of these all they would be able to do would be to run the commands you had allowed via your C4 Script. So if its things like turning on and off lights etc, then to me its not the end of the world. If you added scripts to turn off your house alarm or change the heating to a massive level or disable power to your house, then thats asking for trouble. At the end of the day its what level of risk you are happy with. To be honest I'd like to see someone do a full security assessment of C4 devices on their own. Or to have some knowledge that C4 are doing their own pen testing. I have an Apple TV (2 of them 1st gen and 3rd gen) and the commands do not work remotely for me. Link to comment Share on other sites More sharing options...
control4user007 Posted October 29, 2015 Share Posted October 29, 2015 I have an Apple TV (2 of them 1st gen and 3rd gen) and the commands do not work remotely for me. Hmmm...just tried it again and it is working for me. A few things that come to mind that might be preventing it: 1) Are you on the latest SW for both ATV's ? iOS 9 on your iDevice?2) What iOS app are you using (Im using Eve)?3) Does your router support UPNP/its enabled?4) Are you signed into iCloud on either ATV? Link to comment Share on other sites More sharing options...
digitaltrader Posted October 29, 2015 Share Posted October 29, 2015 Im signed into my icloud account but also itunes account with a different email....that may make a difference according to another post on a different forum. IOS 9.2 may be a fix for this. My router is not UPNP as its a business class cisco router Yes to all the rest Link to comment Share on other sites More sharing options...
Gene Posted October 30, 2015 Share Posted October 30, 2015 Within setting on iOS---->Homekit---->Homes Name---->Toggle Remote On/Off. Link to comment Share on other sites More sharing options...
C4AA Posted October 30, 2015 Share Posted October 30, 2015 Just curious - to make this work with everything included what is the cost all in? Thx Link to comment Share on other sites More sharing options...
niall Posted October 30, 2015 Author Share Posted October 30, 2015 Just curious - to make this work with everything included what is the cost all in? Thx If you have a computer running all the time its free.Otherwise if you get a raspberry pi to add to the network its probably about $30 all in. Link to comment Share on other sites More sharing options...
C4AA Posted October 30, 2015 Share Posted October 30, 2015 But in the write up its mentioned that you are using Eve from Elegato how much is that? Link to comment Share on other sites More sharing options...
niall Posted October 30, 2015 Author Share Posted October 30, 2015 Its just an app, and its free :-) Link to comment Share on other sites More sharing options...
C4AA Posted October 30, 2015 Share Posted October 30, 2015 Ok. Thanks. I googled it and saw that it was hardware related. Sorry about that. So, to make it simple to make this all work you need HomeKit ->Bridge (Raspberry Pi) - C4...correct? Link to comment Share on other sites More sharing options...
Gene Posted October 30, 2015 Share Posted October 30, 2015 Yes, all free except for the Raspberry Pi (Driver for C4 needs installed but driver is free download...just FYI). Link to comment Share on other sites More sharing options...
ILoveC4 Posted November 1, 2015 Share Posted November 1, 2015 On 10/28/2015 at 10:27 AM, drivertutorial said: I've got a feeling this is going to be of some interest to people here. I spent a couple of hours this morning getting this integrated with my system and now I feel like my apple watch is amazing. Its fairly simple to setup, all you need is a computer of some sort (raspberry pi is perfect) to run a bridge between the HomeKit and Control4. If anyone is interested I documented the whole process here: https://c4drivers.wordpress.com/2015/10/28/homekit-for-control4/ I'm following your tutorial. I'm doing this on a Windows 7 machine. I've got Node.js installed. I've downloaded homekit and Git. When I run the command prompt for NPM Install, I get the following (see attached screenshot). Any ideas what I might be doing wrong here? It says it cannot find the package.json file, but I can assure you it is there. Link to comment Share on other sites More sharing options...
cdepaola Posted November 1, 2015 Share Posted November 1, 2015 Same issue I'm having on Win10Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
niall Posted November 1, 2015 Author Share Posted November 1, 2015 I'm following your tutorial. I'm doing this on a Windows 7 machine. I've got Node.js installed. I've downloaded homekit and Git. When I run the command prompt for NPM Install, I get the following (see attached screenshot). Any ideas what I might be doing wrong here? It says it cannot find the package.json file, but I can assure you it is there.Are you running this from inside the homebridge directory? what do you get when you enterdirsend over the output from that. Link to comment Share on other sites More sharing options...
niall Posted November 1, 2015 Author Share Posted November 1, 2015 Are you running this from inside the homebridge directory? what do you get when you enterdirsend over the output from that.Sorry just re-read that it is in the directory where you are running npm install.If thats the case then try closing your cmd prompt and opening it again.If you only installed git etc while it was open then the path will be wrong, opening and closing the cmd will sort this. Link to comment Share on other sites More sharing options...
ILoveC4 Posted November 2, 2015 Share Posted November 2, 2015 On 11/1/2015 at 9:27 AM, drivertutorial said: Sorry just re-read that it is in the directory where you are running npm install. If thats the case then try closing your cmd prompt and opening it again. If you only installed git etc while it was open then the path will be wrong, opening and closing the cmd will sort this. Same thing. Exact same thing happened after opening/closing CMD. I tried "npm install package.json" and also "npm install app". You can see all the various outputs in the screenshot attached. The top of the very first "npm install" is a little cut off, but it's the exact same as before. Link to comment Share on other sites More sharing options...
ILoveC4 Posted November 2, 2015 Share Posted November 2, 2015 In the off chance that what I tried actually worked, I tried the node app.js, and got the attached error. I'm really at a loss here. I appreciate all the help, but I can't figure out what I'm missing. Link to comment Share on other sites More sharing options...
Gene Posted November 2, 2015 Share Posted November 2, 2015 I had issues with Win 7 and the same thing so resorted to the $50 raspberry pi. Just a thought: Did you run Git and then run Git as Administrator...then navigate to dir and install? Link to comment Share on other sites More sharing options...
ILoveC4 Posted November 2, 2015 Share Posted November 2, 2015 yes sir. If I could repurpose the HC1000 to do this then I would. I dont really want to invest in new hardware for a hack that might break soon. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.