Jump to content

Recommended Posts

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

 

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 8
  • Thanks 3
Posted

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
Happy2Play
Posted

Looks good, only issue may be color scheme.

 

5e17fd5e874b8_ds.jpg

Posted

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?

Posted

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.  

Posted

Oh I found the answer. 

 

The user chooses the color :)

 

Only take a second...

Posted (edited)

@@Happy2Play check this out  ;) LOL!

 

5e188d839ce58_diskspace2.png

Edited by chef
Happy2Play
Posted

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

Posted

Is this compatible with all operating systems?

Posted (edited)

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

 

The service backend just requests GetDrives().

Edited by chef
Posted

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

Posted

Oh, that would be great.

Posted (edited)

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

Edited by chef
Posted

We don't know that until it's tested, so that means Linux, MacOS, Android and FreeBSD.

Posted

This seems to fit better with emby design.

 

5e18f5a1b76d4_diskspace3.png

Posted (edited)

Uhhhhhh

izb.png

Edited by rechigo
Posted

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
Posted

I got the same after clearing my browser cache.

  • Like 1
Posted

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
chacawaca
Posted (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 by chacawaca
  • Like 1
Posted

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
Posted

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

Posted

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

Posted

Oh...  :huh:

 

I think it's fixed.

 

Had to figure out some emby classes.

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