parent
5b59cade63
commit
e2eac258d7
@ -0,0 +1,7 @@ |
|||||||
|
#!/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)) |
@ -0,0 +1,11 @@ |
|||||||
|
[Unit] |
||||||
|
Description=take a picture every day |
||||||
|
|
||||||
|
[Service] |
||||||
|
Type=oneshot |
||||||
|
WorkingDirectory = /home/shoofle/telescopium |
||||||
|
ExecStart=python /home/shoofle/telescopium/take_a_still.py |
||||||
|
User=shoofle |
||||||
|
|
||||||
|
[Install] |
||||||
|
WantedBy=multi-user.target |
@ -0,0 +1,10 @@ |
|||||||
|
[Unit] |
||||||
|
Description=Timer for taking a daily picture |
||||||
|
|
||||||
|
[Timer] |
||||||
|
OnCalendar=daily |
||||||
|
AccuracySec=1m |
||||||
|
Persistent=true |
||||||
|
|
||||||
|
[Install] |
||||||
|
WantedBy=timers.target |
Loading…
Reference in new issue