Skip to content
Snippets Groups Projects
Unverified Commit 6d99f021 authored by Tony Bonnin's avatar Tony Bonnin
Browse files

Dashboard App for ACF

parent aba2d846
No related branches found
No related tags found
No related merge requests found
...@@ -62,4 +62,4 @@ skin=/skins/dashboard ...@@ -62,4 +62,4 @@ skin=/skins/dashboard
- **Dashboard** - **Dashboard**
<img src="https://github.com/trinity-labs/dashboard-skin/assets/45216746/9e465dad-57b6-4cf7-b9eb-3d9b1c25fb0c"> <img src="https://github.com/trinity-labs/dashboard-skin/assets/45216746/688761b9-20c0-40a4-8af3-191aabacae0b">
\ No newline at end of file \ No newline at end of file
...@@ -209,9 +209,9 @@ end ...@@ -209,9 +209,9 @@ end
<p class="dashboard-infos dash-info-cpu"> <p class="dashboard-infos dash-info-cpu">
<span class="data-title">CPU : </span><%= string.sub((proc.value.model.value), 14) %> <span class="data-title">CPU : </span><%= string.sub((proc.value.model.value), 14) %>
</p> </p>
<!--<p class="dashboard-infos dash-info-cpu"> --> <p class="dashboard-infos dash-info-cpu">
<!--<span class="data-title">GPU : </span><%= proc.value.gpu.value %>--> <span class="data-title">GPU : </span><%= proc.value.gpu.value %>
<!--</p>--> </p>
<p class="dashboard-infos dash-info-memory"> <p class="dashboard-infos dash-info-memory">
<span class="data-title">Memory : </span> <span class="data-title">Memory : </span>
<%= bytesToSize(tonumber(sys.value.memory.totalData)) %> Total | <%= bytesToSize(tonumber(sys.value.memory.totalData)) %> Total |
......
...@@ -152,7 +152,7 @@ mymodule.get_proc = function (self) ...@@ -152,7 +152,7 @@ mymodule.get_proc = function (self)
proc.memory = cfe({ value=fs.read_file("/proc/meminfo") or "", label="Memory" }) proc.memory = cfe({ value=fs.read_file("/proc/meminfo") or "", label="Memory" })
proc.model = cfe({ value=querycmd("sed -n 5p /proc/cpuinfo") or "", label="CPU Model" }) proc.model = cfe({ value=querycmd("sed -n 5p /proc/cpuinfo") or "", label="CPU Model" })
proc.temp = cfe({ value=querycmd("cat /sys/class/thermal/thermal_zone2/temp") or "N/A", label="CPU Temp" }) proc.temp = cfe({ value=querycmd("cat /sys/class/thermal/thermal_zone2/temp") or "N/A", label="CPU Temp" })
proc.gpu = cfe({ value=string.match(querycmd("lspci"), "VGA compatible controller:(%s+%a+%s+%a+)") or "Unknow", label="VGA GPU" }) proc.gpu = cfe({ value=string.match(querycmd("lspci"), "VGA compatible controller:(%s+%w+%s+%w+%s+%w+%s+%w+)") or "Unknow", label="VGA GPU" })
return cfe({ type="group", value=proc, label="Hardware Information" }) return cfe({ type="group", value=proc, label="Hardware Information" })
end end
......
...@@ -25,11 +25,11 @@ ...@@ -25,11 +25,11 @@
} }
.uptime { .uptime {
font-size: 1rem; font-size: 0.85rem;
color: #16597a; color: #16597a;
font-weight: 900; font-weight: 900;
position: relative; position: relative;
top: 0.1rem; top: 0.075rem;
} }
.dashboard-block-title { .dashboard-block-title {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment