storj-telemetry-reporterdeprecated

telemetry reporter module for farming nodes

Usage no npm install needed!

<script type="module">
  import storjTelemetryReporter from 'https://cdn.skypack.dev/storj-telemetry-reporter';
</script>

README

Telemetry Reporter

Build Status License

Handles reporting anonymous usage statistics from a farmer identity on the Storj network.

Usage

npm install storj-telemetry-reporter
const {KeyPair} = require('storj');
const TelemetryReporter = require('storj-telemetry-reporter');
const keypair = new KeyPair();
const reporter = new TelemetryReporter('https://status.storj.io', keypair);

let report = {
  storageAllocated: 21474836480,
  storageUsed: 5368709120,
  contactNodeId: keypair.getNodeID(),
  paymentAddress: '1BjHLq2rWNoDne6jHZ3FHavUNK2UvRmjYZ'
};

reporter.send(report, (err, result) => {
  if (err) {
    return console.error(err.message);
  }

  console.info('telemetry report sent and accepted');
});