Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lomalkin/flipperzero-cli-tools
CLI tools for better interact with Flipper zero.
https://github.com/lomalkin/flipperzero-cli-tools
Last synced: 12 days ago
JSON representation
CLI tools for better interact with Flipper zero.
- Host: GitHub
- URL: https://github.com/lomalkin/flipperzero-cli-tools
- Owner: lomalkin
- Created: 2021-09-03T14:20:38.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-22T22:58:47.000Z (over 2 years ago)
- Last Synced: 2024-02-13T00:50:32.060Z (10 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 64
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- fucking-awesome-flipperzero - `CLI Tools` Python scripts to screenshot/stream screen.
- awesome-flipperzero - `CLI Tools` Python scripts to screenshot/stream screen.
- awesome-flipperzero-withModules - `CLI Tools` Python scripts to screenshot/stream screen.
README
# CLI tools for Flipper zero
## Install
* $ `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`
* $ `. venv/bin/activate`
* $ `pip install -r requirements.txt`
* $ `deactivate`## Usage
**Preparing**
* $ `. venv/bin/activate` - to activate python virtual environment
* $ `deactivate` - to deactivate### Interactive CLI tool with screen streaming
```
./clipper.py
```### RPC Examples
**Command line arguments**
```./rpc.py [commands]```
* `Flipper` - name of your Flipper or full path to Flipper serial in your OS.
* `commands` - list of spaced short command aliases, see below:### Command aliases
* `ok`, `bk`, `up`, `dn`, `lt`, `rt` - Key control: Ok, Back, Up, Down, Left, Right
* `ping` - ping-pong
* `alert` - play built-in vibro-audio-visual alert
* `screen` - dump screen image to console
* `exit` - exit from RPC app
* `s1` - sleep for 1 sec between commands#### Examples
1. Dump screenshot to console
```./rpc.py Lotak screen```
2. 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```
3. Play alert on your Flipper
```./rpc.py Lotak alert```