chef 3804 Posted January 10, 2020 Posted January 10, 2020 (edited) When you're not sure which drive to choose when auto organizing your rips, you can quickly choose 'Disk Space' From the dashboard menu and visualize the space left on your drives. Good for Remote access to see which drives to choose when Organizing media titles. DOWNLOAD: we're in the catalogue!! Notes: 1. Added color picker to the plugin. 1.0.0.2 1. Scheduled Task Added to monitor Disk Space (will run every hour) - this task is hidden by default 2. Notifications Added when a drive has surpassed 90% of it's space Note: Windows decides 90% is the threshold to alert the user of an almost full hard drive. 3. Removed chartJS drive donuts tool-tips. TODO: Add custom tool-tips - https://www.chartjs.org/docs/latest/configuration/tooltip.html#external-custom-tooltips I'd be great to get some feedback on the notifications. Edited February 26, 2020 by chef 8 3
rechigo 294 Posted January 10, 2020 Posted January 10, 2020 When you're not sure which drive to choose when auto organizing your rips, you can quickly choose 'Disk Space' From the dashboard menu and visualize the space left on your drives. Good for Remote access to see which drives to choose when Organizing media titles. DOWNLOAD: DiskSpace.zip Is the source code available? I'm curious to take a look at how it works as a simple example plugin for me to get back into .net Sent from my SM-G973U using Tapatalk 1
Happy2Play 9352 Posted January 10, 2020 Posted January 10, 2020 Looks good, only issue may be color scheme.
chef 3804 Posted January 10, 2020 Author Posted January 10, 2020 Looks good, only issue may be color scheme. I'm trying to figure out how to use the css root --theme-color but I can't seem to reference it in the js properly. I wonder how to reference a style sheet from the same project in the js file?
chef 3804 Posted January 10, 2020 Author Posted January 10, 2020 Is the source code available? I'm curious to take a look at how it works as a simple example plugin for me to get back into .net Sent from my SM-G973U using Tapatalk You can check out the Auto Organize Plugin on Github. It has a little bit of everything in it. And you can always pm me with questions https://github.com/MediaBrowser/Emby.AutoOrganize There are only a couple tricky things with plugin development.
chef 3804 Posted January 10, 2020 Author Posted January 10, 2020 Oh I found the answer. The user chooses the color Only take a second...
chef 3804 Posted January 10, 2020 Author Posted January 10, 2020 (edited) @@Happy2Play check this out LOL! Edited January 10, 2020 by chef
Happy2Play 9352 Posted January 10, 2020 Posted January 10, 2020 Looks good. Had to reduce zoom to 90% to see full formdialog box.
Luke 39646 Posted January 10, 2020 Posted January 10, 2020 Is this compatible with all operating systems?
chef 3804 Posted January 10, 2020 Author Posted January 10, 2020 (edited) @@Luke Can you use system.OI with linux in .netcore? The service backend just requests GetDrives(). Edited January 10, 2020 by chef
Luke 39646 Posted January 10, 2020 Posted January 10, 2020 Hopefully, but I don't know. But that's something we'd need to figure out before putting this in the catalog.
chef 3804 Posted January 10, 2020 Author Posted January 10, 2020 (edited) There are no extra libraries added to the backend of this, so I suspect that it does work. Edited January 10, 2020 by chef
chef 3804 Posted January 10, 2020 Author Posted January 10, 2020 (edited) @@Luke, it would seem that this plugin would be crossplatform. https://stackoverflow.com/questions/54108431/is-possible-to-get-drive-free-space-in-net-standard Edited January 10, 2020 by chef
Luke 39646 Posted January 10, 2020 Posted January 10, 2020 We don't know that until it's tested, so that means Linux, MacOS, Android and FreeBSD.
chef 3804 Posted January 10, 2020 Author Posted January 10, 2020 This seems to fit better with emby design.
rechigo 294 Posted January 10, 2020 Posted January 10, 2020 (edited) Uhhhhhh Edited January 10, 2020 by rechigo
chef 3804 Posted January 10, 2020 Author Posted January 10, 2020 Uhhhhhh Because we're not using the catalog to update the plugin, try clearing browser data, and then refreshing the plugin page. Let me know how that goes.
Happy2Play 9352 Posted January 10, 2020 Posted January 10, 2020 I got the same after clearing my browser cache. 1
rechigo 294 Posted January 10, 2020 Posted January 10, 2020 Because we're not using the catalog to update the plugin, try clearing browser data, and then refreshing the plugin page. Let me know how that goes. First thing I did was that, but they're still way too big. Sent from my SM-G973U using Tapatalk 1
chacawaca 109 Posted January 10, 2020 Posted January 10, 2020 (edited) 4.4.0.6 on ubuntu server, seem to not work, white screen edit: 2020-01-10 17:29:42.941 Error HttpServer: Error processing request *** Error Report *** Version: 4.4.0.6 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Unix 5.0.0.37 64-Bit OS: True 64-Bit Process: True User Interactive: True Runtime: file:///opt/emby-server/system/System.Private.CoreLib.dll System.Environment.Version: 3.1.0 Processor count: 4 Program data path: /var/lib/emby Application directory: /opt/emby-server/system System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- at System.IO.DriveInfo.CheckStatfsResultAndThrowIfNecessary(Int32 result) at System.IO.DriveInfo.get_TotalSize() at DiskSpace.DiskSpaceService.<>c.<Get>b__6_0(DriveInfo d) at System.Linq.Enumerable.SelectArrayIterator`2.ToList() at DiskSpace.DiskSpaceService.Get(GetDriveData 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.IO.FileSystem.DriveInfo TargetSite: Void CheckStatfsResultAndThrowIfNecessary(Int32) InnerException: System.IO.IOException: Permission denied Source: TargetSite: Edited January 10, 2020 by chacawaca 1
Luke 39646 Posted January 10, 2020 Posted January 10, 2020 4.4.0.6 on ubuntu server, seem to not work, white screen edit: 2020-01-10 17:29:42.941 Error HttpServer: Error processing request *** Error Report *** Version: 4.4.0.6 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Unix 5.0.0.37 64-Bit OS: True 64-Bit Process: True User Interactive: True Runtime: file:///opt/emby-server/system/System.Private.CoreLib.dll System.Environment.Version: 3.1.0 Processor count: 4 Program data path: /var/lib/emby Application directory: /opt/emby-server/system System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- at System.IO.DriveInfo.CheckStatfsResultAndThrowIfNecessary(Int32 result) at System.IO.DriveInfo.get_TotalSize() at DiskSpace.DiskSpaceService.c.b__6_0(DriveInfo d) at System.Linq.Enumerable.SelectArrayIterator`2.ToList() at DiskSpace.DiskSpaceService.Get(GetDriveData 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.IO.FileSystem.DriveInfo TargetSite: Void CheckStatfsResultAndThrowIfNecessary(Int32) InnerException: System.IO.IOException: Permission denied Source: TargetSite: What you mean to say is your system is denying the server permission to query your drives.
Happy2Play 9352 Posted January 10, 2020 Posted January 10, 2020 Rolled back to second update version, drives were not extra large.
rechigo 294 Posted January 10, 2020 Posted January 10, 2020 Rolled back to second update version, drives were not extra large.Mind sending it? I believe I deleted that version Sent from my SM-G973U using Tapatalk
chef 3804 Posted January 10, 2020 Author Posted January 10, 2020 Oh... I think it's fixed. Had to figure out some emby classes.
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