ni-c / heimcontrol.js

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

Node keeps quitting #72

Open estock opened 10 years ago

estock commented 10 years ago

I set this up, turn on a light and leave it on over night ... when I wake up in the morning something has gone wrong, it seems as if node has failed or something. Is this a common behavior? has anyone gotten this to run for a long period of time?

Opulence commented 10 years ago

Mine runs smoothly, however ive modified the code drastically. Does it leave an error message when it crashes? Alternatively, the not so elegant solution could be to use supervisor for node. Supervisor watches node.js applications and on the event of a failure or program end, it reboots the application.

tjanson commented 10 years ago

Mine runs for weeks at a time without crashes generally. I only use the RC functionality, not GPIO or anything, though. Feel free to post the output of any crash though, maybe we can track down some bugs.