WiggleCamera
The WiggleBin recording service for taking pictures.
Prepare Raspberry PI
Camera
Install picamera2 - https://github.com/raspberrypi/picamera2.
Set package venv to have access to system packages
python3 -m venv --system-site-packages .venv
Light
In /boot/firmware/config.txt
add the following:
dtparam=spi=on
enable_uart=1
Reboot the Raspberry Pi via terminal
sudo reboot
Installation
pip3 install wiggle-camera
CLI
wiggle-camera -h
Prepare Raspberry PI
sudo apt-get install libcap-dev
Enable recording service
In the terminal run wiggle-camera-install
. This will install and start a service which runs wiggle-camera --record
to take pictures every couple of seconds.
wiggle-camera-install
Services
You can check the status with:
systemctl --user status wiggle-camera.service
To stop the service run:
systemctl --user stop wiggle-camera.service
To start the service run:
systemctl --user start wiggle-camera.service
Installation for development
Updating packages on Raspberry Pi
pip install --upgrade pip setuptools wheel
python -m pip install --upgrade pip
Installing package
pip3 install -e .
For installation without dev dependencies
pip install --no-dev -r requirements.txt
Publishing to PyPi
To build your package, you'll need to install the build
module. You can do this with pip:
pip install --upgrade build
Then, you can build your package with the following command:
python -m build
To publish your package to PyPI, you'll need to install the twine
module:
pip install --upgrade twine
Then, you can use twine
to upload your distributions to PyPI:
twine upload -u __token__ -p your_token_here dist/*