How-to Read / Set Gain from SkyView and Gmap

I can’t see a single advantage in dump1090-mutability besides maybe liking the web interface with the clocks and minimalistic design.

So i might accept dump1090-fa with the mutability interface, but the other way around?

dump1090-fa is the successor to dump1090-mutability.

The only flightaware thing about it is the webinterface.
(and that it’s maintained by someone who is now forking for FA)

The beast and AVR output formats are on the same ports and are exactly the same.

Unless you have a non-standard configuration you can’t change…
If you are worried about fr24, see this:

Installing dump1090 fa · wiedehopf/adsb-wiki Wiki · GitHub

It 360radar I don’t want to mess up as this was the first site that got me a little hooked

Well if you don’t understand the settings then maybe it’s best to leave it.

As i said the protocols used are exactly the same.

Click on the Titles below to see details

Gain-Rev-1-Piaware-SD-Card
.
Set%20Gain%20Rev-1-Jessie%20and%20Stretch%20FA
.
Rev-1%20-%20Jessie%20and%20Stretch%20Mutab

1 Like

Hi @abcd567,
I am using your method on Raspbian buster to install the dump1090-fa with gain control.

For the Buster Version:-

sudo apt update   
sudo apt install php7.3-cgi   
sudo lighty-enable-mod fastcgi-php   
sudo /etc/init.d/lighttpd force-reload

It works.

Thanks.

1 Like

I tried the Piaware 3.7.1 stretch image instructions and got the gain button to show but when I change the gain value and click SET GAIN, the displayed gain value stays at -10 even though dump1090 restarts.

Any ideas what I did wrong?

image

Dont you see Current Gain: xx.x in red?

EDIT:
Did you reboot?
The Set Gain button wont work unless you reboot after completing the modifications.

2 Likes

Did the reboot and I do see the number in red …

image

I can change the value …

image

but when I click SET GAIN, the screen flashes and it returns to the current value of -10.

Open cron:

sudo crontab -e

Scroll down to bottom of the cron file. Do you see following line? If not add it, save file, then reboot

@reboot /bin/bash /usr/local/sbin/gain/setgain.sh

1 Like

Tried that - the line was already there - is this the correct file name?

image

YES, if it got opened by command sudo crontab -e

You told what instructions you used, but did NOT tell what is your install

Is your install:

  • Piaware SD card image 3.7.1 (which is Stretch based)
    OR
  • You have written Raspbian Buster to your microSD card, then package install of piaware & dump1090-fa

The Stretch instruction wont work on Buster, unless you install php7.3 (Stretch instructions install php7.0)

1 Like

Piaware SD card image 3.7.1 (which is Stretch based)

Let’s check this:

grep piaware /usr/local/sbin/gain/setgain.sh 

And this:

piaware-config -show rtlsdr-gain
echo 40 > /usr/local/sbin/gain/newgain
piaware-config -show rtlsdr-gain

If the above is working, then the most likely reason is that you somehow didn’t get the gain.php quite right.

.

First check if php7.0-cgi got installed
apt-cache policy php7.0-cgi

(a) If it shows php7.0-cgi NOT installed, install it by following commands

sudo apt install php7.0-cgi 
sudo lighty-enable-mod fastcgi-php 
sudo /etc/init.d/lighttpd force-reload 

(b) If it shows php7.0-cgi installed, then do following:

sudo rm /usr/local/sbin/gain/setgain.sh 
sudo rm /usr/share/dump1090-fa/html/gain.php

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/set-gain/master/piaware-img.sh)"

.
NOTE:
When bash script finishes, it will display a set of instructions. Ignore these as you have cron and html hacks already in place.

1 Like

@abcd567, thanks - that fixed it!

php7.0-cgi was already installed so part (b) was the solution.

1 Like

Hi!
Just updated to PiAware 5 and edited /usr/share/dump1090-fa/html/index.html but no gain selection shows up anymore on SkyView.

Try these 3 addresse in browser:

IP-of-PI/skyaware/
IP-of-PI/skyaware/gain.php
IP-of-PI/dump1090-fa/gain.php

After trying these adresses :man_shrugging:

@opwkbg

Does changing gain setting in IP-of-PI/dump1090-fa/gain.php show that gain has changed? If yes, then for the time being manage gain adjustment from this drop down. I will have to study and revise the procedure to suite ver 5.0