I've been working on using a raspberry pi with an xbox live camera installed using motion.
Im also using it to control 4 relays for powering lights, and such.
it also has temp and humidity monitoring and logging.
I found a great website
http://www.raspiviv.com
Its not exactly setup for a single enclosure, there will be issues if using it exactly as designed, and not using all temps sensors.
i've modified some of the pages to do things like logging temp in f instead of c.
to display the webcam in a "pre-designed" web page....
the raspberry pi 2, its powerful enough, but there almost isnt enough bandwidth.
In all, i have
29.99 = raspberry pi 2 model b
free.99 = xbox live cam
4.00 = 4 relay module
6.00 = 3 dht22 temp humidity sensors
12.00 = wifi dongle
15.00 = various other stuff's
im working on adding a touch screen display or a 16 x 2 segmented display for temp and humidity live display.....
but all that is overkill for just live webcam.....:-"