mirror of
https://github.com/katanemo/plano.git
synced 2026-05-30 14:25:15 +02:00
feat(demos): add xiaomi mimo integration demo
This commit is contained in:
parent
f092cd4917
commit
6edf3594b3
4 changed files with 119 additions and 0 deletions
31
demos/integrations/xiaomi_mimo/run_demo.sh
Normal file
31
demos/integrations/xiaomi_mimo/run_demo.sh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue