work log, scripts, and assorted files for a raspberry pi timelapse box.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
telescopium/take_a_still.py

8 lines
175 B

#!/bin/python3
import os
import subprocess
filename = os.popen("date +%+4Y-%m-%d-%Hh%Mm.jpg").read()
os.system("libcamera-jpeg -o /var/www/html/stills/{}".format(filename))