python3.9 -m venv .env
source .env/bin/activate
pip install -r requirements.txt
cd /opt/blink_time_lapse
source .env/bin/activate
python create_token.py
Will output .log and .jpg in current working directory.
cd /opt/blink_time_lapse
source .env/bin/activate
python run_blink.py
Suggested cron frequencies for time lapse (During Daylight Only):
-
Every 6 hours (2xday) : 8 AM and 2 PM Good for slow changes
-
Every 4 hours (3xday) : 8 AM, 12 PM, 4 PM More natural flow, captures morning/midday/evening light
-
Every 2 hours (7x/day) : 6 AM, 8 AM, 10 AM, 12 PM, 2 PM, 4 PM, 6 PM Very smooth, excellent for fast plant movements like flowers opening
0 8,12,16 * * * cd /opt/blink_time_lapse && /opt/blink_time_lapse/.env/bin/python3 run_blink.py
bash make_video.sh
location /blink_time_lapse {
alias /opt/blink_time_lapse;
autoindex on;
autoindex_exact_size off; # Optional: Show human-readable file sizes
autoindex_localtime on; # Optional: Show file times in server's local time
}
now open the location /blink_time_lapse/video.html on your server.
JSON
jq '{iso_time,temperature_c,battery_voltage}' front_garden.log
CSV
jq -r '[.iso_time, .temperature_c, .battery_voltage] | @csv' front_garden.log