From 51dbf123fd11fe4b92ca641a201dffb3767654ae Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Thu, 23 Mar 2023 20:53:48 -0500 Subject: [PATCH] Add Premium+ log --- rootfs/standard/var/www/mynode/settings.py | 8 +++++++ .../var/www/mynode/templates/status.html | 22 +++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/rootfs/standard/var/www/mynode/settings.py b/rootfs/standard/var/www/mynode/settings.py index 50fb6d1f..f64a6859 100644 --- a/rootfs/standard/var/www/mynode/settings.py +++ b/rootfs/standard/var/www/mynode/settings.py @@ -212,6 +212,8 @@ def page_status(): "quicksync_status": quicksync_status, "quicksync_status_color": quicksync_status_color, "is_bitcoin_synced": is_bitcoin_synced(), + "is_premium_plus_token_set": has_premium_plus_token(), + "is_premium_plus_active": is_premium_plus_active(), "apps": get_all_applications(order_by="alphabetic"), #"bitcoin_status_log": bitcoin_status_log, "bitcoin_status": get_service_status_basic_text("bitcoin"), @@ -289,6 +291,12 @@ def page_status(): #"usb_extras_status_log": get_journalctl_log("usb_extras"), "usb_extras_status": get_service_status_basic_text("usb_extras"), "usb_extras_status_color": get_service_status_color("usb_extras"), + #"premium_plus_connect_status_log": get_journalctl_log("premium_plus_connect"), + "premium_plus_connect_status": get_service_status_basic_text("premium_plus_connect"), + "premium_plus_connect_status_color": get_service_status_color("premium_plus_connect"), + #"rathole_status_log": get_journalctl_log("rathole"), + "rathole_status": get_service_status_basic_text("rathole"), + "rathole_status_color": get_service_status_color("rathole"), #"corsproxy_status_log": get_journalctl_log("corsproxy"), "corsproxy_status": get_service_status_basic_text("corsproxy_btcrpc"), "corsproxy_status_color": get_service_status_color("corsproxy_btcrpc"), diff --git a/rootfs/standard/var/www/mynode/templates/status.html b/rootfs/standard/var/www/mynode/templates/status.html index 51abfd13..699b7575 100644 --- a/rootfs/standard/var/www/mynode/templates/status.html +++ b/rootfs/standard/var/www/mynode/templates/status.html @@ -337,6 +337,28 @@
{% endif %} + {% if is_premium_plus_token_set %} +
Premium+ Status
+
+
+ {{ premium_plus_connect_status }} +
+ + +
+ {% endif %} + + {% if is_bitcoin_synced and is_premium_plus_active %} +
Public Apps Status
+
+
+ {{ rathole_status }} +
+ + +
+ {% endif %} +
Web Server Status