improve syscontrol

This commit is contained in:
mrsang 2021-03-22 20:16:35 +01:00
parent 536446bca2
commit 99fd2520eb
6 changed files with 9 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,7 @@
"email": ""
},
"dependencies": [
"Antunnel@0.1.8-a"
"Antunnel@0.1.9-a"
],
"version":"0.1.7-a",
"category":"Other",

View File

@ -5,6 +5,7 @@ class SystemControl extends this.OS.application.BaseApplication
super "SystemControl", args
main: () ->
@max_net_range = 2048
@diskchart = $(@find("disk-area")).epoch({
type: 'time.gauge',
value: 0
@ -121,14 +122,16 @@ class SystemControl extends this.OS.application.BaseApplication
{ time: now, y: (net_rx / 1024.0).toFixed(3)},
{ time: now, y: (net_tx / 1024.0).toFixed(3)}
]
@streamline "network", net_data, undefined, ["RX (Kb/s)", "TX (Kb/s)"]
@max_net_range = net_data[0].y if net_data[0].y > @max_net_range
@max_net_range = net_data[1].y if net_data[1].y > @max_net_range
@streamline "network", net_data, [0, @max_net_range], ["RX (Kb/s)", "TX (Kb/s)"]
temp_data = [
{ time: now, y: (data.cpu_temp / 1000.0).toFixed(2)},
{ time: now, y: (data.gpu_temp / 1000.0).toFixed(2)}
]
@streamline "temp", temp_data, undefined, ["CPU temp (C)", "GPU temp (C)"]
@streamline "temp", temp_data, [0,], ["CPU temp (C)", "GPU temp (C)"]
battery_range = [
(data.battery_min_voltage / 1000.0).toFixed(2),

View File

@ -11,7 +11,7 @@
"email": ""
},
"dependencies": [
"Antunnel@0.1.8-a"
"Antunnel@0.1.9-a"
],
"version":"0.1.7-a",
"category":"Other",

View File

@ -266,7 +266,7 @@
"category": "Other",
"author": "",
"version": "0.1.7-a",
"dependencies": ["Antunnel@0.1.8-a"],"version":"0.1.7-a","category":"Other","iconclass":"fafa-android","mimes":["none"],
"dependencies": ["Antunnel@0.1.9-a"],"version":"0.1.7-a","category":"Other","iconclass":"fafa-android","mimes":["none"],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/SystemControl/build/release/SystemControl.zip"
},
{