Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

Repository files navigation

Weatherlapse

Python Flask web application that presents timelapse content and related weather station data. Data is gathered with https://github.com/jasalt/timelapse-intra.

Example project for TIEA207 open data project course. MIT licensed.

Development guide

## Setup & activate virtualenv (with help of virtualenvwrapper)

# Without existing virtualenv (developing on Python 3.4.0):
mkvirtualenv tiea207-demo -p python3
pip install -r requirements.txt

# With existing virtualenv:
workon tiea207-demo

# Run development server
./run-dev.py

Browse to http://localhost:5000

Heroku deploy guide

With Heroku Toolbelt installed and account configured:

  1. Clone repository git clone <repository url>

  2. Create Heroku app heroku create <application_name>

  3. Push local repository to Heroku git push heroku master

  4. Access application at http://<application_name>.herokuapp.com

Uploader functionality

Create upload user by adding environment variables to Heroku node:

heroku config:set UPLOAD_USER="agent" --app weatherlapse
heroku config:set UPLOAD_PASSWORD="secret" --app weatherlapse

Then schedule upload script on Raspberry and point it to domain.tld/upload:

curl -u agent:secret -v -F name=test -F upload=@20150101.jpg http://localhost:5000/upload

Example cron command to post latest image 4 times per hour:

0,15,30,45 * * * * cd /home/pi/webcam/photos && cd $(ls | tail -1) && curl -u agent:secret -v -F name=test -F upload=@$(ls | tail -1) http://www.landekamera.fi/upload

Inspirational projects

https://github.com/dandelany/animate-earth

About

Python Flask web application listing videos from a Youtube channel with timelapse videos

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages