Skip to content

Latest commit

 

History

History
100 lines (49 loc) · 2.77 KB

quick_start_pi.MD

File metadata and controls

100 lines (49 loc) · 2.77 KB

Steps to get the software running on raspberry pi

  1. Create a fresh image of the latest Raspberry Pi OS. See quick_start_pi_image for more details.

  2. run the install script on the pi terminal.

    curl -fsSL https://tronview.org/rpi.sh | sh

    This download the latest install script and runs it.

    It will ask you a few questions about your setup.

    After it's done it will show you a list of demo options to run.

    While running some keyboard commands:

    q - quit

    ? - show help

If you want to run live serial data from your efis.

run the serial_read.py script to confirm data being sent is correct. go into TronView dir (if you are not already there) then type

cd TronView

sudo python util/serial_read.py

you will have to pass in -m or -s for mgl or skyview data.

make sure the data is coming through and looks good.

to exit hit cntrl-c

  1. run it

Note: You have to run using sudo in order to get access to serial port.

Example:

sudo python3 main.py -i serial_mgl -e

will show you command line arguments.

-i {input data source 1}

load a input module for where to get the air data from.

--in1 {input source 1} (same as -i)

--in2 {input source 2}

-s (optional) {screen module name to load} (located in the lib/screens folder)

-t (optional) start up in text mode

-e (optional) demo mode. load default example demo data for input source selected.

-c FILENAME (optional) custom playback file. Enter filename of custom example demo file to use.

--playfile1 (optional) same as -c.. set playback file for input 1

--playfile2 (optional) set playback file for input 2

--listlogs (optional) show logs you saved. location id defined in config.cfg

--listusblogs (optional) show logs saved to usb drive (if available)

--listexamplelogs (optional) show example log files to playback

Run the command with no arguments and it will show you which input modules and screen modules are available to use.

sudo python3 main.py

Examples command line arguments

To set Input1 to garmin g3x and Input2 to stratux wifi and run default example data run the following.

sudo python3 main.py --in1 serial_g3x --in2 stratux_wifi -e

To run Input1 to MGL and Input2 as stratux. then supply custom example log files... Note that these custom log files are in the example data dir. This will also check the DataRecorder path dir that you set in the config file.

python3 main.py --in1 serial_mgl --playfile1 mgl_1.dat --in2 stratux_wifi --playfile2 startux_1.dat

Lauch app in text mode playing dynon D100 example data. Press 'Q' to exit Text Mode.

python3 main.py --in1 serial_d100 -t -e

More help on raspberry pi.

Here are more instructions on setting up for raspberry pi.

https://github.com/flyonspeed/TronView/blob/master/docs/rpi_setup.md