Backup RFP Infinity controller state before Resolume changes
Some checks failed
WLED CI / wled_build (push) Has been cancelled
Deploy Nightly / wled_build (push) Has been cancelled
Deploy Nightly / Deploy nightly (push) Has been cancelled

This commit is contained in:
jan
2026-05-14 12:31:13 +02:00
parent ebc4498d89
commit 4bc4e1257e
33 changed files with 3482 additions and 695 deletions

36
tools/setup_rfp_env.sh Executable file
View File

@@ -0,0 +1,36 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
NODE_BIN="/home/jan/Documents/RFP/Finanz_App/node/current/bin"
ENV_NAME="rfp_esp32s3_wroom1_n16r8_3x106"
cd "$ROOT_DIR"
if [[ ! -x ".venv/bin/python" ]]; then
python3 -m venv .venv
fi
.venv/bin/pip install -r requirements.txt
if [[ -x "${NODE_BIN}/node" ]]; then
export PATH="${NODE_BIN}:$PATH"
fi
export NPM_CONFIG_CACHE="$ROOT_DIR/.npm-cache"
npm ci
export PLATFORMIO_CORE_DIR="$ROOT_DIR/.piohome"
export PLATFORMIO_PACKAGES_DIR="$ROOT_DIR/.piohome/packages"
export PLATFORMIO_PLATFORMS_DIR="$ROOT_DIR/.piohome/platforms"
export PLATFORMIO_CACHE_DIR="$ROOT_DIR/.piohome/.cache"
export PLATFORMIO_BUILD_CACHE_DIR="$ROOT_DIR/.piohome/buildcache"
.venv/bin/python -m platformio run -e "$ENV_NAME"
cat <<'EOF'
Setup complete.
Firmware output:
.pio/build/rfp_esp32s3_wroom1_n16r8_3x106/firmware.bin
EOF