Coder Social home page Coder Social logo

nh-dashboard's Introduction

nh-dashboard

A simple NiceHash dashboard that displays:

Overview

  • Daily mining profits
  • BTC and ETH current price
  • Unpaid balance
  • Wallet Balance

Rig Stats

  • #โ  of rigs online
  • #โ  of devices online
  • total power usage (GPU only; does not include system power)
  • total speed

Rigs

  • rig total speed
  • rig total power
  • rig efficiency
  • rig profit
  • individual device temp
  • individual device vram temp
  • individual device speed
  • individual device fan speed
  • individual device power
  • individual device efficiency

Built with React.js and Express.js using NiceHash API.

Demo

https://nh-dashboard-d4tym.ondigitalocean.app/

Getting Started

First step is to adjust the filename for the .env-example file and change it to .env

Next step is to go to NiceHash Dashboard settings in your computer and get the API information. Add that to the .env file

Next, install the dependencies with npm i

npm i

Running The App in Development

To run the app, run:

npm run dev

Running The App in Prod

To run the app, run:

npm run start

Digital Ocean

I currently use digital ocean to host the app. Cost $5 a month to run on basic plan. Here are the steps to get it set up:

  1. Make sure you have forked this repository on GitHub
  2. Create a DigitalOcean account if you dont have one
  3. Click the green Create button at the top right of the screen; Click Apps
  4. Select GitHub as service provider; select the repository; click next
  5. Click edit plan, select the plan size (I use basic - $5 a month)
  6. Select Create Resources
  7. It should deploy with your most recent commmit to main
  8. make sure to set the environment variables within your settings I have the settings set so that it auto deploys when a commit is made to main

Donations:

BTC: bc1q7e2rtx7ktrl27wt97avk42994v8ve8ctjk6kzm

BTC Address

nh-dashboard's People

Contributors

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