ni-c / heimcontrol.js

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

Great stuff! How do I program my Arduino on startup? #28

Closed bedfordsean closed 10 years ago

bedfordsean commented 10 years ago

Great project guys! I've just got this up and running with the Arduino Uno using rcswitch!

One question: When I reboot my pi, I've gotten heimcontrol set to run as a service on startup. Do you know if it's possible to programatically build and upload the du.ino file as well?

I've tried using arduino-mk with no success (missing dependencies) - the only way I've been able to get du.ino to compile and upload is from the full blown Arduino IDE. Any help would be appreciated!

ConnorRoberts commented 10 years ago

Why do you need to re-upload it each time?

The Arduino should hold the du.ino code even after it has been rebooted

bedfordsean commented 10 years ago

You're right! For some reason things went wrong during getting it all set up and my Arduino seemed to have lost the du.ino code. I've just tried it again though and it seems to still work. No need to reprogram each time then.

Next stop, getting things set up to turn off/on on a timer!

Closing this issue since it isn't an issue...