An open API service indexing awesome lists of open source software.

https://github.com/pilotak/raspberry-python-webcam


https://github.com/pilotak/raspberry-python-webcam

Last synced: about 2 months ago
JSON representation

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
```