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

Thread: About FR24feed log file..? How to view and suggestions?

  1. #1
    Passenger
    Join Date
    Aug 2019
    Posts
    7

    About FR24feed log file..? How to view and suggestions?

    Hi, I am a new feeder.

    I found different suggestions regarding how to deal with FR24feed log file:
    somebody is suggesting to keep Raspberry setting to 1 (rotate every 24h) and others to disable it, in order to save SD life.

    What is yours?

    Finally, what is the best, easy way to view it? What is going there?
    I tried the command "nano fr24feed" when in log directory, but the opened file is empty...

    Tnx. Cheers.

  2. #2
    Captain
    Join Date
    Apr 2018
    Posts
    867
    You want the full log or only the errors?

    You can modify the systemd service file to make fr24feed ouput log to the systemd journal.
    I've modified mine extensively to only give out errors and the occasional mlat stats (once very few hours)

    You can download either one of the following files, this one is with minimal output:
    Code:
    wget -q -O /tmp/fr24feed.service https://raw.githubusercontent.com/wiedehopf/adsb-scripts/master/fr24feed.service
    To get the complete output you can use this service file:
    Code:
    wget -q -O /tmp/fr24feed.service https://raw.githubusercontent.com/wiedehopf/adsb-scripts/master/fr24feed.service.all
    To actually put one of the above service files in place, use these commands:

    Code:
    sudo cp /tmp/fr24feed.service /etc/systemd/system/fr24feed.service
    sudo systemctl daemon-reload
    sudo systemctl restart fr24feed
    Now you can browse the log or even follow it live:

    Code:
    sudo journalctl -u fr24feed -n3000
    sudo journalctl -u fr24feed -f

    Oh by default the journal will only be kept in memory and not in disk.
    So it won't fill up your disk and be automatically truncated.
    Last edited by wiedehopf; 2019-08-12 at 17:35.

  3. #3
    Passenger
    Join Date
    Aug 2019
    Posts
    7
    Thanks a lot for your detailed infos!

    Actually I didn't know what the logged item were about.

    So if I understand correctly, it is not true the SD is continuously writing data for that, and by default it is kept in the ram?

    Finally, is there a way to surf pi SD via Mac Finder? I found a website about it but it is requiring a third party software.
    If I go Finder/Go/Connect to Server and I input my RaspBerryPi local iP I get the error about not having permissions.

    Otherwise, what is the simplest way on the terminal to copy the fr24feed to my Mac, I mean to have the file appearing on my desktop and editing it with a normal viewer app?

    Tnxs, cheers.

  4. #4
    Captain
    Join Date
    Apr 2018
    Posts
    867
    The logging i'm proposing uses a different system from the log settings in the fr24 configuration.
    The fr24feed.ini controls the log going to a file.
    That's why you need to modify the service file to enable the logging i'm proposing.

    The easiest way is to just use SSH to connect to the RPi and issue the commands i showed above remotely.

    Just google ssh RPi Mac or something and i'm sure you'll find a explanation.
    Depending on the image you need to use raspi-config on the RPi to enable SSH.
    Last edited by wiedehopf; 2019-08-05 at 18:56.

  5. #5

  6. #6
    Passenger
    Join Date
    Aug 2019
    Posts
    7
    Hi abcd567, I used exactly the link you suggested a few days ago to configure everything and control RPI from desktop.
    However I cannot figure out how to copy and paste files from RPI to Desktop. Everything stays in the terminal window.

  7. #7
    Passenger
    Join Date
    Aug 2019
    Posts
    7
    Quote Originally Posted by wiedehopf View Post
    The logging i'm proposing uses a different system from the log settings in the fr24 configuration.
    .
    Thanks, understood

  8. #8
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,854
    LunarM27:

    Copy-pate between desktop and Pi is given in the thread I linked above. See the writeup on screenshot in item 3

    Quote Originally Posted by abcd567 View Post
    3 - How To Copy-Paste Text To / From PuTTY

    How to Copy-Paste To or From PuTTY.png
    Last edited by abcd567; 2019-08-05 at 20:53.

  9. #9
    Passenger
    Join Date
    Aug 2019
    Posts
    7
    Thanks. That is understood. However this is a way to copy and paste text. I was wondering if there is a way to copy files directly...

  10. #10
    Captain
    Join Date
    Apr 2018
    Posts
    867
    You can use WinScp or FileZilla.

    But the commands i gave will download the files onto the RPi.
    So you don't even need them on your computer but will transfer them directly to the RPi.

Tags for this Thread

Posting Permissions

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