https://github.com/pilotak/raspberry-python-webcam
https://github.com/pilotak/raspberry-python-webcam
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pilotak/raspberry-python-webcam
- Owner: pilotak
- Created: 2016-10-19T11:23:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-12T14:33:28.000Z (over 7 years ago)
- Last Synced: 2025-12-09T07:45:16.360Z (6 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Simple Python3 script that takes a picture from CSI camera, reads HMC5883L I2C compass heading and overlay the picture. It than sends it over FTP to the server in specified interval. Useful as a meteo cam and because I have it on rotary mast with antennas, compass comes on scene.
Also enable **I2C bus** and **camera** in raspi-config
# How to install
```sh
sudo apt install git python3-smbus python3-picamera python3-pip dos2unix libtiff5-dev libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk libopenjp2-7 -y
sudo pip3 install pillow -I
git clone git://github.com/pilotak/raspberry-python-webcam.git
cd ./raspberry-python-webcam
dos2unix ./meteo.py && chmod +x ./meteo.py
```
## Calibration
[Please follow this link](http://blog.bitify.co.uk/2013/11/connecting-and-calibrating-hmc5883l.html)
Make some config in meteo.py and you set up!
### To run it forever
```sh
crontab -e
# append to the end of file
* * * * * python3 /home/pi/raspberry-python-webcam/meteo.py > /home/pi/raspberry-python-webcam/.log
```