Giter Site home page Giter Site logo

node-red-contrib-ethermine's Introduction

node-red-contrib-ethermine

Node-RED node for ethermine

Install

To install the stable version use the Menu - Manage palette - Install option and search for node-red-contrib-ethermine, or run the following command in your Node-RED user directory, typically ~/.node-red

npm install node-red-contrib-ethermine

Wrapper Ethermine API

Sample parameters

// msg.payload = {};
// msg.payload.api = 'miner'; //pool or miner or worker
// msg.payload.action = 'dashboard'; // if api is miner then action is history, poyouts, rounds, settings, currnetStats
// msg.payload.api = 'pool'; //pool or miner or worker
// msg.payload.action = 'poolStats'; // if api is pool then action is poolStats, blocksHistory, networkStats, serversHistory
// msg.payload.api = 'worker'; //pool or miner or worker
// msg.payload.action = 'workers'; // if api is worker then action is worker, history, currentStats, monitor

return msg;

Sample flows

[{"id":"748930ca.60e81","type":"inject","z":"2422d0a1.5c053","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":190,"y":80,"wires":[["8980037d.66ffb"]]},{"id":"8980037d.66ffb","type":"function","z":"2422d0a1.5c053","name":"","func":"// msg.payload = {};\n// msg.payload.api = 'miner'\n// msg.payload.action = 'dashboard'\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":380,"y":80,"wires":[["8186cef9.9d81"]]},{"id":"8186cef9.9d81","type":"ethermine","z":"2422d0a1.5c053","name":"","api":"miner","action":"currentStats","sort":"","start":"","creds":"7534ad3b.61b354","x":570,"y":80,"wires":[["53d0ea43.c95fc4"]]},{"id":"53d0ea43.c95fc4","type":"debug","z":"2422d0a1.5c053","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":760,"y":80,"wires":[]},{"id":"7534ad3b.61b354","type":"ethermine-miner","name":""}]

node-red-contrib-ethermine's People

Contributors

hkjang avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.