-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When can we see nodejs 6.6 compatability? #59
Comments
I am having the same issue. @KraigM is there planned node 6 compatibility. I am using it in a freenas jail and its a bit complicated to downgrade node. |
I am pretty certain this plugin is abandoned. I have a fork I started playing with but I don't know how to make it node 6.6 compatible. |
I will gladly except any pull requests. Other then @pdlove I have only seen one other pull request. My stuff is working with the setup I have but I really only use it for my lock atm. |
@KraigM I appreciate you releasing this homebridge plugin. It had made my wink setup usable. Is it difficult to update compatibility to node6? Does it take a full re-write? |
Is everyone talking about this issue;
Once you install homebridge-wink, open up homebridge-wink/node_modules/wink-js/index.js and find this line and comment out these lines;
I have it working on Node 6.6 now. |
mriksman - How do i update now to node 6.6? I went to go run the latest command it is bumped now to 7.0.0. I am running into some other issues with 7.0.0 |
@mriksman I just tried commenting out those lines (I assume you meant to include the close curly brace as well), and I still get exactly the same error. This is particularly problematic since the homebridge installation instructions (at least for Raspberry Pi) now target the latest version of node.js. So it seems like the homebridge-wink plugin simply doesn't work at all if you've followed the latest homebridge installation instructions. |
Yup; edited comment above. I also have this line commented at the top, but I wouldn't have thought it would have impacted the result... I am currently running 6.6 (needed for the homebridge-foscamcamera) and homebridge-wink starts up fine and starts as a service no problems. Is it definitely the same problem; does it mention |
I have commented out what you suggested above in both posts and this is what i get ERROR LOADING PLUGIN homebridge-wink: |
You've screwed something up... line 132, 133, 134 and 135 should be commented. You have a syntax error on line 126. Check what you've commented out, or attach your index.js file here. Here is mine; |
just imported your index.js and this is the error i get now... [11/5/2016, 6:29:30 PM] ERROR LOADING PLUGIN homebridge-wink: |
SUCCESS!!!!!! My issues revolved around security rights when loading node 6.6. Once i did that and reloaded all of the homebridge-modules.. and then commented out what you said exactly... it now works! |
Nice one! I wish I knew how to 'pull request' and all that jazz, but it's out of my league. I just got lucky with this one. Hope other people get help out of this. |
Update: this really looks like the wrong way to solve things, since I changed the very old version of config-file that is used by homebridge-wink, but it works for me .. Ok, took an hour or so, but this works for me. (node v6.91, npm 4.0.1, macOS) Seems like the config loading cant properly find a package.json. You can just "touch package.json" in the directory where you are launching homebridge manually (or actually make a proper package.json). Since I am loading using launchctl on macOS, I needed to do the following: Edit line 16 in /usr/local/lib/node_modules/homebridge-wink/node_modules/config-file/index.js: Change: To: |
Commenting out 'var config = require('config-file');' got the job done. Odd that it doesn't seem to even need that module. |
When I comment out var config = require('config-file'); the Wink plugin loads but I get the following error: SyntaxError: Unexpected end of JSON input TypeError: Cannot read property 'data' of undefined |
@scoobyshi has a pull request for @winfinit that fixes the nodejs > 5 compatibility issue (which is really related to the way that Instead of trying to hand-apply the changes you can install them directly with npm. To do this navigate into From there most people would need to use sudo to install... You should see output that looks like this:
And you're done. Homebrige should now be able start without the 'TypeError: Path must be a string. Received null' error. Right now I'm running nodejs v6.9.5. |
Hi there, I did as you suggested and i get the following error. I'm also on node 6.9.5 and used the node_modules/homebridge-wink/ directory. I get the following error. Thoughts? Avahi. TypeError: Cannot read property 'indexOf' of undefined |
I also get the same error @sats4eva... if anyone knows a fix LMK. Running node 6.6 on a Raspberry Pi. *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi. TypeError: Cannot read property 'indexOf' of undefined |
@tomboates @sats4eva , if you look at https://github.com/nfarina/homebridge/blob/master/lib/api.js#L106 (for example), it mentions what the check is trying to do:
What do you have configured in the "platforms" section of your config.json (don't include snippets with secrets obviously)? I don't think there were any recent changes to homebridge that would cause an issue, did this work previously? |
Sorry @scoobyshi, I didn't get notified you responded. To be upfront, I'm no developer... more of a hobbyist. I had my whole home set up fine for a while, but over time I'd hit bugs that would stop homebridge and I'd have to start it again in order for anything to work which sucked. When I finally sat down to fix things, the most glaring issue was that I had the homebridge-liftmaster integration and many were reporting it wasn't working and to use the homebridge-chamberlain one instead. Aftewr correcting that I kept pulling the threads of all the errors I was experiencing and found myself here. Would love to get Wink integration up and running as I have 2 Aros window A/Cs and would love to turn them on/off via phone. Also, August now works with wink so I'm hoping to find ways to get that in there as well. Below is what is in my "platforms" JSON (minus secrets and keys)... the wink part has worked before updating my version of node to 6.6:
|
hmmm having trouble getting that right and editing it... assume that the above has a |
and I also may have just answered my own question... I see the Chamberlain is an accessory not a platform... facepalm |
Alot of other homebridge-plugins are now updating to nodejs 6.6.0. I am now having to pick and choose what I can load in homebridge due to this plugin only working with v4.2.6. Any chance we can have an update? Or can someone outline the steps to upgrade to v.6.6.0 with a working homebridge-wink plugin?
thanks
The text was updated successfully, but these errors were encountered: