Drive Free Space Plugin | Page 5

Discussion in 'MediaPortal 1 Plugins' started by SilentException, February 14, 2009.

  1. cruse
    • Premium Supporter

    cruse MP Donator

    Joined:
    November 7, 2007
    Messages:
    166
    Likes Received:
    41
    Ratings:
    +41 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Great work SilentExcept!

    Suggestion:
    Introduce a differentiation in the syntax where controls for ALL drives are preceded by Drives.xyz.xyz while single drives are controlled by DriveX.xyz.

    In case of the Drives.xyz.xyz controls, all placeholders referring to a single drive like %drive% or %label% are ignored and %totalspace% is treated as the sum of all totalspaces of the drives selected in the configuration. The same with %freespace% and so on.



    This is useful in case you are not interested in the status of a single drive but want to see the overall picture. In plugins like TVSeries it does not matter on which HDD the files are stored. They are indexed and assembled in one frontend. A total of all HDDs involved would be helpful there.

    Thanks again!
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. wkwapil
    • Premium Supporter

    wkwapil MP Donator

    Joined:
    September 27, 2008
    Messages:
    140
    Likes Received:
    7
    Location:
    192.168.x.x
    Ratings:
    +7 / 0
    Home Country:
    Germany Germany
  4. Bleazle
    • Premium Supporter

    Bleazle Well-Known Member

    Joined:
    July 14, 2007
    Messages:
    1,122
    Likes Received:
    253
    Gender:
    Male
    Occupation:
    Retired Skinner :-)
    Location:
    Pukekohe
    Ratings:
    +256 / 1
    Home Country:
    New Zealand New Zealand
    Show System Specs
    Got Drives????

    Here you go :) (btw these files aren't included in the latest version of the skin - they will be included in the next version)

    When I showed this to the family no one liked it on the Basic Home screen :( - mainly because the greens and reds don't go with the BleazleWide skin so after some deliberation (i.e. my 12 year old son told me what to do..) I decided to incorporate this information into the Settings screen, as below. I'm pretty happy with the result because this is an under utilised screen imo.

    I don't usually have this many HDDs hooked up to my HTPC but I wanted a good looking screenshot :D If anyone uses more drives than this another line could be added very easily.

    The attached zip file includes the PNG files I used + the XML files for both the Basic Home and Settings screen options.

    This is the text that goes in the GUI settings when configuring the plugin (this text is also included in the zip file):

    %drive% (%label%)
    Total: %totalspace% %unit%
    Used: %usedspace%
    Free: %freespace%



    Bleazle

    EDIT: The reason one of the drives (E) is blank is because that's my CD drive, which isn't selected in my configuration (because it just throws an "error" message)
     

    Attached Files:

  5. catavolt
    • Team MediaPortal
    • Administrator

    catavolt Design Group Manager

    Joined:
    August 13, 2007
    Messages:
    12,234
    Likes Received:
    4,980
    Gender:
    Male
    Occupation:
    Technical Documentation, Translation
    Location:
    Lanzarote
    Ratings:
    +7,390 / 38
    Home Country:
    Germany Germany
    Show System Specs
    Well done, Bleazle!
     
  6. Malingo

    Malingo Portal Pro

    Joined:
    July 26, 2008
    Messages:
    71
    Likes Received:
    2
    Gender:
    Male
    Ratings:
    +2 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Nice plugin, this is exactly what I was looking for.
    (Literally, I came to the forum yesterday to search exactly for this kind of plugin) :D
     
  7. joz

    joz Portal Pro

    Joined:
    March 17, 2008
    Messages:
    1,353
    Likes Received:
    153
    Occupation:
    J2ME / PHP programmer
    Ratings:
    +154 / 0
    Home Country:
    Netherlands Netherlands
    Just did a monohrome one
     

    Attached Files:

    • monchrome.jpg
      monchrome.jpg
      File size:
      37.7 KB
      Uploaded:
      February 26, 2009
      Views:
      181
  8. icont

    icont New Member

    Joined:
    January 27, 2009
    Messages:
    1
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    Plugin settings for MediaPortal1

    Hi,

    I am new to MediaPortal, have been playing with it for a couple of months. I m trying to setup Drive Free Space plugin and I have enabled it in MP Configuration but when I insert the code to a page - for example BasicHome - I can not see any difference on the screen at all.
    I am trying to edit files in Program Files\Team MediaPortal\MediaPortal\skin\Blue3.

    It is also kind of hard (especially for newby) to tell which file exactly relates to which window in GUI.

    Can somebody help?

    :D
     
  9. SilentException
    • Team MediaPortal

    SilentException Retired Team Member

    Joined:
    October 27, 2008
    Messages:
    2,617
    Likes Received:
    1,125
    Gender:
    Male
    Location:
    Rijeka, Croatia
    Ratings:
    +1,129 / 0
    Home Country:
    Croatia Croatia
    hello and welcome to mp world :)

    first things first.. have you configured plugin from mp configuration? selected drives you want to monitor?

    next, to properly use this plugin you'll have to use one of the templates posted in this thread or become more familiar with skin architecture.. you can read all about it here: MediaPortal1_Development/SkinArchitecture - MediaPortal Manual Documentation

    about GUI-xml relation, most of the time you can just guess by name.. internally, each gui window has its own id and by that id the skin file is located too.. look at the beginning of almost every skin file there should be something like <window> <id>1234</id> ..... </window>..

    main window codes are listed here: SourceForge.net Repository - [mediaportal] View of /trunk/mediaportal/Core/guilib/GUIWindow.cs and every plugin has new unique one too..

    huh, hope this will help :)

    have fun!
     
  10. yesdup

    yesdup Portal Member

    Joined:
    July 4, 2007
    Messages:
    24
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    New Zealand New Zealand
    I am having EXACLTY the same problem as Icont. I have the plugin and have configured it to show the drives i want. But here is where i did EXACTLY the same thing as Icont. i have added the code provided to end of the Homebasic.xml file and nothing is happening.

    Thanks for the sugestion but no i don't wish to learn more about skinning architecture, sorry. I am using the Default blue 3 theme and it's all good for me. But i can't find any file to download from the thread. Plus, what would i do??

    So please can someone help me get this plugin working.......(i don't understand why it has to be a plugin and not part of MP to begin with. This is essential functionality to me. So thanks for making it)

    thanks
     
  11. Bleazle
    • Premium Supporter

    Bleazle Well-Known Member

    Joined:
    July 14, 2007
    Messages:
    1,122
    Likes Received:
    253
    Gender:
    Male
    Occupation:
    Retired Skinner :-)
    Location:
    Pukekohe
    Ratings:
    +256 / 1
    Home Country:
    New Zealand New Zealand
    Show System Specs
    Mate, you're sounding a bit frustrated!

    By "default blue 3 theme" do you mean Blue3Wide? If you do you could download the files I posted above and drop them into your Blue3Wide skin directory as follows:
    Blue3Wide directory- Use the "settings.xml" file, then you won't have to make any changes
    Blue3Wide/Media directory - drop the *.png files into there

    That's it! If you configure the plugin as per the README file I've included you'll end up with the following which will give info on up to 12 Drives without having to make any skin changes yourself :):

    [​IMG]

    Remember to save a backup copy of the original "settings.XML" file just in case you don't like the end result.

    Hope that helps

    Bleazle
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!