ni-c / heimcontrol.js

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

Heimcontrol and duino version #37

Open ewidance opened 10 years ago

ewidance commented 10 years ago

Duino has been updated by it's author (https://github.com/ecto/duino ), allowing to specify device name (not necessary ttyACMxxx). This could help with mini arduino (without serial) and some special serial adapters.

On my setup, I updated duino with the latest version, but I had to make some modification to make it works.

In plugins/arduino/index.js i've replaced this.board = new duino.Board();

With this.board = new duino.Board({ device: "ACM" });

Same modification had to be done in plugins/rgblights/index.js .

With the latest duino version, it is also possible to change the communication baud rate with the arduino. Of course, this has to be done in the arduino app.

In that cas, init have to be changed to :+1: this.board = new duino.Board({ baudrate: 9600", device: "ACM" });

Hope that will help.