Synology changes

This commit is contained in:
Arne van Iterson 2024-02-08 13:20:51 +01:00
parent 09b175f88d
commit ed8d35435d

View File

@ -9,12 +9,15 @@ function handle(req, res) {
"load": os.loadavg(), "load": os.loadavg(),
"time": si.time() "time": si.time()
}; };
si.cpuTemperature(function (data) {
sysInfo["temp"] = data;
});
si.mem(function (data) { si.mem(function (data) {
sysInfo["mem"] = data; sysInfo["mem"] = data;
}); });
// si.cpuTemperature(function (data) {
// sysInfo["temp"] = data;
// });
// si.mem(function (data) {
// sysInfo["mem"] = data;
// });
si.fsSize(function (data) { si.fsSize(function (data) {
sysInfo["fs"] = data; sysInfo["fs"] = data;
res.status(200).json(sysInfo); res.status(200).json(sysInfo);