PureVisionHD 1080 DriveFreeSpace (1 Viewer)

High_Five

Design Group
  • Team MediaPortal
  • February 10, 2023
    186
    1,071
    Home Country
    Germany Germany
    Could you possibly avoid the gaps between the drives by combining the left and right columns each as a group? (n)
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,896
    11,786
    Königstein (Taunus)
    Home Country
    Germany Germany
    Could you possibly avoid the gaps between the drives by combining the left and right columns each as a group? (n)
    I´m trying to solve that with a switch visibility which atm does not work how I need it:
    Code Example:
    <label>#(switch( neq(#DriveFreeSpace.E.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.E.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.E.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.F.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.F.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.G.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.G.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.H.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.H.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.I.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.I.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.J.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.J.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.K.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.K.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.L.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.L.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.M.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.M.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.N.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.N.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.O.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.O.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.P.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.P.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.Q.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.Q.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.R.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.R.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.S.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.S.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.T.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.T.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.U.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.U.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.V.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.V.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.W.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.W.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.X.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.X.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.V.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.Y.AvailableSpace.UsedPercentage,0),'#DriveFreeSpace.Z.AvailableSpace.UsedPercentage', eq(#DriveFreeSpace.Z.AvailableSpace.UsedPercentage,0),'', eq(1,1),''))</label>

    This is for not show the progressbar of drive E if not available and show progressbar of F instead (and so on)
     

    High_Five

    Design Group
  • Team MediaPortal
  • February 10, 2023
    186
    1,071
    Home Country
    Germany Germany
    I have made a small change in the settings file to better highlight the drives textually (see image). :)

    DriveFreespace.png
     

    Attachments

    • settings_general.xml
      37.3 KB
    Last edited by a moderator:

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    6,232
    2,386
    South of France
    Home Country
    France France
    • Thread starter
    • Moderator
    • #35
    Good idea to split the DriveFreeSpace stuff.

    Found that more than in home, it also appear in scheduled :

    zz1.png

    Just an idea, it could also be interesting to have it in recorded.
    This example is only for travel PC but, with this info, it will avoid me to tell EACH TIME to my wife PLEASE, LOOK AT or, DELETE FILES in m'y home's HTPC !! :D
     

    High_Five

    Design Group
  • Team MediaPortal
  • February 10, 2023
    186
    1,071
    Home Country
    Germany Germany
    While testing the plugin I noticed the following:
    1) If a harddisk, e.g. drive H: is "empty", the expression #DriveFreeSpace.H.AvailableSpace.UsedPercentage does not output zero, but instead there is no output! (see image).

    DriveH ohne 0.png


    To get 0% as output I used the logical expression #(iif(eq(#DriveFreeSpace.D.AvailableSpace.UsedPercentage,''),'0%','#DriveFreeSpace.D.AvailableSpace.UsedPercentage%')). (see attached file)

    DriveH mit 0.png



    2) For optical drives like e.g. here G: for #DriveFreeSpace.G.AvailableSpace.UsedPercentage and #DriveFreeSpace.G.AvailableSpace.Percentage zero is shown respectively, i.e. with the expression <visible>!string.equals(#DriveFreeSpace.G.AvailableSpace.UsedPercentage,0)</visible> the visibility of the optical drive G: is removed.
     

    Attachments

    • settings_general.xml
      37.6 KB

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,896
    11,786
    Königstein (Taunus)
    Home Country
    Germany Germany
    Thx for your work, but you are testing a very early version where I only wanted to show my idea of the layout ;)
    I´m nearly ready with the final version which uses string expressions like switch, and, eq and neq which automatically place the available disks in the correct order from left to right and top to bottom ;)
    Please stand by - will inform you tomorrow
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,896
    11,786
    Königstein (Taunus)
    Home Country
    Germany Germany
    Well, here we finally go!
    Attached the settings_general.xml ;)
    Some remarks:
    The layout is made for 6 drives (C, D, E, F and G,) where at least drive C should be activated in DFS config.
    The other drives may be activated or not, not activated drives will not show, and activated drives will be in an order without gaps.
    Not activated drives show an empty red bullet (actually that is the left texture of the progressbar) ;).
    Maybe I do some more cosmetics as well as a short help screen how to configere DFS.
    BTW: If you look inside the xml code you hopefully understand why I did not prepare for all possible drive names (F to Z)
    Have fun testing :D
     

    Users who are viewing this thread

    Similar threads

    After many hours of troubleshooting I've given up and accepted that it's just "one of these things" when using madVR for watching live TV. I've now ticked the box to "Use EVR for LiveTV", with a default display refresh rate of 50Hz. In combination with tweaking some of the Nvidia 3D settings for the MP executable only, I now have a...
    After many hours of troubleshooting I've given up and accepted that it's just "one of these things" when using madVR for watching...
    Every so often, when I switch to a TV channel, my MP client stops accepting user inputs, either from the remote or keyboard/mouse...
    Replies
    30
    Views
    8K
    If you’re planning to submit a pull request, let’s go through the list of issues and their solutions. I or someone from the team will create a Jira ticket, and for each ticket, you’ll make the changes and submit a pull request. This will be transparent and straightforward.
    If you’re planning to submit a pull request, let’s go through the list of issues and their solutions. I or someone from the team...
    I'm very glad to see that mediaportal 1 is on github, where ordinary devs with github accounts can make contributions. Please can...
    Replies
    7
    Views
    1K
    I made some updates to the Wiki page describing the <import> and <include> tags, including adding a couple of new xml examples. For the first example, I highlighted the example text and eventually found the location in the menus where I could select the CODE macro to have the example text formatted as a code example. So far, so good...
    I made some updates to the Wiki page describing the <import> and <include> tags, including adding a couple of new xml examples. For...
    I made some updates to the Wiki page describing the <import> and <include> tags, including adding a couple of new xml examples. For...
    Replies
    0
    Views
    523
    Are the media/video folders on the Mint host?
    Are the media/video folders on the Mint host?
    I've used Mediaportal for years on a Windows Host with restricted online-access. Lately I reinstalled...
    Replies
    1
    Views
    1K
    TV Server plugins are listed on this page, and "EPG Cleaner" can be downloaded from this page. Note: I don't know what bitness the plugin has. It might be 32-bit, or it might be "any cpu". The plugin is not listed by the "MP Extensions" tool, so I don't know whether it has been tested with the most-recent MP releases. -- from...
    TV Server plugins are listed on this page, and "EPG Cleaner" can be downloaded from this page. Note: I don't know what bitness the...
    I'm looking for a better recording scheduler. Many recording titles (at least in the UK) change between episodes, sometimes being...
    Replies
    4
    Views
    1K
    Top Bottom