Skip to content

Commit

Permalink
Rename pigate.conf to direwolf.conf to clarify configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
rossmckelvie committed Jul 9, 2020
1 parent 326217f commit f1acbb0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Prebuilt Raspberry Pi image for running a HAM radio APRS Internet Gateway using

### Installation
1. Download & Flash the image to an SD card
2. Insert SD card into a computer and load your wpa_supplicant.conf into boot if you are using wifi, and drop in a [pigate.conf](files/boot/pigate.conf) with your Callsign and password. You can use any custom direwolf config file here, enabling many different hardware configurations!
2. Insert SD card into a computer and load your [wpa_supplicant.conf] into boot if you are using wifi, and drop in a [direwolf.conf](files/boot/direwolf.conf) with your callsign and password. You can use any custom direwolf config file here, enabling many different hardware configurations!
3. Insert into a raspberry pi with RTL-SDR plugged into USB, and power up! If everything was configured correctly, in about 5 minutes you should see it pop up on [aprs.fi].

Once the pi is running, it should be available on your network with hostname `aprs-pigate` and accessible via SSH `pi@aprs-pigate` using the default raspberry password. It is a good idea to change this once logged in, or disable passwords altogether and use SSH keys, which you can do by modifying the `user-data` file accessible on the boot partition after flashing.
Expand All @@ -16,7 +16,7 @@ The startup script creates a `screen` and executes the startup script [`rtl-dw-s
Logs are also written to `/home/pi/aprslogs/aprs.log`. You can view these with commands like `less` or `tail`, and generally may be easier to work with than the direwolf screen.

### Customizing the Start Script
If you are setting up a digipeater, you can disable the Software Defined Radio by creating an empty file `DISABLE_SDR` and placing it into the boot folder of your SD card along with `pigate.conf`. See the [`rtl-dw-start.sh`] startup script for more details.
If you are setting up a digipeater, you can disable the Software Defined Radio by creating an empty file `DISABLE_SDR` and placing it into the boot folder of your SD card along with `direwolf.conf`. See the [`rtl-dw-start.sh`] startup script for more details.

## Contributing & Development
This project uses the following dependencies:
Expand All @@ -32,3 +32,4 @@ Run `make build` to start building your first image.
[`packer-build-arm-image`]: https://github.com/solo-io/packer-builder-arm-image/
[rtl-sdr]: https://www.rtl-sdr.com/
[`rtl-dw-start.sh`]: files/home/pi/rtl-dw-start.sh
[wpa_supplicant.conf]: https://www.raspberrypi.org/documentation/configuration/wireless/headless.md
File renamed without changes.
4 changes: 2 additions & 2 deletions files/boot/user-data.yaml → files/boot/user-data
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ timezone: "America/Chicago"
final_message: "The system is finally up, after $UPTIME seconds"

runcmd:
- "cp /boot/pigate.conf /home/pi/pigate.conf"
- "chown pi:pi /home/pi/pigate.conf"
- "cp /boot/direwolf.conf /home/pi/pigate-direwolf.conf"
- "chown pi:pi /home/pi/pigate-direwolf.conf"
4 changes: 2 additions & 2 deletions files/home/pi/rtl-dw-start.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

if test -f "/boot/DISABLE_SDR"; then
direwolf -c /home/pi/pigate.conf -L /home/pi/aprslogs/aprs.log
direwolf -c /home/pi/pigate-direwolf.conf -L /home/pi/aprslogs/aprs.log
else
rtl_fm -f 144.39M | direwolf -c /home/pi/pigate.conf -L /home/pi/aprslogs/aprs.log
rtl_fm -f 144.39M | direwolf -c /home/pi/pigate-direwolf.conf -L /home/pi/aprslogs/aprs.log
fi
2 changes: 1 addition & 1 deletion packer/aprs-pigate.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
{
"type": "file",
"source": "files/boot/user-data.yaml",
"source": "files/boot/user-data",
"destination": "/boot/user-data"
},
{
Expand Down

0 comments on commit f1acbb0

Please sign in to comment.