magdesign / PocketVJ-CP-v3

PocketVJ 3.x Control Panel
https://www.pocketvj.com
Other
156 stars 33 forks source link

Add buttons to GPIO / GPIO Control #72

Closed magdesign closed 3 years ago

magdesign commented 5 years ago

There is predefined script in /var/www/sync/extension_02.py which you can modify for your needs to trigger actions seen in the control panel via GPIO pins. See the commands/actions from line 61 on.

Here you find a basic sketch of how to wire the buttons.

You could add extension_02.py to a custom autostart button 2 in/var/www/sync/rc.local.custom2

like this:

#!/bin/bash

#This will autostart to extension_02

python /var/www/sync/extension_02.py &

exit 0
magdesign commented 3 years ago

If you are not into coding, use PocketVJ Exhibition, there is everything prepared for you.