updated some ports and fixed a bug with summary keys when getting data
This commit is contained in:
@@ -363,7 +363,7 @@ async def get_formatted_data(ip: ipaddress.ip_address):
|
|||||||
if miner_data:
|
if miner_data:
|
||||||
# get all data from summary
|
# get all data from summary
|
||||||
if "summary" in miner_data.keys():
|
if "summary" in miner_data.keys():
|
||||||
if not miner_data["summary"][0].get("SUMMARY") == []:
|
if not miner_data["summary"][0].get("SUMMARY") == [] and "SUMMARY" in miner_data["summary"][0].keys():
|
||||||
# temperature data, this is the idea spot to get this
|
# temperature data, this is the idea spot to get this
|
||||||
if "Temperature" in miner_data['summary'][0]['SUMMARY'][0].keys():
|
if "Temperature" in miner_data['summary'][0]['SUMMARY'][0].keys():
|
||||||
if not round(miner_data['summary'][0]['SUMMARY'][0]["Temperature"]) == 0:
|
if not round(miner_data['summary'][0]['SUMMARY'][0]["Temperature"]) == 0:
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ from tools.web_monitor.app import app
|
|||||||
import uvicorn
|
import uvicorn
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
uvicorn.run("app:app", host="127.0.0.1", port=80)
|
uvicorn.run("app:app", host="127.0.0.1", port=11115)
|
||||||
|
|||||||
@@ -322,4 +322,4 @@ async def do_websocket_scan(websocket: WebSocket, network_ip: str):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
uvicorn.run("app:app", host="127.0.0.1", port=80)
|
uvicorn.run("app:app", host="127.0.0.1", port=11115)
|
||||||
|
|||||||
Reference in New Issue
Block a user