Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 673 Bytes

README.md

File metadata and controls

10 lines (9 loc) · 673 Bytes

pi_camera_on_boot

Fullscreen preview of Raspberry Pi camera on bootup

Set up to boot on startup

  1. Make sure it's all updated with sudo apt-get update sudo apt-get upgrade and make sure the camera is enabled in the Raspberry Pi Configs.
  2. Save the 'camera_preview_stream.py' file anywhere in the pi. For example in /home/<user_name>/Documents/.
  3. Navigate to /etc/xdg/lxsession/LXDE-pi and add this line to the bottom of the autostart file @/usr/bin/python /home/<user_name>/Documents/camera_preview_stream.py. If your python is python3 then do @/usr/bin/python3 /home/<user_name>/Documents/camera_preview_stream.py. (I used nano for this)