Font size changes on onchain data dashboard

This commit is contained in:
Black Coffee 2022-10-20 17:04:34 +01:00
parent 82d4933d74
commit 65a3e4feb2
2 changed files with 8 additions and 8 deletions

View File

@ -102,7 +102,7 @@ async def get_mining_dashboard(gerty):
text = []
stat = r.json()["remainingTime"]
text.append(get_text_item_dict("Time to next difficulty adjustment", 12))
text.append(get_text_item_dict(get_time_remaining(stat / 1000, 3), 20))
text.append(get_text_item_dict(get_time_remaining(stat / 1000, 3), 12))
areas.append(text)
# difficultyChange

View File

@ -297,16 +297,16 @@ async def get_onchain_dashboard(gerty):
text = []
stat = round(r.json()["progressPercent"])
text.append(
get_text_item_dict("Progress through current difficulty epoch", 12)
get_text_item_dict("Progress through current epoch", 12)
)
text.append(get_text_item_dict("{0}%".format(stat), 20))
text.append(get_text_item_dict("{0}%".format(stat), 60))
areas.append(text)
text = []
stat = r.json()["estimatedRetargetDate"]
dt = datetime.fromtimestamp(stat / 1000).strftime("%e %b %Y at %H:%M")
text.append(
get_text_item_dict("Estimated date of next difficulty adjustment", 12)
get_text_item_dict("Date of next difficulty adjustment", 12)
)
text.append(get_text_item_dict(dt, 20))
areas.append(text)
@ -315,20 +315,20 @@ async def get_onchain_dashboard(gerty):
stat = r.json()["remainingBlocks"]
text.append(
get_text_item_dict(
"Blocks remaining until next difficulty adjustment", 12
"Blocks until next adjustment", 12
)
)
text.append(get_text_item_dict("{0}".format(format_number(stat)), 20))
text.append(get_text_item_dict("{0}".format(format_number(stat)), 60))
areas.append(text)
text = []
stat = r.json()["remainingTime"]
text.append(
get_text_item_dict(
"Blocks remaining until next difficulty adjustment", 12
"Blocks until next adjustment", 12
)
)
text.append(get_text_item_dict(get_time_remaining(stat / 1000, 4), 20))
text.append(get_text_item_dict(get_time_remaining(stat / 1000, 4), 60))
areas.append(text)
return areas