AutoLight Docs main Help

Installation

AutoLight is easy to install. Follow the steps and AutoLight will be functional in no time!

Before you start

You must meet the minimum requirements

Make sure that you have:

  • Raspberry Pi OS Bookworm

  • A Pi4B, Pi3B, Pi3A, PiZero2, or a PiCM4

Installation steps

  1. Install system dependencies

    sudo apt install python3-dev python3-venv git libdbus-1-dev libglib2.0-dev build-essential
  2. Clone the AutoLight repo

    git clone https://github.com/meowmeowahr/AutoLight
  3. Change directory into AutoLight

    cd AutoLight
  4. Create a new python environment

    python -m venv .venv
  5. Source environment

    source .venv/bin/activate
  6. Install Python dependencies

    pip install -r requirements.txt

🚀 AutoLight is now installed

Autostart

To Install AutoLight as a Systemd Service, run the following command

python main.py --systemd-install

To Remove the service, run the following commands

sudo systemctl stop autolight.service sudo systemctl disable autolight.service sudo rm /etc/systemd/system/autolight.service sudo systemctl daemon-reload
Last modified: 27 May 2024