feat(demos): add xiaomi mimo integration demo

This commit is contained in:
Spherrrical 2026-04-02 13:04:13 -07:00
parent f092cd4917
commit 6edf3594b3
4 changed files with 119 additions and 0 deletions

View file

@ -0,0 +1,31 @@
#!/bin/bash
set -e
start_demo() {
if [ -f ".env" ]; then
echo ".env file already exists. Skipping creation."
else
if [ -z "$MIMO_API_KEY" ]; then
echo "Error: MIMO_API_KEY environment variable is not set for the demo."
exit 1
fi
echo "Creating .env file..."
echo "MIMO_API_KEY=$MIMO_API_KEY" > .env
echo ".env file created with MIMO_API_KEY."
fi
echo "Starting Plano with config.yaml..."
planoai up config.yaml
}
stop_demo() {
echo "Stopping Plano..."
planoai down
}
if [ "$1" == "down" ]; then
stop_demo
else
start_demo
fi