lucavb / homebridge-magic-blue-bulb

MagicBlue LED Lightbulb Plugin
GNU General Public License v3.0
8 stars 11 forks source link

installation homebridge-magic-blue-bulb raspberry #1

Closed ragnar-homekit closed 6 years ago

ragnar-homekit commented 7 years ago

hello you can kindly help to install the plugin of raspberry?

lucavb commented 7 years ago

could you elaborate more on what is unclear about the README I provided?

ragnar-homekit commented 7 years ago

how do I install the plugin since it is not registered on npm? in Readme it is not explained how to install it.

you can know the procedure to follow to install the plugin?

lucavb commented 7 years ago

I have updated the README with a reference to my other project regarding the installation of plugins outside of npm.

ragnar-homekit commented 7 years ago

Also by running the following command, does not recognize the plugin, how do I fix?

lucavb commented 7 years ago

What command are you talking about?

ragnar-homekit commented 7 years ago

[2017-03-07 14:38:55] ==================== [2017-03-07 14:38:55] ERROR LOADING PLUGIN homebridge-magic-blue-bulb: [2017-03-07 14:38:55] Error: Cannot find module 'noble' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/home/osmc/.homebridge/plugin/homebridge-magic-blue-bulb/index.js:4:13) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3)

lucavb commented 7 years ago

run npm i inside the folder where you downloaded the plugin. you are missing the noble dependency.

ragnar-homekit commented 7 years ago

in Homebridge folder or where I put magic-blue-bulb?

lucavb commented 7 years ago

well the directory where you cloned this repository to. if you followed this guide this is most likely going to be /var/homebridge/other_plugins/homebridge-magic-blue-bulb/

ragnar-homekit commented 7 years ago

npm I gave no results, I managed manually installing noble, it is now recognized the plugin. I wanted to ask if you first have to associate the light bulb to the raspberry and then use it with Homebridge, or happens all automatically?

lucavb commented 7 years ago

there is no pairing process. it should work with just the Mac address and considering that the bulb is not already connected to any other device

ragnar-homekit commented 7 years ago

I've done everything correctly, only that the bulb does not respond you command

lucavb commented 7 years ago

Consider the original post, that discovered the codes for the bulbs. Read through it, especially the part where he uses gatttool to test his codes. Make sure those work for you. There is the possibility that you are having a different version that utilises a different handle.

original post

P.S.: this project is now also available via npmjs registry.