Giter Club home page Giter Club logo

ruby-pota-csv-to-adif's Introduction

ruby-pota-csv-to-adif

Converts a CSV file of a Parks on the Air log to ADIF

Overview

This is a very simple conversion tool for Ham radio operators to use to convert a CSV log file of a POTA activation to the ADIF file format required by the Parks on the Air program.

The basic flow:

  • Log contacts in a spreadsheet (Excel, Google Sheets, etc.) using the designated set of headers
  • Export the file to CSV
  • Run this converter
  • Send the converted file to your regional POTA admin

Installation

Prerequisites

Install the ruby-pota-csv-to-adif gem

gem install ruby-pota-csv-to-adif

How to use

  • Create a spreadsheet with the following headers:
    • CALL
    • QSO_DATE
    • TIME_ON
    • BAND
    • MODE
    • OPERATOR
    • MY_SIG_INFO
    • SIG_INFO
    • STATION_CALLSIGN
  • Log contacts using the formats defined by the Parks on the Air documentation as this converter performs no validation or conversion of values. What you enter is what will come out!
  • Export the spreadsheet to CSV, naming it with the filename format requested by your regional administrator (e.g., KJ7LOW@K-2850_20210221.csv)
  • In a terminal window, run the converter, passing it the path to your CSV file
  • If no errors occur, the converted ADI file will now be in the same directory as the source CSV file

Note: Other headers/columns may appear in your spreadsheet, but they will be ignored. If you want to include FREQUENCY for example, go right ahead. It won't be included in the final output. The final output is limited to only the fields that the POTA admins want to see.

Also note: The header MY_SIG is always POTA. You can include this column in your spreadsheet or not. It'll always appear as POTA in the final product.

Example

$ ruby-pota-csv-to-adif ~/pota-logs/KJ7LOW@K-2850_20210221.csv
$ ls -l ~/pota-logs
total 16
-rw-r--r--  1 edcopony  staff  2280 Feb 27 11:45 KJ7LOW@K-2850_20210221.adi
-rw-r--r--  1 edcopony  staff   873 Feb 27 11:36 KJ7LOW@K-2850_20210221.csv

ruby-pota-csv-to-adif's People

Contributors

ecopony avatar flwyd avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

flwyd

ruby-pota-csv-to-adif's Issues

convert doesn't close file

Rather than installing this as a gem, I ran an interactive irb session, required the file in lib, and called

log = ::PotaCsvToAdif::LogFile.new('my.csv')
log.convert

This resulted in an empty my.adi file until I exited the interpreter, which flushed the written data to disk and closed the output file.

convert should ensure the output file is closed, possibly by passing a block to File.open.

Thanks

Just wanted to say thanks for this package. Makes logging and making an ADIF MUCH easier!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.