Skip to content

theodorSchei/timelapsebot

Repository files navigation

Timelapsebot

With this program running, every sunset is captured and made into a neat little timelapse. The program is intended to run on a Raspberry Pi with a Pi Camera module.

Gif of a sunset in oslo made with this program

(I need to clean my window!)

How it works

The program first calculates todays sunset time using location (lon, lat), and the date. This is a mathematical formula, wich allows for complete of-the-grid operation, if thats required (No API calls)

With the sunset time calculated, it adds it to the timelapse job-list. Once it is sunset, the program starts taking pictures, and when it is done starts resizing them to prepare for making the timelapse. Finally a timelapse is stiched together, and everything is stored neatly in a folder system. When the timelapse is finished stitching it is posted to twitter.

The last job is to queue tomorrows timelapse, before the job ends.

Getting started

Run the program with the command:

npm run start

To run a short timelapse starting now (for debugging) run:

npm run dev

A python script is also added to help with focusing the camera. This can be really tricky on the hq camera. Run with:

python focuspreview.py

Dependencies

  • raspistill
  • mogrify
  • ffmpeg

TODO

Timing

  • Get sunset time
  • Set timelapse to start at sunset

Timelapse

  • Make new folder
  • Start timelapse in new folder
  • Resize all photos
  • Stitch together a timelapse

Sharing

  • Upload to youtube
  • Delete photos

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published