Commit graph

71 commits

Author SHA1 Message Date
Martin Hebnes Pedersen
98f9968bd5 Remove some deprecated config fields
- gpsd_addr: Use gpsd.addr instead.
- serial_tnc.baudrate: Use serial_tnc.hbaud instead.
2026-01-30 19:17:25 +01:00
Martin Hebnes Pedersen
0d32898036 Fix serial-tnc's "type" default value and options
This field is only for documentation purposes. The only valid value is
'kenwood', to clearly demonstrate that the serial-tnc transport has only
been tested with Kenwood TNCs.
2025-12-31 07:58:04 +01:00
Martin Hebnes Pedersen
503543f603 Remove obsolete serial-tnc rig field from config 2025-12-31 07:57:07 +01:00
Martin Hebnes Pedersen
80a19c174e Remove legacy // +build comments
Only required for Go 1.16 or older (which we no longer support)
2025-10-31 12:35:23 +01:00
Martin Hebnes Pedersen
7cf6d1c301 Include GPSd locator config in web gui 2025-08-20 11:24:04 +02:00
Martin Hebnes Pedersen
847542fdb1 Add automatic locator updates from GPSd
Implements hourly polling of GPSd to automatically update the locator field
in-memory based on current GPS position. This eliminates the need for manual
locator updates when operating from different locations.

The feature is opt-in via the new 'update_locator' config option and only
updates the in-memory locator value - the config file remains unchanged.
2025-08-19 20:51:12 +02:00
Martin Hebnes Pedersen
70c573af76 Add voacap-api engine
Mainly to be able to run VOACAP in a separate docker container.

Issue #494
2025-08-13 15:01:47 +02:00
Martin Hebnes Pedersen
8b09160457 Integrate prediction into rmslist
Enabled by default if voacapl or voacapw is found on the system.
Configuration options are available for advanced setup.

Issue #494
2025-08-12 19:24:01 +02:00
Martin Hebnes Pedersen
2ca0254efc Add option to set ARDOP connect requests parameter
Resolves #453
2025-06-03 10:26:50 +02:00
Martin Hebnes Pedersen
383f715228 Fix varahf/varafm bandwidth options in web config 2025-06-01 18:54:46 +02:00
Martin Hebnes Pedersen
31fb40654d Add message download prompting
Config option `auto_download_size_limit` (defaults to no limit).

Resolves #479
2025-05-22 14:55:09 +02:00
Martin Hebnes Pedersen
2e61f66a5a Support defining hamlib_rigs through env variables
The envconfig package introduced in 77cc83b does not handle map of
structs, so we have to handle hamlib_rigs manually.

This also defaults the "network" attribute to "tcp", which is what most
users want (for rigctld).
2023-11-07 22:45:06 +01:00
Martin Hebnes Pedersen
3c722bb7f4 Delete dated example_config.json
Pat will create a proper config with defaults on initial startup.
2023-04-30 09:04:44 +02:00
Martin Hebnes Pedersen
b6c22722a2 Remove handling of some deprecated config fields 2023-04-30 08:12:36 +02:00
Martin Hebnes Pedersen
d716296b52 Add support for AGWPE (e.g. Direwolf) over TCP
This eliminates the need for Linux's AX25 stack when using Direwolf or
AGWPE TNCs. It makes AGWPE the default AX.25 engine if the build does
not include Linux AX.25 support.

Direwolf >= v1.6 is recommended (< v1.2 is unsupported).

Closes #367
2023-02-21 11:14:17 +01:00
Martin Hebnes Pedersen
f399db73f5 Switch to more idiomatic config fields for VARA
As VARA is hardcoded to use port n+1 for the data stream, it seems
unnecessary to support configuration of ctrl and data ports
individually. By removing this option, we can use the same address
config idioms as in the rest of the app. Also switched to from camelCase
to under_score as this is what we use for all other fields.

Implemented backwards compatible by implementing the json.Unmarshaller
interface.
2022-10-20 07:55:31 +02:00
Chris Keller
6756d994eb Integrate with github.com/n8jja/Pat-Vara
Co-authored-by: gh42lb <92827417+gh42lb@users.noreply.github.com>
2022-08-20 21:25:03 +02:00
Martin Hebnes Pedersen
829fb196c2 Use bandwidth from config as default in web gui 2022-05-12 08:28:41 +02:00
Chris Keller
f1a4bd9f73 Add ARDOP dial bandwidth 2022-05-12 08:28:41 +02:00
Alan Crosswell
46a890059a Add several (some undocumented) insertion tags that are required for the Winlink Check In form. 2022-04-09 21:24:34 +02:00
Martin Hebnes Pedersen
587580f4bc Less dramatic gpsd http cfg documentation 2022-04-04 20:06:17 +02:00
Chris Keller
c6f3bfb2e6 Remove WINMOR support
Resolves #331.
2022-03-21 19:51:03 +01:00
Martin Hebnes Pedersen
3e4ab77bf8 serial-tnc: New baudrate config fields
This deprecates the serial_tnc.baudrate option. The documentation for
this field was incorrect, and the name was confusing. The field is
replaced by serial_tnc.hbaud and serial_tnc.serial_baud.

Backwards compatibility is maintained.

Closes #279

The wl2k-go upgrade also resolves #293
2021-10-31 17:12:08 +01:00
Chris Keller
6949d55907 Reintroduce config file forms_path for backward compat 2021-10-24 22:42:46 +02:00
Chris Keller
5a6764bce1 Revamp customized file paths
* Deprecate `forms_path` in the config file and replace with `--forms` flag
* Clean up `optionsSet()` to show correct defaults
* Clean up places that detected when `forms_path` was not configured (before it had a default)

Resolves https://github.com/la5nta/pat/issues/287
2021-10-24 22:42:46 +02:00
Chris Keller
e68850056e Fix some Go linter errors
* Replace(..., -1) with ReplaceAll
* Variable names hiding packages
* Error messages start with lowercase and no end punctuation
* Don't `defer` in a loop
* Etc.
2021-08-20 21:35:21 +02:00
Chris Keller
e94f05f37c Move config, data and state files to XDG locations
Addressing https://github.com/la5nta/pat/issues/216. Includes migration of existing files, plus refactoring of directory access and build info.
2021-08-15 19:35:15 +02:00
Martin Hebnes Pedersen
85d8445463 Go fmt 2021-06-30 20:58:55 +02:00
Chris Keller
3a8f8595f5 Configure a default forms path
This primes the user to run a forms update with zero configuration, but doesn't actually do it for them.  This could cause errors if they try to use forms before running the update. With some more work, we could make this more like the RMS list where the update happens proactively. For now, I think this is good enough.

Fixes #256
2021-06-30 20:56:23 +02:00
rainerg2000
c161d26171 added forms package, is not hooked up to any useful work yet 2021-06-16 20:08:41 +02:00
Martin Hebnes Pedersen
42463c7110 Support individual passwords for auxiliary addrs
Allow users to specify indivdual passwords for each auxiliary address by
addending :MyPassw0rd to the address entry in the configuration file.
(E.g. `LA5NTA:MySecretPassw0rd`).

If no password is specified, we use the primary account password as
before. This also works fine for password-less tactical addresses.

This change is completely backwards compatible.

Closes #143
2020-09-28 20:51:08 +02:00
Martin Hebnes Pedersen
cae0ab0720 go fmt 2019-12-08 23:37:50 +01:00
Martin Hebnes Pedersen
f35b5269b9 Fix invalid syntax in struct tag of GPSd
Ref #163
2019-12-08 23:35:16 +01:00
blockmurder
273ae99e89 EnableHttp should be spelled EnableHTTP since HTTP is an acronym. See https://github.com/la5nta/pat/pull/163#discussion_r329446190 2019-09-30 19:41:50 +02:00
blockmurder
9404ca4be6 Make sure, deprecated gpsd_addr is not written in new config files. Add deprecated hint. See https://github.com/la5nta/pat/pull/163#discussion_r329368898 2019-09-30 19:41:50 +02:00
blockmurder
e166b85665 Add legacy support for older config files (using gpsd_addr) 2019-09-30 19:41:50 +02:00
blockmurder
17cc57133f move GPSd config to its own struct. Only show warning when UI is served on all interfaces. Show who (IP) is accessing the GPSd data. 2019-09-30 19:41:20 +02:00
blockmurder
968f8e7af5 add new config options whilst maintaining backwards compatibility 2019-09-30 19:39:13 +02:00
Martin Hebnes Pedersen
19532a5efd Let user override default Service Codes via config
New config field service_codes takes an array of strings, each string
should be a valid service code that is used when updating rmslist.

I've extended the rmslist cache to support this. We now have multiple
cache files, one for each combination of service codes.

Closes #162
2019-09-26 18:45:21 +02:00
Martin Hebnes Pedersen
6149cb77c5 ptc-go changed scheme from ptc:// to pactor://
Issue #40
2019-01-05 17:00:39 +01:00
Martin Hebnes Pedersen
87c8927217 Add ptc serial baudrate config parameter
Issue #40
2018-02-21 20:51:49 +01:00
Martin Hebnes Pedersen
3010078852 Add support for PTC config and freq control
Issue #40
2018-02-21 20:51:49 +01:00
Martin Hebnes Pedersen
da2a11e183 Winlink CMS hostname changed to cms.winlink.org
This change was announced by the WDT after they migrated to the new
AWS 'cloud' CMS. The old hostname (server.winlink.org) is expected to
be operational for at least one year.

In addition to changing the config defaults, this commit includes a
(temporary) function that will rewrite user's config to replace the
old hostname.

Closes #104
2017-11-09 22:58:39 +01:00
Martin Hebnes Pedersen
e413a58416 Add drive_level winmor configuration option
Closes #99
2017-10-01 17:45:41 +02:00
Martin Hebnes Pedersen
f331de3952 Add some missing config defaults 2016-11-30 23:32:17 +01:00
Martin Hebnes Pedersen
a3beed93bc Fix typo 2016-05-11 18:57:36 +02:00
Martin Hebnes Pedersen
36d33507c0 Post version and callsign to CMS Web Services 2016-03-08 20:18:34 +01:00
Martin Hebnes Pedersen
be124da4d7 Update website urls 2016-03-05 23:48:14 +01:00
Martin Hebnes Pedersen
1956fa9df7 Set wl2k as axport in default config 2016-02-27 16:29:15 +01:00
Martin Hebnes Pedersen
a486423fec Remove wl2k-go reference from default config 2016-02-22 23:06:21 +01:00