#!/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))