Skip to content

illdefined/cloudlog-adifwatch

Repository files navigation

Synopsis

This tool watches an ADIF log file for changes using the native filesystem notification mechanism and uploads it to a Cloudlog instance through the QSO API.

Usage

On Linux systems the recommended way to use this tool is through the provided systemd unit. It should be installed to ~/.config/systemd/user/, the URL of the Cloudlog instance adjusted appropriately and then started with systemctl --user start cloudlog-adifwatch.service. To start it automatically when the user logs in, enable it with systemctl --user enable cloudlog-adifwatch.service.

By default the systemd unit expects the Cloudlog API key to be available in a file at ~/.config/cloudlog-adifwatch/key.txt, uses station profile ID 1 and watches the WSJT-X ADIF log file at ~/.local/share/WSJT-X/wsjtx_log.adi. These paths can be adjusted as needed in the unit file.

Alternatively, this tool can be started manually.

Example

cloudlog-adifwatch https://fernschreibstelle.de ~/.config/cloudlog-adifwatch/key.txt 1 ~/.local/share/WSJT-X/wsjtx_log.adi

Implementation notes

The log is split into chunks of one ore more complete records which are then uploaded individually. Partial writes to the log file are handled gracefully and only complete records are uploaded.

The log file is kept open for reading and assumed to be appended to only. Truncation of the log file or overwriting of data already written to the log file will likely result in undesired behaviour.

About

Automatic upload of ADIF log to CloudLog

Topics

Resources

License

Stars

Watchers

Forks

Languages