Skip to content

Software installation (includes motion)

Yash Sondhi edited this page Sep 22, 2025 · 4 revisions

Motion & diel-light-pi Setup on Debian (ARM64 Bookworm)

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).


Update the System

Update and upgrade all installed packages:

sudo apt-get update
sudo apt-get upgrade

Install Motion

1. Download the Motion Package

Download the motion package for ARM64 Bookworm from the official or trusted source.

2. Install the Package with gdebi

sudo gdebi <motion-package>.deb

Replace <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

3. Install Build Dependencies (Optional, for source builds)

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.


🔍 Verify the Camera

  • Ensure the USB or CSI camera is connected.
  • If not detected, unplug and reconnect it.

Test Motion with libcamerify

sudo libcamerify motion
  • Motion should start.
  • Confirm the camera feed is visible.

Set Up diel-light-pi

1. Clone the Repository

git clone https://github.com/yashsondhi/diel-light-pi.git
cd diel-light-pi

2. Install YAML Support

sudo apt-get install python3-yaml

pip install pyyaml may not work on this platform, so use apt.


You're Done!

  • Motion is installed and tested.
  • diel-light-pi is 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.

Clone this wiki locally