Giter Site home page Giter Site logo

todays_hams's Introduction

This is a little command line tool that checks the FCC website for new and
upgraded amateur radio callsigns. It requires PhantomJS, which is a nifty
headless full-featured web browser.

You can find out more about PhantomJS here: http://phantomjs.org.

To use, put the files latest.js and lib-latest.js together in some directory,
then run latest.js with PhantomJS.

Latest.js will direct PhantomJS to browse to the FCC license search page, and
then will fill in the form, asking to search for licenses with an effective
date of today or tomorrow (local time).

It will then get the search results (paging through them if there is more than
one page), and will save the results in file named "out". There will be one
line per license in the results, containing the callsign and the name of the
callsign owner, tab separated.

This will be sorted by name.

WARNING! If the FCC makes changes to the implementation of the license
search page or the results page, that could easily break this tool. If
that happens, I *may* try to fix this tool, but I may not. I wrote this
for my convenience, and will lose a lot of interest in this as soon as
my license comes through. :-)

If you would prefer some other sorting order, edit lib-latest.js, and find
these lines in the function fill_search_form():

    t = document.getElementsByName("ulsSortBy")[0];
    select_option(t, "Name");

Change "Name" in the select_option call to any other valid option from the
search page. To find the valid options, go to the page in your regular
browser, and then find the sort drop down and look to see the option names.
The search page is here:

    http://wireless2.fcc.gov/UlsApp/UlsSearch/searchAmateur.jsp

Note: case is significant! Match the case the FCC uses on the form!

Other search options you might want to change are the kind of date that is
searched for. It defaults to "Effective Date". If you do not yet have a
ham radio license, you might want to change this to "Grant Date". Then
you will only see new licenses. If you already have a license, and are
looking for your upgrade to come through, keep it at "Effective Date".

If you want to limit results to particular license classes, find this
commented out code in lib-latest.js, and enable it, and change the
options to the ones you want. The selection box for this allows
multiple selection, so you can look for more than one type of
license.

    //t = document.getElementsByName("operatorCode")[0];
    //select_option(t, "Amateur Extra");
    //select_option(t, "General");

If you fiddle with the search options, and want to make sure you did it
right, take a look in latest.js and find and enable this line:

    //page.render("debug.png");

That will save a rendering of the search page after it has been filled
out in the file "debug.png".

todays_hams's People

Contributors

tzs avatar

Watchers

 avatar James Cloos avatar

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.