PPUP and Mutability

OK, after some playing around I’ve got all my feeds back up and running from mutability 1.15 (with the color mods), including PPUP which I thought would never happen.

Here how I did it and a question about the process.

I configured dump1090-mutability to use the DVB-t stick so as expected, anything else trying to read from it will get an error. In this case, that’s a good thing. I could not get ppup1090 to make so I used the one I have from my non mutability setup. Obviously this is going to cause a problem as PPUP needs dump1090 to be running and it doesn’t recognise dump1090-mutability as the same thing. And why would it, it doesn’t know about it. Anyway, to get PPUP working I got dump1090-mutability running first and then tried to start dump1090. This produces the error that the stick is in use but also leaves itself running. That’s the important bit. So now when PPUP is run, it can see dump1090 is running and it starts. As it is configured to pick the feed from port 30005, it is happy and starts feeding away as normal.

My question is - Is there a cleaner way of doing this or is my dirty hack the only way that it will work?

Thanks

How does ppup1090 know that dump1090-mutability is not ordinary dump1090?

I’m pretty sure that it checks the process that are running for the process name “dump1090” and if it cant find it then it knows its not running.

The iteration of ppup1090.sh that I modified, checks to see if dump1090 is running and dies if it finds /var/run/dump1090.pid.
If not there, it launches dump1090 and then ppup1090.
Variables set as
PROG=“dump1090”
PROG_PATH=“/home/pi/dump1090”
PROG_ARGS=“–quiet --net --net-ro-size 500 --net-ro-rate 5 --net-buffer 5”
PIDFILE=“/var/run/dump1090.pid”
PROG2=“ppup1090”
PROG2_ARGS=“–quiet --net-pp-addr 192.168.1.64”
PIDFILE2=“/var/run/$PROG2.pid”
DELAY=5

In the start case:

if -e $PIDFILE ]; then

## Program is running, exit with error.

echo “Error! $PROG is currently running!” 1>&2

exit 1

And:

if -e $PIDFILE ]; then

## Program is running, exit with error.

echo “Error! $PROG is currently running!” 1>&2

exit 1

My version of ppup1090.sh, from which the above snippets came, just ignores the whole thing as dump1090-mutability is launched from /etc/init.d

I haven’t put my version of ppup1090.sh into /etc/init.d until I am sure it works.
YMMV