Updated Set Gain installation script at Github for dump1090-fa ver 5.0
For Piaware SD Card image ver 5.0
sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/set-gain/master/piaware-img-5.0.sh)"
For Package Install of Piaware & dump1090-fa ver 5.0
sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/set-gain/master/raspbian+dump-fa-5.0.sh)"
After script finishes, do following:
(1) Add entry in crontab to run setgain.sh at boot.
Give command sudo crontab -e
Scroll down and at bottom add following line
@reboot /bin/bash /usr/local/sbin/gain/setgain.sh
(2) After completing above step, Reboot Pi to start setgain script
(3) Make a backup copy of file index.html by following commands…
cd /usr/share/skyaware/html
sudo cp index.html index.html.orig
(4) Open file index.html for editing
sudo nano /usr/share/skyaware/html/index.html
Press Ctrl+W and type buttonContainer and press Enter key
the cursor will jump to <div class="buttonContainer">
add following 3 lines of code just above line <div class="buttonContainer">
<div id="GAIN" style="text-align:center;width:175px;height:65px;">
<iframe src=gain.php style="border:0;width:175px;height:65px;"></iframe>
</div> <!----- GAIN --->
(5) After completing steps (3) and (4),
- Reboot RPi
- After reboot, clear browser cache (Ctrl+Shift+Delete) and Reload Browser (Ctrl+F5)