Could this be enhanced to support uploading multiple images, with a set timer to rotate between the "album" of images?
Not very experienced in python (nor Pi(s)), but something along the lines of:
- No longer calling delete image
- [Optional] Use a UUID for filename for multiple uploads
|
filename = secure_filename(file.filename) |
import sched, time, random
def cycle_album(scheduler):
scheduler.enter(3600, 1, cycle_album, (scheduler,))
updateEink(random.choice(UPLOAD_FOLDER, ORIENTATION,ADJUST_AR)
album_schedule = sched.scheduler(time.time, time.sleep)
album_schedule.enter(3600, 1, cycle_album, (album_schedule,))
album_schedule.run()
Could this be enhanced to support uploading multiple images, with a set timer to rotate between the "album" of images?
Not very experienced in python (nor Pi(s)), but something along the lines of:
PiInk/src/webserver.py
Line 89 in 5117914
PiInk/src/webserver.py
Line 90 in 5117914