| Crates.io | lightning-sentinel |
| lib.rs | lightning-sentinel |
| version | 0.1.4 |
| created_at | 2021-12-18 00:43:45.823819+00 |
| updated_at | 2022-01-24 02:01:52.585067+00 |
| description | A telegram bot written in rust that will monitor a lighting node over tor. It does this through calling the node's REST API and sending notifications to a telegram private channel with the node administrator |
| homepage | |
| repository | https://github.com/tee8z/lightning-sentinel |
| max_upload_size | |
| id | 499867 |
| size | 162,805 |
NOTE: CURRENTLY ONLY SUPPORTS LND, BUT THERE ARE PLANS TO SUPPORT OTHER IMPLEMENTATIONS AS WELL IF PEOPLE FIND THIS USEFULL
\helplncli bakemacaroon uri:/lnrpc.Lightning/GetInfo\start command with the tuple (<lightning_node_tor_address>,<macaroon>),
ex:
(https://wkdirllfgoofflfXXXXXXXXXXXXXXXXXXXXXXXXXXXXJJJJJJJJJJJJ.onion:8080, XXXXXXXXXXX...)Build the binary from source using the Dockerfile or download the static binary from the github release:
docker build . & docker-compose run lightning-sentinelDownload binary: wget https://github.com/tee8z/lightning-sentinel/releases/download/initial-release/lightning-sentinel
Copy the built binary to where you would like to run the service
Don't forget to make the binary excutable with: sudo chmod +x lightning-sentinel
Create a Settings.toml file from the Settings.default.toml in the directory it will be running in
Add your telegram bot ID recieved from botfather
Then, go to /etc/systemd/system and create the following file, name lightning-sentinel.service:
NOTE: If you'd like to run this under a different user than root, make sure to update the paths for WorkingDirectory & ExecStart
[Unit]
Description=Telegram Bot monitoring lightning nodes
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
User=root
WorkingDirectory=~
ExecStart=/root/lightning-sentinel
[Install]
WantedBy=multi-user.target
systemctl enable lightning-sentinel
systemctl daemon-reload
systemctl start lightning-sentinel
systemctl status lightning-sentinel, should be a green dot next to it now***NOTE: DO NOT HAVE THIS RUNNING ON THE SAME POWER SOURCE AS WHERE YOUR NODE IS RUNNING (WOULD DEFEATE THE PURPOSE OF THE BOT) ***
How to set up lnconnect over tor, and host your rest API over it:
https://github.com/openoms/bitcoin-tutorials/blob/master/Zap_to_RaspiBlitz_through_Tor.md
TODO: