fixed some html and filename issues, now the pictures work
This commit is contained in:
parent
74db12f8b6
commit
a413201ff7
@ -8,7 +8,7 @@
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
font-family: Tahoma, Verdana, Arial, sans-serif;
|
font-family: Tahoma, Verdana, Arial, sans-serif;
|
||||||
}
|
}
|
||||||
#latest-still {
|
#latest {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -11,7 +11,7 @@ if not os.path.exists(index_filename):
|
|||||||
print("The index was lost, so we've restored it.")
|
print("The index was lost, so we've restored it.")
|
||||||
|
|
||||||
# take a picture into the stills folder
|
# take a picture into the stills folder
|
||||||
filename = "/stills/" + os.popen("date +%+4Y-%m-%d-%Hh%Mm.jpg").read()
|
filename = "/stills/" + os.popen("date +%+4Y-%m-%d-%Hh%Mm.jpg").read().strip()
|
||||||
|
|
||||||
os.system("libcamera-jpeg -o /var/www/html" + filename)
|
os.system("libcamera-jpeg -o /var/www/html" + filename)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user