cgminer-network-scanner
This module will;
Last updated 2 years ago by asbjornenge .
MIT · Original npm · Tarball · package.json
$ cnpm install cgminer-network-scanner 
SYNC missed versions from official npm registry.

cgminer-network-scanner

This module will;

  • Scan you local network using arp-scan
  • Check if specified cgminer-port is open
  • Try to use the cgminer-api to query the miner type
  • Return a list of miners with ip address and type

Install

apt install arp-scan
npm install --save cgminer-network-scanner

Use

const cns = require('cgminer-network-scanner')

let miners = cns({
  cgminer_port: 4028,
  interface: 'en0'
})

console.log(miners)

--

[
  {
    "ip": "10.30.0.62",
    "type": "DT1"
  },
  {
    "ip": "10.30.0.63",
    "type": "DT1"
  }
]

Changelog

1.0.0

  • Initial release :tada:

Current Tags

  • 1.1.0                                ...           latest (2 years ago)

2 Versions

  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |