
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
HAMfinder is a Ruby gem built to make developing Ruby on Rails-based amateur radio programs easier to develop.
Querying Repeaterbook.com's data using application-defined criteria, this gem returns a collection of repeaters matching the criteria in JSON format - conveniently named sequentially, sorted by ascending proximity! For example, here is a record for a 2 meter band repeater near me in Washington, DC:
{"1" =>
{:frequency=>"145.1100",
:offset=>"-0.6MHz",
:tone=>"CC1",
:call=>"K4DCA",
:location=>"Washington",
:state=>"DC",
:usage=>"OPEN",
:voip=>"",
:distance=>"0.8",
:direction=>"S"}}
Add this line to your application's Gemfile:
gem 'hamfinder'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hamfinder
Now you can use your HAMFinder's query method to retrieve data according to your provided parameters.
@results = Hamfinder::Parser.query( zip:"11232", radius:5, band:"2m" )
The .query()
method accepts the following options:
The zip
parameter must be a valid 5 digit US postal zip code passed as a string (i.e. zip:"22181"
).
The radius
parameter (in miles) must be an integer greater than 0 and less than or equal to 200 (i.e. radius:50
). If no radius is entered as a parameter the default is a radius of 10 miles, roughly the maximum distance a low powered handheld radio can reach on 2m band.
The band
parameter specifies the frequency band you wish to query, and must be passed as a string. band
accepts the following values, or defaults to 2m
:
"10m"
"6m"
"2m"
"1.25m"
"70cm"
"33cm"
"23cm"
Examples of output:
#10m band repeaters within 5 miles of 20009, Washington DC
puts Hamfinder::Parser.query( zip:"20009", band:"10m", radius:5 )
=> ["NO REPEATERS FOUND WITHIN 5 MILES of 38.9191485, -77.0362967."]
#2m band repeaters within 2 miles of 20009, Washington DC
puts Hamfinder::Parser.query( zip:"20009", radius:2 )
=> { "1" =>{:frequency=>"145.1100", :offset=>"-0.6MHz", :tone=>"CC1", :call=>"K4DCA",
:location=>"Washington", :state=>"DC", :usage=>"OPEN",
:voip=>"", :distance=>"0.8", :direction=>"S"},
"2" =>{:frequency=>"145.1900", :offset=>"-0.6MHz", :tone=>"151.4", :call=>"W3DOS",
:location=>"Washington,HarryS.TrumanBuilding", :state=>"DC", :usage=>"OPEN",
:voip=>"", :distance=>"1.7", :direction=>"S"},
"3" =>{:frequency=>"147.3600", :offset=>"+0.6MHz", :tone=>"", :call=>"W3AGB",
:location=>"Washington", :state=>"DC", :usage=>"OPEN",
:voip=>"", :distance=>"1.7", :direction=>"S"},
"4" =>{:frequency=>"145.4300", :offset=>"-0.6MHz", :tone=>"114.8", :call=>"K3MRC",
:location=>"Washington,D.C.", :state=>"DC", :usage=>"OPEN",
:voip=>"", :distance=>"1.7", :direction=>"S"} }
#2m band repeaters within a default 10 miles of 20009, Washington DC
puts Hamfinder::Parser.query( zip:"20009" )
=> { "1" =>{:frequency=>"147.3150", :offset=>"+0.6MHz", :tone=>"107.2", :call=>"W4HFH",
...
Bug reports and pull requests are welcome on GitHub at https://github.com/jasonallenphotography/HAMfinder_gem. This project is intended to be a welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that hamfinder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.