Get a picture with GPIO

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version |
    G_DIETPI_VERSION_CORE=8
    G_DIETPI_VERSION_SUB=25
    G_DIETPI_VERSION_RC=1
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’

  • Distro version | bockworm 1

  • Kernel version | uname -a

  • Architecture | Linux DietPi 6.1.21+ #1642 Mon Apr 3 17:19:14 BST 2023 armv6l GNU/Linux

  • SBC model | RPI Zero w

  • Power supply used | 5V 2 A

  • SD card used | SanDisk ultra

Hi folks…
is there a solution to make a photo by trigger an external event ?
Button or other ext. sensor by gpio ?
raspistill dont work, libcamera dosnt too.

Can i get the command from the Webpage ( to make a photo)

on_picture_save /usr/local/lib/python3.11/dist-packages/motioneye/scripts/relayevent.sh “/etc/motioneye/motioneye.conf” picture_save %t %f

what is the right command for this ?

THX a lot