Raspberry Pi Camera Setup - Motion detected movie creation (obsolete): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 17: | Line 17: | ||
=== Make the [[Pi]] take pictures === | === Make the [[Pi]] take pictures === | ||
Since <tt>/usr/lib/cgi-bin/</tt> is the default CGI-directory | Since <tt>/usr/lib/cgi-bin/</tt> is the default CGI-directory... | ||
* create a folder named <tt>webcam</tt>: | |||
cd /usr/lib/cgi-gbin | |||
mkdir webcam | |||
chown pi webcam | |||
* create this script named <tt>webcam.cgi</tt>:: | |||
#!/bin/bash | #!/bin/bash | ||
echo "Content-type: image/jpeg" | echo "Content-type: image/jpeg" |
Revision as of 11:22, 29 July 2013
This article describes the setup of the Raspberry Pi Camera with motion to take pictures on [1]motion.
Setup
Get package list
apt-get update
Update all packages
apt-get upgrade
Enable the camera
raspi-config
Then answer the following stupid questions ("really enable?" and "reboot now?"), and you're done.
Configuration
Now we've set up drivers, we need to verknuspel[2] the Raspi Cam with motion. That is a bit tricky, since motion does not support the Raspi Cam. But it supports webcams. So we need to convert our Raspi Cam into a webcam.
Make the Pi take pictures
Since /usr/lib/cgi-bin/ is the default CGI-directory...
- create a folder named webcam:
cd /usr/lib/cgi-gbin mkdir webcam chown pi webcam
- create this script named webcam.cgi::
#!/bin/bash echo "Content-type: image/jpeg" echo raspistill -t 0 -w 1024 -h 768 -o -
Get motion to check 'em
<TBD>
- Links
- Footnotes:
- ↑ guess what! :)
- ↑ yes, I just coined the term. I hope it will make it! More about verknuspel!