Create timelaps from IP camera's snapshots, get some weather info and post it on Vimeo.
python 3.x
pip3
ffmpeg
pip3 install -r requirements.txt
Add .env
file to root of your project with values:
OPEN_WEATHER_API_KEY = "your_api_key"
CAMERA_SNAPSHOT_URL = "your_camera_url"
# Vimeo token (read/write)
VIMEO_TOKEN = "vimeo_token"
# LOCATION OF CAMERA
LOCATION_LATITUDE = "10.00"
LOCATION_LONGITUDE = "10.00"
Make sure, that script.py
is executable
$ chmod +x /path/to/project/video-memory/script.py
Argument | Description | Required | Default |
---|---|---|---|
-h , --help |
Show help message and exit | No | N/A |
--output |
Define snapshots output | No | ./data |
Add script to crontab to execute every one minute with $ crontab -e
.
Add following code (execute python code every 60 seconds)
* * * * * /usr/bin/python3 /path/to/project/video-memory/script.py
At the end of a day, it will merge all snapshots into single video and post it on Vimeo.