mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-28 15:31:37 +00:00
More P+ info
This commit is contained in:
parent
f6edfd699f
commit
971eec2b75
|
@ -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")
|
||||
|
|
|
@ -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 |
Loading…
Reference in New Issue
Block a user