Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Raspberry Pi with 3.5" LCD

  1. #1
    Passenger
    Join Date
    Jul 2019
    Posts
    9

    Raspberry Pi with 3.5" LCD

    I have got my Pi up and running, and sending data and can view the data on my PC via the web page.
    My Pi also has a 3.5" LCD display, that I would like to echo the data feed to so that I dont need to keeep checking on my PC that its working.

    Any basic help/commands I can enter to get this to display?
    ie
    ModeS: C82272 Callsign: SDA652
    Lat: -43.3851
    Long: 172.6252
    Alt: 5900ft
    SQW: 5535



    please bear in mind I am an absolut Linux novice so would appreciate detailed command line info
    Thanks
    Andy

  2. #2
    Captain
    Join Date
    Apr 2018
    Posts
    693
    First use this: https://github.com/wiedehopf/adsb-wi...for-dump1090fa

    Then on the console you can just type:
    view1090-fa

    It will show you a crude list of aircraft on the console.

    Alternatively you could install the graphical user interface and open the same web page you are checking.

  3. #3
    Super Moderator
    Join Date
    May 2011
    Location
    T-NZCH1, PP:PH New Zealand
    Posts
    4,957
    Always the 8754:/monitor.txt too for super crude.

    Sent from my EML-L09 using Tapatalk
    Posts not to be taken as official support representation - Just a helpful uploader who tinkers

  4. #4
    Passenger
    Join Date
    Jul 2019
    Posts
    9
    Thanks very much that does the trick.
    Next stupid question.. how do I get the view1090-fa command to autoexecute every time the Pi reboots so that I dont need to connect a keyboard?

  5. #5
    Captain
    Join Date
    Apr 2018
    Posts
    693
    You can follow this answer here:
    https://unix.stackexchange.com/a/488003

    Don't edit /etc/systemd/logind.conf, you still want to have mutiple terminals so you can change terminal and login by pressing Alt-F2

    Follow this 2nd block of the answer:
    Code:
    mkdir -p /etc/systemd/system/getty@tty1.service.d
    echo "[Service]" > /etc/systemd/system/getty@tty1.service.d/override.conf
    echo "ExecStart=" >> /etc/systemd/system/getty@tty1.service.d/override.conf
    echo "ExecStart=-/usr/bin/view1090-fa" >> /etc/systemd/system/getty@tty1.service.d/override.conf
    echo "StandardInput=tty"  >> /etc/systemd/system/getty@tty1.service.d/override.conf
    echo "StandardOutput=tty"  >> /etc/systemd/system/getty@tty1.service.d/override.conf
    Note that i've here replace /path/program -arg1 -arg2 by /usr/bin/view1090-fa so view1090-fa is started.
    Good luck

  6. #6
    Passenger
    Join Date
    Jul 2019
    Posts
    9
    Thanks very much! Will give that a try

  7. #7
    Passenger
    Join Date
    Jul 2019
    Posts
    9
    Wiedhopf, thanks for your help, but I am having "permission denied" errors...

  8. #8
    Passenger
    Join Date
    Jul 2019
    Posts
    9
    and I must have a minimum of 4 posts to reply.. yet it wont let me reply after 4 posts... try again...

  9. #9
    Passenger
    Join Date
    Jul 2019
    Posts
    9
    Quote Originally Posted by wiedehopf View Post
    You can follow this answer here:
    https://unix.stackexchange.com/a/488003

    Don't edit /etc/systemd/logind.conf, you still want to have mutiple terminals so you can change terminal and login by pressing Alt-F2

    Follow this 2nd block of the answer:
    Code:
    mkdir -p /etc/systemd/system/getty@tty1.service.d
    echo "[Service]" > /etc/systemd/system/getty@tty1.service.d/override.conf
    echo "ExecStart=" >> /etc/systemd/system/getty@tty1.service.d/override.conf
    echo "ExecStart=-/usr/bin/view1090-fa" >> /etc/systemd/system/getty@tty1.service.d/override.conf
    echo "StandardInput=tty"  >> /etc/systemd/system/getty@tty1.service.d/override.conf
    echo "StandardOutput=tty"  >> /etc/systemd/system/getty@tty1.service.d/override.conf
    Note that i've here replace /path/program -arg1 -arg2 by /usr/bin/view1090-fa so view1090-fa is started.
    Good luck

    I was out of town for the last week, and just got a chance to try this.
    I had a read of the linked info but didnt have any success with entering the commands as you showed.
    I am getting permission denied errors:
    -bash: /etc/systemd/system/getty@tty1.service.d/override.conf: Permission denied

    so then I tried the another method suggested on that page:

    #mkdir /etc/systemd/system/getty@tty1.service.d
    #cd /etc/systemd/system/getty@tty1.service.d
    #nano override.conf
    and add
    [Service]
    ExecStart=
    ExecStart=-/usr/bin/view1090-fa

    however when I try to exit and save the file, it also gives an error permission denied
    pi@raspberrypi:/etc/systemd/system/getty@tty1.service.d $ ls -l
    total 4
    -rw-r--r-- 1 root root 30 Oct 9 2018 noclear.conf

  10. #10
    Super Moderator
    Join Date
    May 2011
    Location
    T-NZCH1, PP:PH New Zealand
    Posts
    4,957
    @ signs triggered moderation.
    Posts not to be taken as official support representation - Just a helpful uploader who tinkers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •