Skip to content

Instantly share code, notes, and snippets.

@daryllukas
Created March 31, 2014 13:45
Show Gist options
  • Save daryllukas/9892555 to your computer and use it in GitHub Desktop.
Save daryllukas/9892555 to your computer and use it in GitHub Desktop.
Crop Pest Monitoring/Detection
# Title
Crop Pest Monitoring/Detection
# Picture
media: http://www.deviantsart.com/2dllqr2.jpg
# Objective
A automated pest monitoring system using a webcam and a Raspberry Pi
# Duration
1 Day
# Age Group
all
# Materials
## Raspberry Pi Kit
* description:Contains the Pi board, SD Card (Pre-loaded with operating system + software and development tools), Wi-Fi dongle, keyboard, mouse, USB hub, HDMI cable, Charger
* quantity:1
* price:£74.99
* link:http://www.maplin.co.uk/p/raspberry-pi-board-and-starter-kit-r45pi
## Webcam
* description:Any linux compatible webcam will do
* quantity:1
* price:undefined
* link:undefined
## Cardboard
* description:undefined
* quantity:undefined
* price:undefined
* link:undefined
# Steps
## Connect the Raspberry Pi
media: http://www.deviantsart.com/8bj6v3.jpg
notes: Raspberry Pi kit should come already installed with Raspbian OS and all the components you'll need including a Wi-Fi dongle, Charger, Keyboard + Mouse, SD Card etc
## Check Python version
media: http://www.deviantsart.com/3ajdb3u.png
notes: Check if Python is installed. Open the linux terminal (from Applications) and type in the following code: python --version
## Install pip
media: http://www.deviantsart.com/3pctaf.png
notes: Enter the following command in the terminal and follow the instructions that come after: sudo apt-get install python-pip.\npip is a tool used for installing the Packages/Modules which will be used in this project.
## Install the DropBox SDK
media: http://www.deviantsart.com/rjjegn.png
notes: Enter the following code in the terminal: sudo pip install dropbox
## Register on the DropBox developers site
media: http://www.deviantsart.com/2cgud4i.png
notes: Visit https://www.dropbox.com/developers/apps/create and register your project. You must create a DropBox API app that uses Files and datastores and has a private folder. See screenshot
## Program the Pi
media: http://www.deviantsart.com/2ikvvkf.png
notes: Download/Copy this python script onto your Raspberry Pi https://gist.github.com/daryllukas/9892429. You may rename the file to anything you like. Place it in the home folder so it's easy to find. Open the code and edit lines 9 and 10 to add you DropBox API credentials. Also, edit the last line (line 58) to change how frequent the Pi takes pictures.
## Test the program
media: http://www.deviantsart.com/2e8mok8.png
notes: Run the following command: python nameofyourscript.py
Follow the instruction that follow. When you are done authorizing the app on Dropbox.com, the webcam will start taking pictures at the frequency specified in your code.
# Notes
undefined
{"id":"9892555","user":"daryllukas","description":"Crop Pest Monitoring/Detection","urls":["http://www.deviantsart.com/2dllqr2.jpg","undefined","undefined","undefined","undefined","http://www.deviantsart.com/1njoqqg.png","undefined"],"raw":"# Title \nCrop Pest Monitoring/Detection\n# Picture \nmedia: http://www.deviantsart.com/2dllqr2.jpg\n# Objective\nA automated pest monitoring system using a webcam and a Raspberry Pi\n# Duration\n1 Day\n# Age Group\nall\n# Materials\n## Raspberry Pi Kit\n* description:Contains the Pi board, SD Card (Pre-loaded with operating system + software and development tools), Wi-Fi dongle, keyboard, mouse, USB hub, HDMI cable, Charger\n* quantity:1\n* price:£74.99\n* link:http://www.maplin.co.uk/p/raspberry-pi-board-and-starter-kit-r45pi\n\n## Webcam\n* description:Any linux compatible webcam will do\n* quantity:1\n* price:undefined\n* link:undefined\n\n## Cardboard\n* description:undefined\n* quantity:undefined\n* price:undefined\n* link:undefined\n\n# Steps\n## Connect the Raspberry Pi\nmedia: undefined\n\nnotes: Raspberry Pi kit should come already installed with Raspbian OS and all the components you'll need including a Wi-Fi dongle, Charger, Keyboard + Mouse, SD Card etc\n\n## Check Python version\nmedia: undefined\n\nnotes: Check if Python is installed. Open the linux terminal (from Applications) and type in the following code: python --version\n\n## Install pip\nmedia: undefined\n\nnotes: Enter the following command in the terminal and follow the instructions that come after: sudo apt-get install python-pip.\\npip is a tool used for installing the Packages/Modules which will be used in this project.\n\n## Install the DropBox SDK\nmedia: undefined\n\nnotes: Enter the following code in the terminal: sudo pip install dropbox\n\n## Register on the DropBox Developers\nmedia: http://www.deviantsart.com/1njoqqg.png\n\nnotes: Visit https://www.dropbox.com/developers/apps/create and register your project. You must create a DropBox API app that uses Files and datastores and has a private folder. See screenshot\n\n## Program the Pi\nmedia: undefined\n\nnotes: Download/Copy this python script onto your Raspberry Pi https://gist.github.com/daryllukas/9892429. You may rename the file to anything you like. Open the code and edit lines 9 and 10 to add you DropBox API credentials. Also, edit the last line (line 58) to change how frequent the Pi takes pictures.\n\n# Notes\nundefined\n","steps":[{"description":"Connect the Raspberry Pi","$$hashKey":"00V","notes":"Raspberry Pi kit should come already installed with Raspbian OS and all the components you'll need including a Wi-Fi dongle, Charger, Keyboard + Mouse, SD Card etc","picture":"http://www.deviantsart.com/8bj6v3.jpg","media":"http://www.deviantsart.com/8bj6v3.jpg"},{"$$hashKey":"012","description":"Check Python version","notes":"Check if Python is installed. Open the linux terminal (from Applications) and type in the following code: python --version","picture":"http://www.deviantsart.com/3ajdb3u.png","media":"http://www.deviantsart.com/3ajdb3u.png"},{"$$hashKey":"015","description":"Install pip","notes":"Enter the following command in the terminal and follow the instructions that come after: sudo apt-get install python-pip.\\npip is a tool used for installing the Packages/Modules which will be used in this project.","picture":"http://www.deviantsart.com/3pctaf.png","media":"http://www.deviantsart.com/3pctaf.png"},{"$$hashKey":"018","description":"Install the DropBox SDK","notes":"Enter the following code in the terminal: sudo pip install dropbox","picture":"http://www.deviantsart.com/rjjegn.png","media":"http://www.deviantsart.com/rjjegn.png"},{"$$hashKey":"01E","description":"Register on the DropBox developers site","notes":"Visit https://www.dropbox.com/developers/apps/create and register your project. You must create a DropBox API app that uses Files and datastores and has a private folder. See screenshot","picture":"http://www.deviantsart.com/2cgud4i.png","media":"http://www.deviantsart.com/2cgud4i.png"},{"$$hashKey":"03G","description":"Program the Pi","notes":"Download/Copy this python script onto your Raspberry Pi https://gist.github.com/daryllukas/9892429. You may rename the file to anything you like. Place it in the home folder so it's easy to find. Open the code and edit lines 9 and 10 to add you DropBox API credentials. Also, edit the last line (line 58) to change how frequent the Pi takes pictures.","picture":"http://www.deviantsart.com/2ikvvkf.png","media":"http://www.deviantsart.com/2ikvvkf.png"},{"$$hashKey":"01P","description":"Test the program","notes":"Run the following command: python nameofyourscript.py\nFollow the instruction that follow. When you are done authorizing the app on Dropbox.com, the webcam will start taking pictures at the frequency specified in your code.","picture":"http://www.deviantsart.com/2e8mok8.png","media":"http://www.deviantsart.com/2e8mok8.png"}],"materials":[{"item":"Raspberry Pi Kit","description":"Contains the Pi board, SD Card (Pre-loaded with operating system + software and development tools), Wi-Fi dongle, keyboard, mouse, USB hub, HDMI cable, Charger","quantity":"1","price":"£74.99","link":"http://www.maplin.co.uk/p/raspberry-pi-board-and-starter-kit-r45pi","$$hashKey":"00T"},{"$$hashKey":"00Y","item":"Webcam","quantity":"1","description":"Any linux compatible webcam will do"},{"$$hashKey":"010","item":"Cardboard"}],"title":"Crop Pest Monitoring/Detection","picture":"http://www.deviantsart.com/2dllqr2.jpg","media":"http://www.deviantsart.com/2dllqr2.jpg","objective":"A automated pest monitoring system using a webcam and a Raspberry Pi","duration":"1 Day","ageGroup":"all","content":"<h1>Title</h1>\n\n<p>Crop Pest Monitoring/Detection</p>\n\n<h1>Picture</h1>\n\n<p><img src='https://www.deviantsart.com/2dllqr2.jpg'></p>\n\n<h1>Objective</h1>\n\n<p>A automated pest monitoring system using a webcam and a Raspberry Pi</p>\n\n<h1>Duration</h1>\n\n<p>1 Day</p>\n\n<h1>Age Group</h1>\n\n<p>all</p>\n\n<h1>Materials</h1>\n\n<h2>Raspberry Pi Kit</h2>\n\n<ul>\n<li>description:Contains the Pi board, SD Card (Pre-loaded with operating system + software and development tools), Wi-Fi dongle, keyboard, mouse, USB hub, HDMI cable, Charger</li>\n<li>quantity:1</li>\n<li>price:£74.99</li>\n<li>link:<a href=\"http://www.maplin.co.uk/p/raspberry-pi-board-and-starter-kit-r45pi\">http://www.maplin.co.uk/p/raspberry-pi-board-and-starter-kit-r45pi</a></li>\n</ul>\n\n<h2>Webcam</h2>\n\n<ul>\n<li>description:Any linux compatible webcam will do</li>\n<li>quantity:1</li>\n<li>price:undefined</li>\n<li>link:undefined</li>\n</ul>\n\n<h2>Cardboard</h2>\n\n<ul>\n<li>description:undefined</li>\n<li>quantity:undefined</li>\n<li>price:undefined</li>\n<li>link:undefined</li>\n</ul>\n\n<h1>Steps</h1>\n\n<h2>Connect the Raspberry Pi</h2>\n\n<p><img src='undefined'></p>\n\n<p>notes: Raspberry Pi kit should come already installed with Raspbian OS and all the components you'll need including a Wi-Fi dongle, Charger, Keyboard + Mouse, SD Card etc</p>\n\n<h2>Check Python version</h2>\n\n<p><img src='undefined'></p>\n\n<p>notes: Check if Python is installed. Open the linux terminal (from Applications) and type in the following code: python --version</p>\n\n<h2>Install pip</h2>\n\n<p><img src='undefined'></p>\n\n<p>notes: Enter the following command in the terminal and follow the instructions that come after: sudo apt-get install python-pip.\\npip is a tool used for installing the Packages/Modules which will be used in this project.</p>\n\n<h2>Install the DropBox SDK</h2>\n\n<p><img src='undefined'></p>\n\n<p>notes: Enter the following code in the terminal: sudo pip install dropbox</p>\n\n<h2>Register on the DropBox developers site</h2>\n\n<p><img src='https://www.deviantsart.com/1njoqqg.png'></p>\n\n<p>notes: Visit <a href=\"https://www.dropbox.com/developers/apps/create\">https://www.dropbox.com/developers/apps/create</a> and register your project. You must create a DropBox API app that uses Files and datastores and has a private folder. See screenshot</p>\n\n<h2>Program the Pi</h2>\n\n<p><img src='undefined'></p>\n\n<p>notes: Download/Copy this python script onto your Raspberry Pi <a href=\"https://gist.github.com/daryllukas/9892429\">https://gist.github.com/daryllukas/9892429</a>. You may rename the file to anything you like. Open the code and edit lines 9 and 10 to add you DropBox API credentials. Also, edit the last line (line 58) to change how frequent the Pi takes pictures.</p>\n\n<h1>Notes</h1>\n\n<p>undefined</p>","ownedByMe":"true"}
@Zichri-creator
Copy link

is this working anyone who had tried this project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment