mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-11-08 06:28:29 +01:00
improve syscontrol
This commit is contained in:
parent
536446bca2
commit
99fd2520eb
File diff suppressed because one or more lines are too long
@ -11,7 +11,7 @@
|
||||
"email": ""
|
||||
},
|
||||
"dependencies": [
|
||||
"Antunnel@0.1.8-a"
|
||||
"Antunnel@0.1.9-a"
|
||||
],
|
||||
"version":"0.1.7-a",
|
||||
"category":"Other",
|
||||
|
Binary file not shown.
@ -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),
|
||||
|
@ -11,7 +11,7 @@
|
||||
"email": ""
|
||||
},
|
||||
"dependencies": [
|
||||
"Antunnel@0.1.8-a"
|
||||
"Antunnel@0.1.9-a"
|
||||
],
|
||||
"version":"0.1.7-a",
|
||||
"category":"Other",
|
||||
|
@ -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"
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user