mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 23:38:46 +00:00
Add cputemp to resources widget
This commit is contained in:
parent
d4a3ba84e9
commit
f46addf20a
6 changed files with 101 additions and 2 deletions
|
@ -35,6 +35,12 @@ export default async function handler(req, res) {
|
|||
});
|
||||
}
|
||||
|
||||
if (type === "cputemp") {
|
||||
return res.status(200).json({
|
||||
cputemp: await si.cpuTemperature(),
|
||||
});
|
||||
}
|
||||
|
||||
return res.status(400).json({
|
||||
error: "invalid type",
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue