ni-c / heimcontrol.js

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

Raspicam #66

Open p33k opened 10 years ago

p33k commented 10 years ago

Is there any chance to setup raspicam to work with heimcontrol.js? I want to set it up with streamer but it doens't work.

Opulence commented 10 years ago

yeah, it is possible. You'll need to modify the Webcam plugin appropriately to use Raspbicam. ...from my understanding images are captured by streamer and sent to the client using delivery. Why Raspbicam over streamer? I'm sure streamer supports PiCamera and multiple variations of webcams. ...But if you do decide to modify your Webcam plugin, use Raspbicam on timelapse. Each time an image is saved, simply push that image to the client via delivery then perform the neccesary cleanup operation if required. ...just a suggestion. I've only briefly looked over the heimcontrol code, but what you're asking for is possible. ...from your knowledge of Raspbicam and the examples provided, it should be super simple.