🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
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
Version published
Weekly downloads
1
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

chia

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