Skip to content

alrs/fcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fcc

The root fcc package provides the data structures necessary for parsing the amateur-relevant portion of the FCC license database that is provided as a 1GB+ csv file.

cmd/fcc2bolt is a console application that reads the zipfile of the FCC dump, parses it, and inserts active amateur licenses into a boltDB store.

cmd/fccdb is a console application for doing name and address lookups of FCC-issued amateur callsigns.

Installation

The fcc package can be used as-is. To download and ingest the FCC database, this software requires wget, make, and the go toolchain.

make help provides all options in the Makefile.

make will build the cmd binaries, download the FCC dataset, and perform the boltdb ingestion.

sudo make install will copy fccdb and fccd to /usr/local/bin/ and the fcc.db database to /usr/share/fccdb.

fccd

fccd listens on port 8080, and picks up a non-default DB location from the FCCDB environment variable.

Lookups against the fccd API can be made in the format: /license/<FCC CALLSIGN>

From the console: curl http://localhost:8080/license/kj6cbe

The expected result:

{ "Name": "Lehtonen, Lars A", "Address": "1727 Glendale Blvd", "City": "Los Angeles", "State": "CA", "ZIP": "90026" }

About

Parse the FCC license database dump

Resources

License

Stars

Watchers

Forks

Packages

No packages published