Jump to content

Plugin: CPU Usage Monitor - alpha release - testing


Recommended Posts

mickle026
Posted (edited)

I have coded this as a distraction, I have no means to test it on Linux or Mac

It works fine on my Windows 11 machine, needless to say no guarantees for other users machines

This is really just for fun at the moment as I don't have a lot of free time to spend on this.

Thanks to @jaspalgillfor providing me with a sample output from Linux.

Its considered and Alpha release (unfinished, untested in all environments), although you are welcome to test it & give me feedback
It should stop requesting updates when you navigate away or hide the page and resume when you come back (no guarantees!)

Screenshot_14-5-2025_14212_localhost.jpeg.2cc157cbb286e8e0656a1f87bc4c2842.jpeg

 

CPUMonitor.dll

Edited by mickle026
  • Like 2
Apotropaic
Posted

Still not seeing any output, I wonder if the account emby is running under can't access or execute the commands to pull in the cpu info? I can't see anything in the emby log from the plugin.

I had the reverse issue with another plugin where emby installs it's own linux equivalent of dll's when you first install the server and my script within emby was using the libraries the emby developers had installed instead of the system executables.

I fixed it by changing how the paths worked in my script, not sure what's possible from within a plugin environment.

 

mickle026
Posted
33 minutes ago, jaspalgill said:

Still not seeing any output, I wonder if the account emby is running under can't access or execute the commands to pull in the cpu info? I can't see anything in the emby log from the plugin.

I had the reverse issue with another plugin where emby installs it's own linux equivalent of dll's when you first install the server and my script within emby was using the libraries the emby developers had installed instead of the system executables.

I fixed it by changing how the paths worked in my script, not sure what's possible from within a plugin environment.

 

I can log the output and see if it's doing anything, ideally it would be good if I could see it realtime, I have a mini nuc pc in a drawer somewhere... Maybe when I have time I ought to install Linux on it.

rbjtech
Posted

Very nice :)

I'd be interested in what library you are using to get the info ?

For me personally, live GPU (for transcoding), Storage I/O and Network info is of more interest than CPU.. 

  • Agree 1
mickle026
Posted (edited)
49 minutes ago, rbjtech said:

Very nice :)

I'd be interested in what library you are using to get the info ?

For me personally, live GPU (for transcoding), Storage I/O and Network info is of more interest than CPU.. 

I can do all of those in windows! :)  - not sure about linux or mac... but probably

Edited by mickle026
  • Thanks 1
mickle026
Posted
6 hours ago, rbjtech said:

Very nice :)

I'd be interested in what library you are using to get the info ?

For me personally, live GPU (for transcoding), Storage I/O and Network info is of more interest than CPU.. 

Just using powershell on command line and RedirectStandardOutput, then parsing the text into an array.  No libraries at all.
 

rbjtech
Posted
10 hours ago, mickle026 said:

Just using powershell on command line and RedirectStandardOutput, then parsing the text into an array.  No libraries at all.
 

Ah ok - thanks !

Clackdor
Posted
On 5/14/2025 at 1:04 PM, mickle026 said:

I can do all of those in windows! :)  - not sure about linux or mac... but probably

I would personally be very interested in this! (I'm on windows) Seeing CPU and GPU usage stats on the emby dashboard would be extremely useful.

mickle026
Posted (edited)
On 15/05/2025 at 19:00, Clackdor said:

I would personally be very interested in this! (I'm on windows) Seeing CPU and GPU usage stats on the emby dashboard would be extremely useful.

GPU one for windows is posted here:

 


Disk Input/Output Ops is here:

 

Edited by mickle026
  • Thanks 1
rbjtech
Posted
7 hours ago, mickle026 said:

GPU one for windows is posted here:

 


Disk Input/Output Ops is here:

 

Very cool - wasn't expecting you to add this ! Thanks !

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...