[OUTDATED] How-to Feed Plane Plotter Site directly from Raspberry Pi

Setting up the pi and 4 feeders took weeks. Really not keen to try and repeat that process

Is it possible to reverse steps 2.1 and to 2.2 from above?

(2) Build the Planeplotter uploader ppup1090 from source code of dump1090 (Malcolm Robb)

2.1 - Clone/download the dump1090 source code from Github.

cd ~
git clone git://github.com/MalcolmRobb/dump1090.git

2.2 - The downloaded directory’s name is dump1090 . To make it clear that this is not dump1090 mut or fa, but is PlanePlotter Uploader, change it’s name to ppup

sudo mv dump1090 ppup

ppup

sudo mv dum

Yes, it is simple.
Step (1) installs dependencies and tools which are harmless, rather useful (git, librtlsdr-dev, cmake, libusb-1.0.0-dev, pkg-config). No need to uninstall these.

Step 2.1 is cloning the source code, and 2.2 is entering the cloned folder and compiling the code, which did not complete and hence did NOT install anything in the Pi. Everything is inside cloned folder ppup. Just delete the folder ppup and that is all.

sudo rm -rf ppup  

 

I get your point.
It’s a case of choosing your poison I guess.

Re-installing feeders on new SD card, starting with Piaware and Dump1090-fa, stuck with Planeplotter Rpi uploader, grateful for any suggestions or link to more upto date instructions

pi@raspberrypi:~ $ sudo mv dump1090 ppup
pi@raspberrypi:~ $ cd ppup
pi@raspberrypi:~/ppup $ cd ~/
pi@raspberrypi:~ $ sudo cp coaa.h  ppup/
pi@raspberrypi:~ $ cd ~/ppup
pi@raspberrypi:~/ppup $ make -f makeppup1090
gcc -O2 -g -Wall -W `pkg-config --cflags librtlsdr`  -c ppup1090.c
gcc -O2 -g -Wall -W `pkg-config --cflags librtlsdr`  -c anet.c
gcc -O2 -g -Wall -W `pkg-config --cflags librtlsdr`  -c interactive.c
interactive.c: In function ‘interactiveShowData’:
interactive.c:485:44: warning: ‘%03d’ directive output may be truncated writing between 3 and 9 bytes into a region of size 5 [-Wformat-truncation=]
  485 |                         snprintf(strFl,6,"F%03d",(altitude/100));
      |                                            ^~~~
interactive.c:485:42: note: directive argument in the range [-21474836, 21474836]
  485 |                         snprintf(strFl,6,"F%03d",(altitude/100));
      |                                          ^~~~~~~
interactive.c:485:25: note: ‘snprintf’ output between 5 and 11 bytes into a destination of size 6
  485 |                         snprintf(strFl,6,"F%03d",(altitude/100));
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -O2 -g -Wall -W `pkg-config --cflags librtlsdr`  -c mode_ac.c
gcc -O2 -g -Wall -W `pkg-config --cflags librtlsdr`  -c mode_s.c
gcc -O2 -g -Wall -W `pkg-config --cflags librtlsdr`  -c net_io.c
net_io.c: In function ‘modesSendSBSOutput’:
net_io.c:351:5: warning: ‘ftime’ is deprecated [-Wdeprecated-declarations]
  351 |     ftime(&epocTime_now);                                         // get the current system time & date
      |     ^~~~~
In file included from dump1090.h:54,
                 from net_io.c:31:
/usr/include/arm-linux-gnueabihf/sys/timeb.h:39:12: note: declared here
   39 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
net_io.c: In function ‘handleHTTPRequest’:
net_io.c:752:47: warning: ‘%s’ directive output may be truncated writing between 2 and 2147483645 bytes into a region of size 1010 [-Wformat-truncation=]
  752 |         snprintf(getFile, sizeof getFile, "%s/%s", HTMLPATH, url);
      |                                               ^~
net_io.c:752:9: note: ‘snprintf’ output between 17 and 2147483660 bytes into a destination of size 1024
  752 |         snprintf(getFile, sizeof getFile, "%s/%s", HTMLPATH, url);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -g -o ppup1090 ppup1090.o anet.o interactive.o mode_ac.o mode_s.o net_io.o coaa1090.obj `pkg-config --libs librtlsdr` -lpthread -lm
/usr/bin/ld: interactive.o:/home/pi/ppup/dump1090.h:373: multiple definition of `Modes'; ppup1090.o:/home/pi/ppup/dump1090.h:373: first defined here
/usr/bin/ld: interactive.o:/home/pi/ppup/dump1090.h:238: multiple definition of `tDF'; ppup1090.o:/home/pi/ppup/dump1090.h:238: first defined here
/usr/bin/ld: mode_ac.o:/home/pi/ppup/dump1090.h:373: multiple definition of `Modes'; ppup1090.o:/home/pi/ppup/dump1090.h:373: first defined here
/usr/bin/ld: mode_ac.o:/home/pi/ppup/dump1090.h:238: multiple definition of `tDF'; ppup1090.o:/home/pi/ppup/dump1090.h:238: first defined here
/usr/bin/ld: mode_s.o:/home/pi/ppup/dump1090.h:373: multiple definition of `Modes'; ppup1090.o:/home/pi/ppup/dump1090.h:373: first defined here
/usr/bin/ld: mode_s.o:/home/pi/ppup/dump1090.h:238: multiple definition of `tDF'; ppup1090.o:/home/pi/ppup/dump1090.h:238: first defined here
/usr/bin/ld: net_io.o:/home/pi/ppup/dump1090.h:373: multiple definition of `Modes'; ppup1090.o:/home/pi/ppup/dump1090.h:373: first defined here
/usr/bin/ld: net_io.o:/home/pi/ppup/dump1090.h:238: multiple definition of `tDF'; ppup1090.o:/home/pi/ppup/dump1090.h:238: first defined here
collect2: error: ld returned 1 exit status
make: *** [makeppup1090:24: ppup1090] Error 1
pi@raspberrypi:~/ppup $ cd ~/ppup
pi@raspberrypi:~/ppup $ ./ppup1090
-bash: ./ppup1090: No such file or directory

Issue opened today at Github.

Resolve on Feb 16, 2024 by Plane Plotter group (reported on Github today June 01, 2024)

  1. https://github.com/MalcolmRobb/ppup1090/issues/1#issuecomment-2143354307

  2. https://planeplotter.groups.io/g/main/topic/ppup1090_new_2024_version/104396113?p=,20,0,0,0::recentpostdate/sticky,20,2,80,104396113

 

Click on screnshot to see larger size

 

ppu1090 NEW version 2.1

https://planeplotter.groups.io/g/main/message/129906

Please see following thread for latest method:

How-to Feed Plane Plotter Site from Raspberry Pi