RAM & CPU usage widgets #30
Replies: 6 comments 4 replies
-
This is not possible without accessing the system info directly. You have to remember that in essence, MHP is only a website and thus, has no little to no access to your machine. This could however be done using #14 which is a HUGE milestone I want to accomplish before next year. Edit: Integrating a portainer interaction module could allow for the user to read container stats/cpu usage and allow for restart/update buttons If anyone is reading this and wants to help with this milestone, please contact me on the discord or reply to this discussion. |
Beta Was this translation helpful? Give feedback.
-
you should take a look into these projects, they do exactly what you are planning to implement. |
Beta Was this translation helpful? Give feedback.
-
Oh, nice! Thank you :) |
Beta Was this translation helpful? Give feedback.
-
Actually, after #41 and the Persistent storage milestone, we will have a backend and will be able to use things such as Example in the current beta version of the Multiple-configs branch export async function getServerSideProps({ req, res }: GetServerSidePropsContext) {
let cookie = getCookie('config-name', { req, res });
if (!cookie) {
setCookies('config-name', 'default', { req, res, maxAge: 60 * 60 * 24 * 30 });
cookie = 'default';
}
const config = fs.readFileSync(path.join('data/configs', `${cookie}.json`), 'utf8');
return {
props: {
config: JSON.parse(config),
},
};
} |
Beta Was this translation helpful? Give feedback.
-
This would be interesting, currently running dashdot but would be way better to have everything in one place. |
Beta Was this translation helpful? Give feedback.
-
I've started working on this , a very early implementation is done in v0.6.0 |
Beta Was this translation helpful? Give feedback.
-
Hello,
Would it be possible to implement a RAM, CPU & HDD usage widget for each server that we have locally?
Thank you :D
Beta Was this translation helpful? Give feedback.
All reactions