Config File Location


#1

Folks,

I have a manual installation of PiAware, I may need to tweak the gain settings for an experiment I want to try.

I have no piaware.conf in /boot and in /etc the piaware.conf only has allow-auto-updates and allow-manual-updates as an option.

Is there another file somewhere of can I just add to either of the two locations?

I understand /boot/piware.conf has priority over the /etc location.

Geffers


#2

The file /boot/piaware-config.txt exists only in Piaware SD Card image downloaded from https://flightaware.com/adsb/piaware/build.

In Piaware Add-on Package install by apt-get as described on page https://flightaware.com/adsb/piaware/install , the file /boot/piaware-config.txt does NOT exist. Also the other file /etc/piaware.conf does NOT contain any settings INITIALLY. It contains only few comment lines, to which Unique Identifier is added at Claim Your Piaware step.

The Piaware sets itself to default values given on the page https://flightaware.com/adsb/piaware/advanced_configuration, but NONE of these parameters are saved on file /etc/piaware.conf

The very first parameter saved in /etc/piaware.conf is Unique Identifier, which is added automatically when you “Claim your receiver”.

Normally following 3 commands are given at time of installation of Piaware Add-on package.

sudo piaware-config allow-auto-updates yes
sudo piaware-config allow-manual-updates yes
sudo reboot

As a result of “Claim your Piaware” and above two commands, the file /etc/piaware.conf is like this:

sudo cat /etc/piaware.conf

# This file configures piaware and related software.
# You can edit it directly or use piaware-config from the command line
# to view and change settings.
#
# If /boot/piaware-config.txt also exists, then settings present in
# that file will override settings in this file.
feeder-id 12345678-1234-1234-1234-123456789abc   # updated by fa_piaware_config
allow-auto-updates yes   # updated by fa_piaware_config
allow-manual-updates yes   # updated by fa_piaware_config

.

How to Set / Change Configuration Values?

If you want to change any of the settings listed on page https://flightaware.com/adsb/piaware/advanced_configuration, you can do this by using following method:

#Set the value
sudo piaware-config [PARAMETER]  [VALUE]

#Restart piaware to implement the value
sudo systemctl restart piaware

#Now check file /etc/piaware.conf to make sure new setting has been saved
sudo cat /etc/piaware.conf

For example if I am using a wired internet connection, and want to stop WiFi of Pi3 (or CHIP board), I will do it like this

#Set parameter
sudo piaware-config rfkill yes
Set rfkill to yes in /etc/piaware.conf:10

#Restart piaware to implement the value
sudo systemctl restart piaware

#Now check file "/etc/piaware.conf" to make sure "rfkill yes" has been added
sudo cat /etc/piaware.conf

# This file configures piaware and related software.
# You can edit it directly or use piaware-config from the command line
# to view and change settings.
#
# If /boot/piaware-config.txt also exists, then settings present in
# that file will override settings in this file.
feeder-id 12345678-1234-1234-1234-123456789abc   # updated by fa_piaware_config
allow-auto-updates yes   # updated by fa_piaware_config
allow-manual-updates yes   # updated by fa_piaware_config
rfkill yes   # updated by fa_piaware_config

#3

Thank you abcd - that has clarified things nicely.

Geffers