More P+ info

This commit is contained in:
Taylor Helsper 2022-07-22 21:56:36 -05:00
parent f6edfd699f
commit 971eec2b75
3 changed files with 11 additions and 0 deletions

View File

@ -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")

View File

@ -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(),

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 32 KiB