Browse Source

修改了一下结构

v2
lxb 8 months ago
parent
commit
75164c0b4c
  1. 1
      client.py
  2. 2
      client_config.json
  3. 3
      server.py
  4. 11
      web/index.html

1
client.py

@ -123,6 +123,7 @@ def get_memory_info(error_dict):
def get_networks_info(error_dict): def get_networks_info(error_dict):
# net_io = psutil.net_io_counters() # net_io = psutil.net_io_counters()
# print(net_io) # print(net_io)
# todo
pass pass
# endregion # endregion

2
client_config.json

@ -3,7 +3,7 @@
"title": "174", "title": "174",
"interval": 3.0, "interval": 3.0,
"note": "", "note": "",
"enable": ["gpu", "cpu", "memory", "storage", "network"], "enable": ["gpu", "cpu", "memory", "storage"],
"storage_list":[ "storage_list":[
"/", "/",
"/media/D", "/media/D",

3
server.py

@ -1,9 +1,6 @@
from flask import Flask, jsonify, request from flask import Flask, jsonify, request
from datetime import datetime
from flask_cors import CORS from flask_cors import CORS
import threading
import json import json
import time
#region 全局 #region 全局

11
web/index.html

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>服务器信息</title>
</head>
<body>
</body>
</html>
Loading…
Cancel
Save