rechigo 293 Posted March 21, 2020 Share Posted March 21, 2020 Running "net statistics server" for me, won't even work. I can run "net statistics workstation", but that contains absolutely nothing related to the uptime of the system I think "wmic path Win32_OperatingSystem get LastBootUpTime" Would be the better option here. That gives you the time at which the computer was last booted, which you can subtract from the current time to get the system uptime Running "net statistics server" for me, won't even work. I can run "net statistics workstation", but that contains absolutely nothing related to the uptime of the system I think "wmic path Win32_OperatingSystem get LastBootUpTime" Would be the better option here. That gives you the time at which the computer was last booted, which you can subtract from the current time to get the system uptime Link to comment Share on other sites More sharing options...
lightsout 144 Posted March 21, 2020 Share Posted March 21, 2020 How about CPU load and ram usage? Link to comment Share on other sites More sharing options...
rechigo 293 Posted March 21, 2020 Share Posted March 21, 2020 How about CPU load and ram usage?That was something I had in mind to possibly work on Sent from my SM-G973U using Tapatalk Link to comment Share on other sites More sharing options...
chef 3752 Posted March 21, 2020 Author Share Posted March 21, 2020 (edited) You can use wmic for cpu load, but with .netcore I found it difficult to get mem and CPU. I think: wmic get cpu loadpercentage If wmic create a better uptime variable, that works then I'd better fix add it. Edited March 21, 2020 by chef Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted March 21, 2020 Share Posted March 21, 2020 The Playback reporting plugin already has the cpu load and mem load although the mem load is always wrong compared to Task manager 1 Link to comment Share on other sites More sharing options...
chef 3752 Posted March 21, 2020 Author Share Posted March 21, 2020 (edited) As @@rechigo pointed out wmic is better for system data in windows. There has been a a commit which utilizes the wmic interface for system data instead of the net statistics. Nice work sir! Thank you. If a stream of system resources where to be added to the dashboard, it would probably have to be written with a hidden cmd prompt process that fed data through the Emby websocket to the dashboard. Like the GPU data does. Edited March 21, 2020 by chef Link to comment Share on other sites More sharing options...
jachin99 82 Posted March 21, 2020 Share Posted March 21, 2020 I built the newest version and uptime now shows on my dashboard but it looks like it shows system uptime, and not emby's uptime. Its showing 13 hours after I restarted the server twice. Also is there any way you could make this work on the mobile dashboard page? Link to comment Share on other sites More sharing options...
chef 3752 Posted March 21, 2020 Author Share Posted March 21, 2020 I built the newest version and uptime now shows on my dashboard but it looks like it shows system uptime, and not emby's uptime. Its showing 13 hours after I restarted the server twice. Also is there any way you could make this work on the mobile dashboard page? Yes system uptime. Unfortunately, mobile apps won't work edits like this. Link to comment Share on other sites More sharing options...
jachin99 82 Posted March 21, 2020 Share Posted March 21, 2020 It looks like up time, and storage space both works then, thanks. I haven't tested weather 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now