1
Development and Code Review / API call to get memory stats
« on: December 24, 2022, 04:03:41 pm »
Hello,
I'm working on a widget for homepage (https://github.com/benphelps/homepage) to have informations on my OPNsenses firewall directly on my homepage. So far, I have the following infos (see attached picture) but getting memory usage and cpu usage is quite difficult, as I only found the /api/diagnostics/activity/getActivity to get it.
But memory information isn't accurate, and getting CPU usage info is tedious.
I would love to have a call similar to widgets/api/get.php?load=system%2Ctemperature%2Cinterfaces&_=xxxxxx
but this one does not seem to be allowed in API mode (aka with key:secret)
Is there any other API call that I missed ?
Thank you all.
I'm working on a widget for homepage (https://github.com/benphelps/homepage) to have informations on my OPNsenses firewall directly on my homepage. So far, I have the following infos (see attached picture) but getting memory usage and cpu usage is quite difficult, as I only found the /api/diagnostics/activity/getActivity to get it.
But memory information isn't accurate, and getting CPU usage info is tedious.
I would love to have a call similar to widgets/api/get.php?load=system%2Ctemperature%2Cinterfaces&_=xxxxxx
but this one does not seem to be allowed in API mode (aka with key:secret)
Is there any other API call that I missed ?
Thank you all.