- $
sudo apt install python3 python3-venv python3-pip
- $
git clone https://github.com/lomalkin/flipperzero-cli-tools
- $
cd flipper-cli-tools
- $
git submodule update --init --recursive
- $
python3 -m venv venv
- $
pip install -r requirements.txt
Preparing
- $
. venv/bin/activate
- to activate python virtual environment - $
deactivate
- to deactivate
Command line arguments
./rpc.py <Flipper> [commands]
Flipper
- name of your Flipper or full path to Flipper serial in your OS.commands
- list of spaced short command aliases, see below:
ok
,bk
,up
,dn
,lt
,rt
- Key control: Ok, Back, Up, Down, Left, Rightping
- ping-pongalert
- play built-in vibro-audio-visual alertscreen
- dump screen image to consoleexit
- exit from RPC apps1
- sleep for 1 sec between commands
- Dump screenshot to console
./rpc.py Lotak screen
- Run music_player app via keyboard from default state, wait 5 seconds and exit:
./rpc.py Lotak ok dn dn dn dn dn dn dn dn ok dn ok dn ok s1 s1 s1 s1 s1 bk bk bk
- Play alert on your Flipper
./rpc.py Lotak alert