This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Script to get callsign data | |
# usage: gcs callsign | |
# | |
# this ruby script uses nokogiri | |
# which must be installed: | |
# sudo gem install nokogiri | |
# | |
# prerequisite for nokogiri is ruby-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'gpsd_client' | |
require 'maidenhead' | |
require 'socket' | |
require 'json' | |
ft8call_port = 2237 | |
gpsd = GpsdClient::Gpsd.new() | |
gpsd.start() | |
apicmd = {} |