Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chia-farm-monitor

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chia-farm-monitor

monitor chia farm status

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Chia Farm Monitor

Monitor chia farm status

Install

npm i chia-farm-monitor

Example


const Monitor = require('chia-farm-monitor');

const chia = '/path/to/chia';
const mon = new Monitor(chia, {interval: 5000, errorBackOffFactor: 2});

mon.on('farmError', (msg, summary) => {
	console.log('Farm error', msg);
	// summary might be undefined depending on the error
	console.log('Summary', summary);
});

mon.on('farmRestored', (summary) => {
	console.log('Farm has recovered from previous error', summary);
});

mon.on('farmOk', (summary) => {
	console.log('Farm ok', summary);
});

mon.on('error', (err) => console.log('something crapped out', err));

mon.start();

Keywords

FAQs

Package last updated on 14 May 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc