Waves Full Node Monitor Project

in #utopian-io6 years ago (edited)

Waves Full Node Monitor

WavesBlock is a NodeMCU powered monitor, that allows one to track the status of a Waves Full node, as well as the servers stats.

Waves is a proof of stake, open source blockchain platform, with leasing and voting implementations, and its own decentralized exchange (DEX) that allows users to launch their own custom tokens.

The monitor connects to the node every 30 seconds, and calls a custom script to get information, the screen displays the following information;

  • Waves Logo
  • Node Name
  • Node Version
  • CPU / RAM / Disk % Usage
  • Node connected peers count
  • Node status (Mining, Not Mining)
  • Node timestamp of status
  • Current node block and network block height
  • Generating Balance (Nodes need a minimum of 1000 waves to stake, these can be leased. This balance is the effective balance, which is wallet balance + leased balance)
  • Voting (In the example picture, Features 1, 2 and 3 have been voted for)

The Electronics

The build this, you will need;
Node MCU v3 Wifi Development Board
OLED Screen

And depending on your implementation, either some female to female connecting wires, or a breadboard.

You will need to connect up the wires to 3v, g, D1 and D2, as per the picture;

The Coding

You will need to use https://nodemcu-build.com/ to build a firmware. Select the options as per;

And you can follow instructions from the site to flash the firmware.

I've uploaded the code its self to ;

https://github.com/theapplicationist/wavesblock-nodemcu-monitor

And you can pop in your own WiFi details and send this code to your NodeMcu using Esplorer (https://esp8266.ru/esplorer/)

The status.php file needs to be hosted on your node, I chose PHP for this as its easy enough to deploy onto a standard ubuntu server. Point the IP in queryserver.lua to your server, and make sure your node configuration file has the Rest API turned on (You can set the IP to 127.0.0.1 since the script queries the API locally)

The Box

Obviously you can put this in any box, or even just keep it on a breadboard. I chose to build a 'Waves Logo' box, using a cheap wooden box from the Chinese supermarket.

I marked up and cut out a hole for the screen, and glued it behind, passed a USB cable through the back (And through the stand) and painted it all Blue (Almost Waves blue!)

The End

Hope you liked this, and if you have any questions let me know in the comments.

All feedback welcome, all PR's reviewed!

Please consider leasing to my waves node @
alias: waves.theapplicationist.com

https://waves.theapplicationist.com



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Hey @applicationist I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • This is your first accepted contribution here in Utopian. Welcome!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Your contribution cannot be approved because it does not follow the Utopian Rules.

The repo contains no Program source code and License file

You can contact us on Discord.
[utopian-moderator]

Coin Marketplace

STEEM 0.18
TRX 0.13
JST 0.029
BTC 58296.82
ETH 3138.24
USDT 1.00
SBD 2.22