Giter Site home page Giter Site logo

technologiespro / witness-monitor Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 5.0 55 KB

Price Feed Script for BitShares SmartAssets & Witness monitor on nodejs

License: MIT License

JavaScript 98.04% HTML 1.04% CSS 0.66% Shell 0.26%
bitshares bts witness pricefeed nodejs

witness-monitor's Introduction

Price Feed Script for BitShares SmartAssets & Witness monitor

(+) Publish Price feeds BitShares SmartAssets

(~) Personal Telegram notifications about witness work & stats

Prices

EUR, RUBLE, USD, CNY, JPY, GBP, AUD, SEK, KRW

NodeJS Setup (if necessary)

sudo apt-get install build-essential g++ python git curl ntp htop nmon iftop nano -y
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh 2>/dev/null | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
nvm install 10.21.0 >>install.log
nvm use 10.21.0 >>install.log
nvm alias default 10.21.0
npm install -g npm forever grunt-cli

Install App

git clone https://github.com/technologiespro/witness-monitor.git
cd witness-monitor
npm install

Settings

mv sample.config.json config.json
nano config.json

set

  • producer.name - witness name
  • producer.key - witness active key
  • priceFeeds.cron.minute - (0 - 59) schedule, default run on every 51 minute

save and exit from nano editor: CTRL+O, CTRL+X

Start/Stop

npm start for testing

forever start bin/www for background running

forever stop bin/www for stopping

or sh restart.sh shell script restart

GOLD, SILVER metal provider

  • register on metals-api.com
  • get API KEY
  • SET API KEY in config.json > API.METALS = "YOUR_METAL_API_KEY"

default run every 24 hours

witness-monitor's People

Contributors

technologiespro avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.