Raspberry Pi WebCam with 3G (Solarcam): Difference between revisions
Jump to navigation
Jump to search
(→Tips) |
|||
Line 19: | Line 19: | ||
=== Scripts === | === Scripts === | ||
==== Scripts running on the [[Pi]] ==== | |||
==== Script: Take picture every minute ==== | ==== Script: Take picture every minute ==== | ||
Add this to crontab: | Add this to crontab: | ||
Line 24: | Line 25: | ||
Add a file named <tt>takePicture.sh</tt> to <tt>~/Development/webcam/</tt> with this contents: | Add a file named <tt>takePicture.sh</tt> to <tt>~/Development/webcam/</tt> with this contents: | ||
TBD TBD TBD | TBD TBD TBD | ||
==== Scripts running on the web server ==== | |||
tbd | |||
=== Tips === | === Tips === |
Revision as of 00:12, 25 April 2018
The Idea
- Use solar panel to harvest energy
- Store the energy in a left over car battery
- Power a Pi, camera and
3G-StickMobile HotSpot[1] - Make a nice webcam out of it :)
Shopping List
- A Pi with camera :)
- A mobile Hotspot (I used a Huawei E1750C). Because getting an UMTS-Stick getting to work with an Pi sucks. Additionally you can easily join the WiFi network for maintenance)
- SIM Card
- (used) Car battery, in my case an 74Ah battery with one dead cell
- Solar panel (12V, 30W eBay around 40€) NOTE: Might be to small!
- Solar charger (f.e. "10A 12V/24V PWM solar panel regler solarpanel" @ ebay for around 15€)
- more to come…
How To
Update your Pi to the latest Linux version
See https://www.datenreise.de/raspberry-pi-raspbian-linux-wheezy-jessie-upgrade/
Scripts
Scripts running on the Pi
Script: Take picture every minute
Add this to crontab:
* * * * * /home/pi/Development/webcam/takePicture.sh > /dev/null 2>&1
Add a file named takePicture.sh to ~/Development/webcam/ with this contents:
TBD TBD TBD
Scripts running on the web server
tbd
Tips
- Remember that this Pi is in the wild and easily stolen or all the data read
- Don't use your usual passwords for this project
- Don't store keys on the Pi
- Let your master server fetch the data (so no private keys are stored on the Pi) or use a chroot environment
- Create a special user to access the data from remote, or even better, get it per HTTP and use .htaccess for privacy (and less 3G-traffic ;) )
- If your WiFi connection breaks regularly, see Raspberry Pi WiFi issue (Solarcam)
?
- Links
- ↑ Since setting up the 3G-Stick was a pain in...