First lets start with with creating the Python Script to Upload to Dropbox automatically. One to upload the Movie files and another to clear the temp directory from time to time. Now we just need to create 2 Python Scripts. if you cannot yet, we will correct that in the next step. 1) Install Motion using the following commands: sudo apt-get update sudo apt-get upgrade sudo apt-get install motion 2) Now lets setup the Motion Software, the following will open the configuration file: sudo nano /etc/motion/nf a) In this file, you can adjust a whole bunch of things in the motion software but there are a few things that we need to change first daemon - default is set to OFF, we need to set it to ON so that it will run in the background webcam_localhost - Set to OFF so that you can access the stream from other computers stream_port - Take note of the port as this is where you will point your browser to view the stream control_localhost - Set to OFF as this will allow you to adjust some of the features remotely (I dont use this but it could be useful) control_port - Take note of this port as it will be how you can change some parameters remotely in your web browser framerate - I set this to 2 or 3 frames per second (over 5 will bog down your Pi) b) We also need to change one last setting: sudo nano /etc/default/motion change " start_motion_daemon=no" to " start_motion_daemon=yes" Now if you start the Motion software, in some browsers you will be able to view the stream. Now lets install the Motion Software onto the Raspberry Pi.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |