8000 GitHub - Giraut/tFlipper: Flipper Zero console remote control
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Giraut/tFlipper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flipper Zero console remote control

Version 1.7.1

Text-mode Flipper Zero remote-control.

Functions

  • Display the Flipper Zero's screen in the console in real time
  • Send button presses from the keyboard
  • Record and replay a screen session
  • Record and replay button presses
usage_video.mp4

Usage

  • Connect the Flipper Zero to a USB port
  • Open a terminal
  • Run python tflipper.py

The utility connects to the Flipper Zero and displays its screen in the console.

Flipper Zero display in the console

Hit Ctrl-K to see the keyboard-to-buttons mapping. To remain compatible with most terminals, the keyboard input uses separate keys to emulate short and long Flipper Zero button presses.

Flipper Zero display in the console

  • Run python tflipper.py -M to render the display using mid-density semigraphics: the entire display will then fit in a 80 x 24 console, at the cost of a slightly distorted image, because the aspect ratio cannot be respected:

Flipper Zero display in the console

  • Run python tflipper.py -H to render the display using high-density 8-dot Braille characters: the entire display will be even smaller and the aspect ratio will be respected, but the image is rendered as disconnected dots rather than full-size pixels, and depending on your terminal, it may show black horizontal lines. This may or may not be improved by the -B switch, which causes the characters to be dislayed in bold:

Flipper Zero display in the console

  • Run python tflipper.py -t session.txt to record the session as ANSI text in session.txt, including timing markers and button press events:

    • The screen session can be replayed with the correct timing with python tfreplay.py session.txt
    • The button presses can be replayed on the Flipper zero with python tflipper.py -rt session.txt
  • Run python tflipper.py -g session.gif to record the session as an animated GIF in session.gif, including timing markers and button press events:

    • The animated GIF can be replayed using most image viewers, video players and web browsers

    • The button presses can be replayed on the Flipper zero with python tflipper.py -rg session.gif

      Flipper Zero session recorded as an animated GIF

  • Run python tflipper.py -n to suppress the normal display output and only print button press events (also works when replaying them from a text or GIF file):

    $ python tflipper.py -n
    [3.943s] ↰
    [3.943s] ↰
    [3.943s] ↰
    [7.099s] o
    [10.404s] →
    [11.730s] ↓
    [12.675s] ↓
    [13.231s] ↓
    [16.166s] ↰
    [20.519s] o (long press)
    [22.855s] o (long press)
    [26.734s] ← (long press)
    

Installation

  • Install Python 3

  • Install the following modules:

    $ python -m pip install flipperzero-protobuf
    $ python -m pip install readchar
    $ python -m pip install Pillow
    
  • In Windows, you also need to install:

    $ python -m pip install colorama
    
  • Clone this repository

  • Copy tflipper.py and tfreplay.py anywhere you find convenient in the executable path

License

MIT

About

Flipper Zero console remote control

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0