-
Notifications
You must be signed in to change notification settings - Fork 2
Software installation (includes motion)
This guide walks you through setting up Motion and the diel-light-pi repository on a Debian-based ARM64 system (e.g., Raspberry Pi running Bookworm) and is recommended for Pi5 and up.
Update and upgrade all installed packages:
sudo apt update && sudo apt upgrade -y sudo apt install motion -yIf this does not work, follow the steps below. Otherwise, continue to the next section.
Download the motion package for ARM64 Bookworm from the official or trusted source.
sudo gdebi <motion-package>.debReplace <motion-package>.deb with the actual filename.
You may need to download gedbi with apt and make sure you use the correct build. For Pi5's it is usually bookworm arm64
sudo apt-get install autoconf automake autopoint build-essential pkgconf libtool libzip-dev libjpeg-dev git libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavdevice-dev libwebp-dev gettext libmicrohttpd-dev libcamera-tools libcamera-dev libcamera-v4l2
Double check the motion page (https://motion-project.github.io/motion_build.html)
Adjust the list based on your build requirements.
rpicam-still --list-camera- If no camera is detected, unplug and reconnect it.
- MAKE SURE TO TURN OFF THE PI BEFORE DISCONNECTING AND RECONNECTING
rpicam-still -t 0- Confirm the camera feed is visible.
- To stop, go back to the terminal and press CTRL+C to quit
rpicam-still -t 5000 -o test.jpggit clone https://github.com/yashsondhi/diel-light-pi.git
cd diel-light-pisudo apt-get install python3-yaml
pip install pyyamlmay not work on this platform, so useapt.
Go back to the terminal and make sure that you're in the "diel-light-pi" folder. If not, type
cd ..until the text before the cursor is
pi@raspberrypi:/Then type
cd home
cd pi
cd diel-light-pi
lsIf nothing shows up underneath the command, try to redownload the library.
You're Done!
- Motion is installed and tested.
-
diel-light-piis cloned. - YAML dependencies are in place.
You can now begin configuring and using the diel-light-pi scripts for light tracking and automation.
🛠 Need help? Open an issue on the GitHub repository or post to the relevant community forums.
Disk images and more guides are available at: https://osf.io/8p5kw/