From cbb37a652af9c64970c42f49b211cad4742af536 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Tue, 24 Sep 2019 21:54:46 -0500 Subject: [PATCH] Add Electrum Local IP Command --- rootfs/standard/var/www/mynode/electrum_server.py | 4 ++++ .../standard/var/www/mynode/templates/electrum_server.html | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/rootfs/standard/var/www/mynode/electrum_server.py b/rootfs/standard/var/www/mynode/electrum_server.py index 880e9417..9a659688 100644 --- a/rootfs/standard/var/www/mynode/electrum_server.py +++ b/rootfs/standard/var/www/mynode/electrum_server.py @@ -92,6 +92,9 @@ def electrum_server_page(): server_standard_port = "50001" server_secure_port = "50002" + # Get IP URLs + electrs_command = "./electrum -1 -s {}:50002:s".format(server_ip) + # Get Onion URLs electrs_onion_hostname = "..." electrs_onion_password = "..." @@ -118,6 +121,7 @@ def electrum_server_page(): "server_ip": server_ip, "server_standard_port": server_standard_port, "server_secure_port": server_secure_port, + "electrs_command": electrs_command, "electrs_onion_hostname": electrs_onion_hostname, "electrs_onion_password": electrs_onion_password, "electrs_onion_command": electrs_onion_command diff --git a/rootfs/standard/var/www/mynode/templates/electrum_server.html b/rootfs/standard/var/www/mynode/templates/electrum_server.html index 0566372d..06917b9c 100644 --- a/rootfs/standard/var/www/mynode/templates/electrum_server.html +++ b/rootfs/standard/var/www/mynode/templates/electrum_server.html @@ -47,6 +47,13 @@ +
+
+
Electrum CLI Command
+
{{electrs_command}}
+
+
+