diff --git a/rootfs/standard/var/pynode/device_info.py b/rootfs/standard/var/pynode/device_info.py index 0033098e..39dcd91a 100644 --- a/rootfs/standard/var/pynode/device_info.py +++ b/rootfs/standard/var/pynode/device_info.py @@ -820,6 +820,15 @@ def save_premium_plus_token(token): set_file_contents("/home/bitcoin/.mynode/.premium_plus_token", token) set_file_contents("/mnt/hdd/mynode/settings/.premium_plus_token", token) +def get_premium_plus_response_data(): + data = [] + try: + with open("/tmp/premium_plus_response.json", "r") as f: + data = json.load(f) + except Exception as e: + data = None + return data + def recheck_premium_plus_token(): reset_premium_plus_token_status() os.system("systemctl restart premium_plus_connect") diff --git a/rootfs/standard/var/www/mynode/mynode.py b/rootfs/standard/var/www/mynode/mynode.py index ec8d3cf4..4132aeb3 100644 --- a/rootfs/standard/var/www/mynode/mynode.py +++ b/rootfs/standard/var/www/mynode/mynode.py @@ -553,6 +553,8 @@ def index(): "is_device_from_reseller": is_device_from_reseller(), "product_key_skipped": pk_skipped, "product_key_error": pk_error, + "premium_plus_has_access_token": has_premium_plus_token(), + "premium_plus_is_connected": get_premium_plus_is_connected(), "fsck_error": has_fsck_error(), "fsck_results": get_fsck_results(), "sd_rw_error": has_sd_rw_error(), diff --git a/rootfs/standard/var/www/mynode/static/images/mynode_premium_icon.png b/rootfs/standard/var/www/mynode/static/images/mynode_premium_icon.png index a4442bcc..9c52af06 100644 Binary files a/rootfs/standard/var/www/mynode/static/images/mynode_premium_icon.png and b/rootfs/standard/var/www/mynode/static/images/mynode_premium_icon.png differ