Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions monitor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ Monitors the health of your peers and helps you to decide if you might want to c

## Installation

You need [uv](https://docs.astral.sh/uv/getting-started/installation/) to run this
plugin like a binary. After `uv` is installed you can simply run

```
lightning-cli plugin start /path/to/monitor.py
```

For general plugin installation instructions see the repos main
[README.md](https://github.com/lightningd/plugins/blob/master/README.md#Installation)

Expand Down
11 changes: 10 additions & 1 deletion monitor/monitor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/usr/bin/env python3
#!/usr/bin/env -S uv run --script

# /// script
# requires-python = ">=3.9.2"
# dependencies = [
# "pyln-client>=24.11",
# "packaging>=24.1"
# ]
# ///

"""
This is a quick hack and adapted plugin from the summary.py plugin (orinigally written by Rusty Russell
This one is adapted by Rene Pickhardt and aims to help you identify inactive channels quickly
Expand Down
16 changes: 16 additions & 0 deletions monitor/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[project]
name = "monitor"
version = "0.1.0"
description = "Monitors the health of your peers and helps you to decide if you might want to close a channel"
readme = "README.md"
requires-python = ">=3.9.2"

[dependency-groups]
dev = [
"pytest>=7.4,<9",
"pytest-xdist>=3.7,<4",
"pytest-timeout>=2.4,<3",
"pyln-testing>=24.11.1",
"pyln-client>=24.11.1",
"pyln-proto>=24.11.1",
]
1 change: 0 additions & 1 deletion monitor/requirements.txt

This file was deleted.

Loading