添加文件 #1

Merged
xdl merged 1 commits from xdl into main 2024-12-18 10:42:08 +08:00
2 changed files with 8 additions and 0 deletions
Showing only changes of commit 8a1cb00e94 - Show all commits

2
Computer_status_get.py Normal file
View File

@ -0,0 +1,2 @@
#每隔一秒读取电脑状态打包成Computer_status对象,调用Computer_status.write_data
#每隔1天调用Computer_status.delete_data删除30天之前的数据

6
apps.py Normal file
View File

@ -0,0 +1,6 @@
#展示Computer_status对象中的状态以时间为轴绘制折线图
#
# 可以选择实时展示每隔1s发送请求服务器调用Computer_status.get_data_json_30s返回json
#
# 可以选择查看指定时间端的历史信息,发送请求,包含开始时间和结束时间服务器调用Computer_status.get_data_json返回json