https://github.com/code-lever/cgminer-api
Ruby gem to interact with cgminer RPC API.
https://github.com/code-lever/cgminer-api
Last synced: 9 months ago
JSON representation
Ruby gem to interact with cgminer RPC API.
- Host: GitHub
- URL: https://github.com/code-lever/cgminer-api
- Owner: code-lever
- License: mit
- Created: 2014-01-09T19:17:17.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2018-07-24T14:32:12.000Z (over 7 years ago)
- Last Synced: 2025-07-06T01:03:46.283Z (9 months ago)
- Language: Ruby
- Size: 16.6 KB
- Stars: 8
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# CGMiner::API [](https://travis-ci.org/code-lever/cgminer-api) [](https://codeclimate.com/github/code-lever/cgminer-api)
A pretty basic Ruby gem to use to interact with a CGMiner (or compatible) Bitcoin/Litecoin mining application.
## Installation
Add this line to your application's Gemfile:
gem 'cgminer-api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cgminer-api
## Usage
client = CGMiner::API::Client.new('localhost', 4028)
client.version
=> #"S", "When"=>1391460011, "Code"=>22,
"Msg"=>"CGMiner versions", "Description"=>"cgminer 3.7.2"},
@body=[{"CGMiner"=>"3.7.2", "API"=>"1.32"}]>
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request