mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-12-26 04:08:21 +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": ""
|
"email": ""
|
||||||
},
|
},
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"Antunnel@0.1.8-a"
|
"Antunnel@0.1.9-a"
|
||||||
],
|
],
|
||||||
"version":"0.1.7-a",
|
"version":"0.1.7-a",
|
||||||
"category":"Other",
|
"category":"Other",
|
||||||
|
Binary file not shown.
@ -5,6 +5,7 @@ class SystemControl extends this.OS.application.BaseApplication
|
|||||||
super "SystemControl", args
|
super "SystemControl", args
|
||||||
|
|
||||||
main: () ->
|
main: () ->
|
||||||
|
@max_net_range = 2048
|
||||||
@diskchart = $(@find("disk-area")).epoch({
|
@diskchart = $(@find("disk-area")).epoch({
|
||||||
type: 'time.gauge',
|
type: 'time.gauge',
|
||||||
value: 0
|
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_rx / 1024.0).toFixed(3)},
|
||||||
{ time: now, y: (net_tx / 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 = [
|
temp_data = [
|
||||||
{ time: now, y: (data.cpu_temp / 1000.0).toFixed(2)},
|
{ time: now, y: (data.cpu_temp / 1000.0).toFixed(2)},
|
||||||
{ time: now, y: (data.gpu_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 = [
|
battery_range = [
|
||||||
(data.battery_min_voltage / 1000.0).toFixed(2),
|
(data.battery_min_voltage / 1000.0).toFixed(2),
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
"email": ""
|
"email": ""
|
||||||
},
|
},
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"Antunnel@0.1.8-a"
|
"Antunnel@0.1.9-a"
|
||||||
],
|
],
|
||||||
"version":"0.1.7-a",
|
"version":"0.1.7-a",
|
||||||
"category":"Other",
|
"category":"Other",
|
||||||
|
@ -266,7 +266,7 @@
|
|||||||
"category": "Other",
|
"category": "Other",
|
||||||
"author": "",
|
"author": "",
|
||||||
"version": "0.1.7-a",
|
"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"
|
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/SystemControl/build/release/SystemControl.zip"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user