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;
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;
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)
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!)
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