this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add rotation

+2
+2
src/camera_server.py
··· 31 31 CAMERA_SETTLE_TIME = 1 32 32 DEBOUNCE_DELAY = 0.2 33 33 POLL_INTERVAL = 0.01 34 + ROTATION = 90 34 35 35 36 def validate_photo_dir(): 36 37 if not os.path.isabs(Config.PHOTO_DIR): ··· 258 259 config = picam2.create_still_configuration(main={"size": Config.PHOTO_RESOLUTION}) 259 260 picam2.configure(config) 260 261 picam2.start() 262 + picam2.set_controls({"Rotate": Config.ROTATION}) 261 263 time.sleep(Config.CAMERA_SETTLE_TIME) 262 264 263 265 timestamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")