A backend for the thingy.
- pipenv
Install all the dependencies:
pipenv install --dev
Run the dev server, example command:
CONFIG=/tmp/stereopi.conf \
CAPTIVE_PORTAL=/run/captive-portal.sock \
MEDIA=/tmp/media \
SERIAL=/tmp/writer \
pipenv run dev
CONFIGis the path to a stereopi.conf. Normally located in /boot on the StereoPiCAPTIVE_PORTALis the path to the Unix socket of the captive portal. See the captive portal for more informationMEDIAis the path to a directory containing the videos and pictures, usually /media on the StereoPiSERIAL, optional, path to the serial device (the thingy with the buttons and the screen)
[Hello]
[PARAM_ASK|audio_enabled|0xff]
[PARAM_ASK|audio_enabled|0x378c1418]
[PARAM_ASK|invalid_key|0x19359147]
[PARAM_SET|audio_enabled:1|0x3b95c0da]
[PARAM_SET|invalid_key:1|0x6bafad8b]
[WIFI_ON|-|0xc012004]
[WIFI_OFF|-|0xdf54527d]
[REC_START|-|0x748a24bd]
[REC_STOP|-|0x96f63b1d]
[TAKE_PICTURE|-|0xa679117a]