Jump to content

New Plugin - Disk Space


chef

Recommended Posts

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.

 

5e17fa79889fc_diskspace1.png

 

 

 

DOWNLOAD: we're in the catalogue!!

Notes:

 

1. Added color picker to the plugin.

 

5e188e27c35f8_diskspace2.png

 

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 by chef
  • Like 7
  • Thanks 3
Link to comment
Share on other sites

rechigo

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.

 

5e17fa79889fc_diskspace1.png

 

 

 

DOWNLOAD: attachicon.gifDiskSpace.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

  • Like 1
Link to comment
Share on other sites

Looks good, only issue may be color scheme.

 

5e17fd5e874b8_ds.jpg

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?

Link to comment
Share on other sites

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.  

Link to comment
Share on other sites

Happy2Play

Looks good.  Had to reduce zoom to 90% to see full formdialog box.

Link to comment
Share on other sites

@@Luke Can you use system.OI with linux in .netcore?

 

The service backend just requests GetDrives().

Edited by chef
Link to comment
Share on other sites

Hopefully, but I don't know. But that's something we'd need to figure out before putting this in the catalog.

Link to comment
Share on other sites

There are no extra libraries added to the backend of this, so I suspect that it does work.

Edited by chef
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

rechigo

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

  • Like 1
Link to comment
Share on other sites

chacawaca

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 by chacawaca
  • Like 1
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Happy2Play

Rolled back to second update version, drives were not extra large.

Link to comment
Share on other sites

rechigo

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

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