a webcam with a 5 second, 30 minute, or 24 hour delay
Go to file
2024-08-07 12:58:29 -04:00
.gitignore cleaning 2024-07-28 17:38:49 -04:00
lines_test.py build some test apparati to understand how the fuck raspi gpio works 2024-08-04 13:12:16 -04:00
Pipfile build some test apparati to understand how the fuck raspi gpio works 2024-08-04 13:12:16 -04:00
Pipfile.lock build some test apparati to understand how the fuck raspi gpio works 2024-08-04 13:12:16 -04:00
readme.md setting up camera controls! 2024-08-06 10:55:51 -04:00
webcam_demo.py refactoring and splitting the demo laptop ver into its own file 2024-08-07 12:58:29 -04:00
webcam.py refactoring and splitting the demo laptop ver into its own file 2024-08-07 12:58:29 -04:00

run it with python3 after pipenv install opencv-python

this progrram opens a fullscreen window showing a feed from camera 0 with a delay. it will collect a lot of video files in the videos/ folder, and use them for showing a long (multiple minutes) delay it also holds ontoo a buffer of a couple hundred frames to show shorter delays (like 5 oor 30 seconds) it doesn't currently do anything to handle missing files, but it would be nice to give it a "default" swirly portal looking video to show hopefully this'll run on a raspberry pi in the desert.

sudo apt install libfdk-aac2 libfdk-aac-dev python3-opencv sudo apt install obs-studio # optional for testing?

sudo apt install python3-pipenv pipenv lock # ? pipenv install pipenv run python3 webcam.py

add the following to ~/.config/wayfire.ini to make it autorun at startup

[autostart] pipenv = cd /home/pi/mirror-to-yesterday; pipenv run python3 webcam.py screensaver = false dpms = false

maybe take security steps? disable keyboards? how are we gonna secure this? zipties.

$ v4l2-ctl --list-ctrls-menus $ v4l2-ctl -c brightness=64 $ v4l2-ctl -c contrast=65

set screen resolution to 1280x720 (720p)

install flatpak, install cameractls?

cameractrls exists in the start menu in the "office" section for some reason. i think we're ready