Waves Full Node Monitor Project
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.
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.
Please consider leasing to my waves node @
address: 3P8raEihX2xog12F3jMLBnvRyPS3YVmDfEf
or
alias: waves.theapplicationist.com
Support Small Nodes!
It's amazing!
In support of your project, I am sending you few redfishcoin!
were you can earn 3% to 5% just by holding
latest updates were mades by @redfishelp
with Buy Back Program
Why thankyou!