Jump to content

New Plugin - Disk Space


chef

Recommended Posts

I figured out scrolling. Is the dialog big enough of the screen?

Edited by chef
  • Like 1
Link to comment
Share on other sites

maegibbons

@@chef To take this plugin one step further, could you add an option to only include/exclude certain drives?

 

I would only really want one of my drives monitored, not all of them.

 

Just a thought.

Plus 1 for this as well.

 

You have done an amazing job on this plugin in a very short space of time.

 

Thank you.

 

Krs

 

Mark

 

Sent from my SM-N976B using Tapatalk

Link to comment
Share on other sites

Happy2Play

From a Network Shares aspect, maybe a manual input to show that share.

 

And a option to not show/hide specific drives.

@@chef To take this plugin one step further, could you add an option to only include/exclude certain drives?

 

I would only really want one of my drives monitored, not all of them.

 

Just a thought.

Yep

Link to comment
Share on other sites

@@chef To take this plugin one step further, could you add an option to only include/exclude certain drives?

 

I would only really want one of my drives monitored, not all of them.

 

Just a thought.

Yep. It is under the settings dialog on the next version, which is almost completed.

  • Like 3
Link to comment
Share on other sites

1.0.1.5

 

1. will allow removal of monitored partitions. Look for a list of checkboxes in the settings dialog.

  • Like 4
Link to comment
Share on other sites

Dibbes

1.0.1.5

 

1. will allow removal of monitored partitions. Look for a list of checkboxes in the settings dialog.

 

Nice! Now that cleans up a lot on the page

Link to comment
Share on other sites

hey @@chef, been reading about this and decided to give it a shot.

 

beta 4.4.0.11

Windows 10 Pro (fully updated) on Samsung 960 EVO 250Gb M.2 SSD

AMD Ryzen 3700x 

32Gb Ram

Media 7*4tb HDD via Microsoft Storage Spaces

 

Installed from Emby Plugin Catalogue

 

Unfortunately, all i see is a blank page with "HARD DRIVES" at top left with a gear icon next to it. Clicking on the gear icon does nothing... 

 

Anyone successfully tested on Win10 yet?

 

thanks

 

Jordy

Edited by jordy
Link to comment
Share on other sites

hey @@chef, been reading about this and decided to give it a shot.

 

beta 4.4.0.11

Windows 10 Pro (fully updated) on Samsung 960 EVO 250Gb M.2 SSD

AMD Ryzen 3700x

32Gb Ram

Media 7*4tb HDD via Microsoft Storage Spaces

 

Installed from Emby Plugin Catalogue

 

Unfortunately, all i see is a blank page with "HARD DRIVES" at top left with a gear icon next to it. Clicking on the gear icon does nothing...

 

Anyone successfully tested on Win10 yet?

 

thanks

 

Jordy

PM me or post a log please.

 

Also, what Microsoft storage spaces?

Edited by chef
Link to comment
Share on other sites

MS Storage Spaces comes with Windows 10 and allows a software raid setup.

Log attached.

 

thanks Jordy

The request to the DiskSpaceService keeps throwing error, but it doesn't tell much about it. It always errors on your c:\ drive and doesn't get any further.

 

Are those drives shared?

 

Also, would you be interested in installing an early version from the catalog, maybe 1.0.1.4 and seeing if the request to the service is still broken?

Edited by chef
Link to comment
Share on other sites

Spaceboy

1.0.1.5

 

1. will allow removal of monitored partitions. Look for a list of checkboxes in the settings dialog.

i don’t understand why I’m not seeing updates available? I’m on stable if this matters
Link to comment
Share on other sites

CBers

i don’t understand why I’m not seeing updates available? I’m on stable if this matters

Which version do you have installed?

 

Have you tried installing via the plugin Catalogue?

Link to comment
Share on other sites

CBers

Just installed 1.0.1.5 on one of my friends servers that I look after, and although it installed OK, when I click on the COG, nothing happens and the config page is blank.

 

The server is running Stable, so perhaps an issue similar to Spaceboy's?

Link to comment
Share on other sites

Spaceboy

Which version do you have installed?

 

Have you tried installing via the plugin Catalogue?

dashboard says 1.0.1.1. I was getting updates until a couple of days ago
Link to comment
Share on other sites

PenkethBoy

Thought i would give this a try as well

 

getting the same as Jordy with win 10 and the 1.0.1.5 plugin - i.e. a blank page

2020-02-01 11:21:01.778 Info HttpServer: HTTP GET http://localhost:8096/emby/web/configurationpages?Name=DiskSpacePluginConfigurationPage. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
2020-02-01 11:21:01.778 Info HttpServer: HTTP GET http://localhost:8096/web/configurationpage?name=DiskSpacePluginConfigurationPage&v=4.4.0.11&r=0. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
2020-02-01 11:21:01.780 Info HttpServer: HTTP Response 200 to ::1. Time: 2ms. http://localhost:8096/emby/web/configurationpages?Name=DiskSpacePluginConfigurationPage
2020-02-01 11:21:01.780 Info HttpServer: HTTP Response 200 to ::1. Time: 2ms. http://localhost:8096/web/configurationpage?name=DiskSpacePluginConfigurationPage&v=4.4.0.11&r=0
2020-02-01 11:21:01.796 Info HttpServer: HTTP GET http://localhost:8096/web/configurationpage?name=DiskSpacePluginConfigurationPageJS&v=4.4.0.11. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
2020-02-01 11:21:01.796 Info HttpServer: HTTP Response 200 to ::1. Time: 1ms. http://localhost:8096/web/configurationpage?name=DiskSpacePluginConfigurationPageJS&v=4.4.0.11
2020-02-01 11:21:01.803 Debug App: ScheduledTasksWebSocketListener stop transmitting over websocket to ::1
2020-02-01 11:21:01.803 Debug App: SessionInfosWebSocketListener stop transmitting over websocket to ::1
2020-02-01 11:21:01.808 Info HttpServer: HTTP GET http://localhost:8096/web/configurationpage?name=Chart.bundle.js&v=4.4.0.11. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
2020-02-01 11:21:01.810 Info HttpServer: HTTP Response 200 to ::1. Time: 2ms. http://localhost:8096/web/configurationpage?name=Chart.bundle.js&v=4.4.0.11
2020-02-01 11:21:01.832 Info HttpServer: HTTP GET http://localhost:8096/emby/Plugins/9ECAAC5F-435E-4C21-B1C0-D99423B68984/Configuration. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
2020-02-01 11:21:01.833 Debug XmlSerializer: Deserializing file F:\EmbyCore\programdata\plugins\configurations\DiskSpace.xml
2020-02-01 11:21:01.835 Info HttpServer: HTTP Response 200 to ::1. Time: 3ms. http://localhost:8096/emby/Plugins/9ECAAC5F-435E-4C21-B1C0-D99423B68984/Configuration
2020-02-01 11:21:01.839 Info HttpServer: HTTP GET http://localhost:8096/emby/GetDriveData. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
2020-02-01 11:21:01.850 Info DiskSpaceService: DISK SPACE -- C:\
2020-02-01 11:21:01.861 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 4.4.0.11
	Command line: F:\EmbyCore\system\EmbyServer.dll -noautorunwebapp
	Operating system: Microsoft Windows NT 6.2.9200.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Runtime: file:///F:/EmbyCore/system/System.Private.CoreLib.dll
	System.Environment.Version: 3.1.1
	Processor count: 8
	Program data path: F:\EmbyCore\programdata
	Application directory: F:\EmbyCore\system
	System.ArgumentNullException: System.ArgumentNullException: Value cannot be null. (Parameter 'source')
	   at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
	   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
	   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
	   at DiskSpace.Api.DiskSpaceService.Get(DriveData request)
	   at Emby.Server.Implementations.Services.ServiceController.Execute(HttpListenerHost appHost, Object requestDto, IRequest req)
	   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
	Source: System.Linq
	TargetSite: Void ThrowArgumentNullException(System.Linq.ExceptionArgument)
	
2020-02-01 11:21:01.861 Info HttpServer: HTTP Response 400 to ::1. Time: 22ms. http://localhost:8096/emby/GetDriveData
2020-02-01 11:21:05.325 Info HttpServer: HTTP GET http://localhost:8096/emby/GetDriveData. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
2020-02-01 11:21:05.333 Info DiskSpaceService: DISK SPACE -- C:\
2020-02-01 11:21:05.334 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 4.4.0.11
	Command line: F:\EmbyCore\system\EmbyServer.dll -noautorunwebapp
	Operating system: Microsoft Windows NT 6.2.9200.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Runtime: file:///F:/EmbyCore/system/System.Private.CoreLib.dll
	System.Environment.Version: 3.1.1
	Processor count: 8
	Program data path: F:\EmbyCore\programdata
	Application directory: F:\EmbyCore\system
	System.ArgumentNullException: System.ArgumentNullException: Value cannot be null. (Parameter 'source')
	   at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
	   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
	   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
	   at DiskSpace.Api.DiskSpaceService.Get(DriveData request)
	   at Emby.Server.Implementations.Services.ServiceController.Execute(HttpListenerHost appHost, Object requestDto, IRequest req)
	   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
	Source: System.Linq
	TargetSite: Void ThrowArgumentNullException(System.Linq.ExceptionArgument)
	
2020-02-01 11:21:05.334 Info HttpServer: HTTP Response 400 to ::1. Time: 9ms. http://localhost:8096/emby/GetDriveData

I dont use Storage Spaces

Link to comment
Share on other sites

PenkethBoy

@@chef - i have got .5 to work now

 

what i needed to do was go back to .4 - and do some config changes - which generated the diskspace.xml file

 

then i updated to .5 and now that works

 

I started at .5 initially probably like @@jordy - and the xml probably needs to exist and when it does not you get the errors Jordy and I see

 

Hope that helps you track down the bug :)

  • Like 2
Link to comment
Share on other sites

maegibbons

1.0.1.5

 

1. will allow removal of monitored partitions. Look for a list of checkboxes in the settings dialog.

Hi @@chef

 

I have installed .5

 

I have excluded my U drive and it correctly does NOT show on the drive space page BUT it still gives alerts of low space which it should'nt.

 

It should be totally excluded from display and monitoring.

 

Krs

 

Mark

 

Sent from my SM-N976B using Tapatalk

Link to comment
Share on other sites

CBers

I have excluded my U drive and it correctly does NOT show on the drive space page BUT it still gives alerts of low space which it should'nt.

 

 

Same here.

Link to comment
Share on other sites

CBers

@@chef Once you have all the kinks ironed out, would it be possible to have different thresholds for different drives?

 

Just a suggestion.

Link to comment
Share on other sites

PenkethBoy

Chef

 

One thing i have noticed is that if you load a blu-ray/dvd/cd - the plugin picks these up - will do the same with USB sticks/drives

 

now as they are only picked up when a disc is loaded - and most discs will be "full" unless they are rewritable

 

we are likely to get false reports of no disk space

 

but - if no disk is loaded you cant "exclude" them - unless you manually edit the diskspace.xml file as when "empty" they are not shown

 

Hope thats clear :)

 

 

post-134563-0-92007800-1580561908_thumb.jpg

Edited by PenkethBoy
  • Like 1
Link to comment
Share on other sites

PenkethBoy

Request

 

Could we also have some tabular results besides the graphs?

 

e.g. i have a powershell script that i created for listing my drives 


DeviceID VolumeName TypeDrive          Size (Bytes) Free Space (Bytes) Size (GiB) Free Space (GiB) Size (TiB) Free Space (TiB)
-------- ---------- ---------          ------------ ------------------ ---------- ---------------- ---------- ----------------
C:       System     Fixed local disk   459399372800       405667491840     427.85           377.81      0.418            0.369
D:                  Compact disk                                                0                0          0                0
E:                  Compact disk                                                0                0          0                0
F:       Data       Fixed local disk  1920256172032      1374443438080    1788.38          1280.05      1.746             1.25
G:       Media      Network disk     69036277682176     23837960343552   64295.04         22200.83     62.788            21.68
M:       Media      Network disk     69036277682176     23837960343552   64295.04         22200.83     62.788            21.68
P:       Media      Network disk     69036277682176     23837960343552   64295.04         22200.83     62.788            21.68
S:       Media      Network disk     69036277682176     23837960343552   64295.04         22200.83     62.788            21.68
W:       Media      Network disk     69036277682176     23837960343552   64295.04         22200.83     62.788            21.68
X:       Media      Network disk     69036277682176     23837960343552   64295.04         22200.83     62.788            21.68
Y:       Media      Network disk     69036277682176     23837960343552   64295.04         22200.83     62.788            21.68
Z:       Media      Network disk     69036277682176     23837960343552   64295.04         22200.83     62.788            21.68



DeviceID VolumeName Percent Free
-------- ---------- ------------
C:       System             88.3
D:                              
E:                              
F:       Data              71.58
G:       Media             34.53
M:       Media             34.53
P:       Media             34.53
S:       Media             34.53
W:       Media             34.53
X:       Media             34.53
Y:       Media             34.53
Z:       Media             34.53

this could be simplified down as probably dont need all columns

 

if you (or anybody else wants to try the script out) Drive-Space.zip - extract the ps1 file and rightclick - choose "run with powershell" - it will open the results in notepad

Link to comment
Share on other sites

@@chef - i have got .5 to work now

 

what i needed to do was go back to .4 - and do some config changes - which generated the diskspace.xml file

 

then i updated to .5 and now that works

 

I started at .5 initially probably like @@jordy - and the xml probably needs to exist and when it does not you get the errors Jordy and I see

 

Hope that helps you track down the bug :)

Yes it did, thank you! @@PenkethBoy

 

I've been trying to force myself to use the "object?.variable" style to check for null faster when I'm typing fast, instead of the old "if(object != null)"

 

I have to get the "?" on the right object or else "bug central!"

 

1.0.1.6

 

1. stopped the configuration null object bug

2. Stopped notifications on partitions that are unchecked in the dialog.

Link to comment
Share on other sites

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...