ni-c / heimcontrol.js

Home-Automation with node.js and Raspberry PI
MIT License
1.41k stars 297 forks source link

Disable Arduino #95

Closed kratostav closed 10 years ago

kratostav commented 10 years ago

How can i disable arduino? I want to use heimcontrol.js without an arduino connected.

awkwardterrain-com commented 10 years ago

You have to remove all the plugins that require the duino module from the plugins-folder:

 ~/heimcontrol.js/plugins $ grep -m1 -R "duino"
arduino/index.js:define([ 'duino' ], function(duino) {
arduino/public/js/arduino.js:   * Arduino RC button has been switched
arduino/public/css/arduino.css:.plugin-container.arduino.rcswitch:after {
arduino/views/item.jade:  div.plugin-container.arduino(class=item.method)
arduino/views/settings.jade:  h2 Arduino
piswitch/public/js/piswitch.js:   * Arduino RC button has been switched
piswitch/views/settings.jade:  p  <small>By default, Broadcom pin numbering is used. PiSwitch <em>should</em> be fully compatible with RC-Switch for Arduino, i.e., the same devices should work.</small>
rgblights/index.js:define([ 'duino' ], function(duino) {
rgblights/views/settings.jade:            label(for="pin") Arduino PINs:

Therefore arduino and rgblights.

Afterwards you can remove the duino package from the package.json in the main directory, and remove the duino folder from the node_modules folder. (But this shouldn't be necessary)

Edit: removed piswitch from removal list, as it can stay.

kratostav commented 10 years ago

thank you it works.