项目作者: Niweera

项目描述 :
CPU Meter using NodeJS backend and view using NodeMCU 7Segment LED
高级语言: C++
项目地址: git://github.com/Niweera/cpu-meter.git
创建时间: 2020-04-24T11:47:27Z
项目社区:https://github.com/Niweera/cpu-meter

开源协议:MIT License

下载


CPU-METER

CPU Meter using NodeJS backend and view using NodeMCU 7 Segment LED

How to use

Set up CPU-METER

  1. On your linux server install sysstat package. (Refer)
  1. sudo apt-get install sysstat
  1. Enable monitoring via,
  1. sudo nano /etc/default/sysstat

set

  1. ENABLED="true"
  1. Install pm2 using
  1. npm install -g pm2
  1. Install cpu-meter using
  1. npm install --save
  1. Start cpu-meter
  1. pm2 start
  1. Take note of your IP Address (Remember to open port 9000 on your linux server)

Set up NodeMCU project

  1. Open the code via Arduino IDE (Refer)

  2. Change the WIFI_SSID and WIFI_PASSWORD

  3. Change the CPU_METER_IP_ADDRESS to your linux server’s IP Address

  4. Import SevSeg package to IDE by downloading (SevSeg.zip)

  5. Setup your Seven Segment and note down the digitPins from NodeMCU. (NodeMCU Pinout)

  6. Upload your code to NodeMCU.

  7. Done.

image

Acknowledgement

The following references were a tremendous help.

  1. https://www.instructables.com/id/Controlling-7-Segment-LED-Display-Using-ESP8266-We/

  2. https://www.circuitbasics.com/arduino-7-segment-display-tutorial/

  3. https://randomnerdtutorials.com/esp8266-web-server/

  4. https://mechatronicsblog.com/esp8266-nodemcu-pinout-for-arduino-ide/

  5. https://circuits4you.com/2019/01/11/nodemcu-esp8266-arduino-json-parsing-example/

  6. https://electrosome.com/calling-api-esp8266/

  7. https://www.instructables.com/id/ESP8266-Parsing-JSON/

  8. https://arduinojson.org/v6/doc/upgrade/

  9. https://arduinojson.org/v6/assistant/