updated some formatting on charts
This commit is contained in:
@@ -154,7 +154,7 @@ async def miner_websocket(websocket: WebSocket, miner_ip):
|
|||||||
"fans": fan_speeds,
|
"fans": fan_speeds,
|
||||||
"datetime": datetime.datetime.now().isoformat()}
|
"datetime": datetime.datetime.now().isoformat()}
|
||||||
await websocket.send_json(data)
|
await websocket.send_json(data)
|
||||||
await asyncio.sleep(5)
|
await asyncio.sleep(1)
|
||||||
except asyncio.exceptions.TimeoutError:
|
except asyncio.exceptions.TimeoutError:
|
||||||
data = {"error": "The miner is not responding."}
|
data = {"error": "The miner is not responding."}
|
||||||
await websocket.send_json(data)
|
await websocket.send_json(data)
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ var minerDataChart = new Chart(document.getElementById("line-chart"), {
|
|||||||
options: {
|
options: {
|
||||||
animation: {
|
animation: {
|
||||||
easing: 'easeInSine',
|
easing: 'easeInSine',
|
||||||
duration: 250
|
duration: 0
|
||||||
},
|
},
|
||||||
plugins: {
|
plugins: {
|
||||||
chartAreaBorder: {
|
chartAreaBorder: {
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ var minerDataChart = new Chart(document.getElementById("line-chart"), {
|
|||||||
options: {
|
options: {
|
||||||
animation: {
|
animation: {
|
||||||
easing: 'easeInSine',
|
easing: 'easeInSine',
|
||||||
duration: 250
|
duration: 0
|
||||||
},
|
},
|
||||||
plugins: {
|
plugins: {
|
||||||
chartAreaBorder: {
|
chartAreaBorder: {
|
||||||
@@ -177,7 +177,8 @@ var minerDataChart = new Chart(document.getElementById("line-chart"), {
|
|||||||
|
|
||||||
var options_fans = {
|
var options_fans = {
|
||||||
animation: {
|
animation: {
|
||||||
duration: 0,
|
easing: 'easeInSine',
|
||||||
|
duration: 250,
|
||||||
},
|
},
|
||||||
aspectRatio: 1.5,
|
aspectRatio: 1.5,
|
||||||
events: [],
|
events: [],
|
||||||
|
|||||||
Reference in New Issue
Block a user