Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 2.31 KB

README.md

File metadata and controls

71 lines (50 loc) · 2.31 KB

Node Status Install Instructions

image

First, be sure that you can execute the commands bitcoin-cli and lncli with your user. If you don't, you need to check GO Path.

Initial Setup

  1. Dependencies: Python Libraries
    pip3 install flask
    pip3 install requests
    pip3 install psutil py-cpuinfo
    sudo apt-get update
    sudo apt-get install lm-sensors libsensors4-dev
    pip3 install pysensors
    pip3 install markdown

##Below is for a manual installation without git clone

  1. Get the files node-status.py, status.html, and message.txt

  2. Place node-status.py in your user directory /home/user/node-status

  3. Make a directory templates

    sudo mkdir templates
  4. Move the files status.html and message.txt to the directory /home/user/node-status/templates

  5. Edit the file message.txt and write anything you want

  6. Open the file node-status.config and fill out your configurations

    RUNNING_ENVIRONMENT = 'umbrel' - Change to 'umbrel' for Umbrel systems or 'minibolt' for minibolt / raspibolt or any standalone

    RUNNING_BITCOIN = 'local' - Change to 'external' if you are running Bitcoin Core on another machine

    UMBREL_PATH = "/path/to/umbrel/scripts/" - Path to Umbrel app for Umbrel users only

Only for Bitcoin Core Running on Another machine

  1. Open the file node-status.config and fill out with your Bitcoind credentials

    BITCOIN_RPC_USER = 'YOUR_BITCOIN_RPCUSER'

    BITCOIN_RPC_PASSWORD = 'YOUR_BITCOIN_RPCPASS'

    BITCOIN_RPC_HOST = 'YOUR_BITCOIN_MACHINE_IP'

    BITCOIN_RPC_PORT = '8332'

Last Steps

  1. Save and Exit

  2. Execute:

    python3 node-status.py
  3. Now you can access http://your_machine_ip:5000/status

Use the QR-CODE scan to pay invoice (Chrome and Mobile phones ONLY)

You need to create a self-signed certificate otherwise the browser will not permit camera access

Inside the node-status folder execute the command:

openssl req -x509 -newkey rsa:4096 -keyout key-ns.pem -out cert-ns.pem -days 365 -nodes

You need to edit the node-status.py and in the end of the file Follow the instructions to uncomment the https server line.

After doing this you need to access https://your_machine_ip:5000/status