添加文件

This commit is contained in:
XDL163 2024-12-18 10:41:00 +08:00
parent 7be76df50b
commit 8a1cb00e94
2 changed files with 8 additions and 0 deletions

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