- Moderator
- #1
this is a process plugin i've made for displaying free HDD space on your drives.. it's highly configurable and flexible..
install by putting three dll files in MP\plugins\process folder, run configuration and configure it as you like..
next, you should add a new control in skin files where this should be used. this is an example i've made in a hurry but you'll get the point
Example for main control (textual)
Example for Progress bar control
hope you will like this, report your thoughts, bugs, whatever here
Known "issues"
If you're on Windows 7, sometimes there is issue with UAC and DriveFreeSpace not seeing network drives. Solution is to turn off UAC or try fix from the following TechNet article: Some Programs Cannot Access Network Locations When UAC Is Enabled
Thanks to Larzon for helping me debug the issue!
Changelog:
v0.55
changed (rewrote) component for drives selection (old one was not working properly on Win7) - old dll files (Raccoom.TreeViewFolderBrowser.dll and Raccoom.TreeViewFolderBrowser.DataProviders.dll) are no longer needed
v0.51
increased character limit on bitrate textbox to 5
small changes in configuration
v0.5
due to change in MediaPortal properties, brackets cannot be part of the property names - all properties with (X) renamed to .X.
added bitrate calculation (recording time left) - requested by daniel_1980
property #Drives.AvailableSpace.Data split in two (#DriveFreeSpace.AvailableSpace.Data.Drives and #DriveFreeSpace.AvailableSpace.Data.Total) - .Drives works exactly as old one and .Total returns the formatted data for all selected drives - requested by cruse
added #DriveFreeSpace.Enabled and #DriveFreeSpace.X.Enabled properties - first will contain true/false strings depending on weather any drive has been selected, second will contain true/false strings depending on weather drive X is selected - requested by Bleazle
added possibility for multiple plugins: copy DriveFreeSpace.dll and rename it as you wish
due to that possibility, all gui properties are prefixed with plugin file name now: instead of #Drives* properties, they are now named #DriveFreeSpace* or whatever the plugin file name is
also, this now requires you to reconfigure the plugin
fixed for MediaPortal v1.1
v0.4
added new gui properties #Drives.AvailableSpace.UsedPercentage and #Drives(X).AvailabelSpace.UsedPercentage; returns percentage of used space for all or one drive; replace X with the drive letter
added new text property %uspercent% - returns a number (percent of occupied space)
added new text property %usedspace% - returns used space in GB/MB/KB
added new text property %driveletteronly% - returns drive letter only with no colon character
v0.31
all new lines are now processed only from configuration!
fixed a small glitch in last build (30 seconds blackout on plugin start)
v0.3
added new gui properties #Drives(X).AvailableSpace.Data and #Drives(X).AvailableSpace.Percentage for each drive selected in configuration; replace X with the drive letter (doh!)
v0.2
fixed decimals
added new text property %fspercent% - returns a number (percent) of free space
added #Drives.AvailableSpace.Percentage - note that this returns percentage of free space of ALL drives you have selected in configuration.. i'm working on a version that will create a new property #Drives(X).AvailableSpace which will return .Data or .Percentage depending on what drives you have selected
Renamed #Drives.AvailableSpace to #Drives.AvailableSpace.Data (i had problems with progress bar so i had to)
v0.1
initial release
Note: since version 0.51, source is available on MediaPortal plugins repository (SourceForge), therefore no longer included in package
install by putting three dll files in MP\plugins\process folder, run configuration and configure it as you like..
next, you should add a new control in skin files where this should be used. this is an example i've made in a hurry but you'll get the point
Example for main control (textual)
Code:
<control>
<description>Drive space</description>
<type>textboxscrollup</type>
<id>37483</id>
<posX>1600</posX>
<posY>100</posY>
<width>300</width>
<height>300</height>
<font>font11</font>
<label>[B]#Drives.AvailableSpace.Data.Drives[/B]</label>
<visible>yes</visible>
</control>
Example for Progress bar control
Code:
<control>
<description>Progress Bar</description>
<type>progress</type>
<id>20</id>
<posX>560</posX>
<posY>885</posY>
<width>500</width>
<height>30</height>
<label>[B]#Drives.AvailableSpace.Percentage[/B]</label>
<texturebg>progress_background_tvhome.png</texturebg>
<lefttexture>progress_blank30.png</lefttexture>
<midtexture>progress_mid_white30.png</midtexture>
<righttexture>progress_blank30.png</righttexture>
<visible>yes</visible>
</control>
hope you will like this, report your thoughts, bugs, whatever here
Known "issues"
If you're on Windows 7, sometimes there is issue with UAC and DriveFreeSpace not seeing network drives. Solution is to turn off UAC or try fix from the following TechNet article: Some Programs Cannot Access Network Locations When UAC Is Enabled
Thanks to Larzon for helping me debug the issue!
Changelog:
v0.55
changed (rewrote) component for drives selection (old one was not working properly on Win7) - old dll files (Raccoom.TreeViewFolderBrowser.dll and Raccoom.TreeViewFolderBrowser.DataProviders.dll) are no longer needed
v0.51
increased character limit on bitrate textbox to 5
small changes in configuration
v0.5
due to change in MediaPortal properties, brackets cannot be part of the property names - all properties with (X) renamed to .X.
added bitrate calculation (recording time left) - requested by daniel_1980
property #Drives.AvailableSpace.Data split in two (#DriveFreeSpace.AvailableSpace.Data.Drives and #DriveFreeSpace.AvailableSpace.Data.Total) - .Drives works exactly as old one and .Total returns the formatted data for all selected drives - requested by cruse
added #DriveFreeSpace.Enabled and #DriveFreeSpace.X.Enabled properties - first will contain true/false strings depending on weather any drive has been selected, second will contain true/false strings depending on weather drive X is selected - requested by Bleazle
added possibility for multiple plugins: copy DriveFreeSpace.dll and rename it as you wish
due to that possibility, all gui properties are prefixed with plugin file name now: instead of #Drives* properties, they are now named #DriveFreeSpace* or whatever the plugin file name is
also, this now requires you to reconfigure the plugin
fixed for MediaPortal v1.1
v0.4
added new gui properties #Drives.AvailableSpace.UsedPercentage and #Drives(X).AvailabelSpace.UsedPercentage; returns percentage of used space for all or one drive; replace X with the drive letter
added new text property %uspercent% - returns a number (percent of occupied space)
added new text property %usedspace% - returns used space in GB/MB/KB
added new text property %driveletteronly% - returns drive letter only with no colon character
v0.31
all new lines are now processed only from configuration!
fixed a small glitch in last build (30 seconds blackout on plugin start)
v0.3
added new gui properties #Drives(X).AvailableSpace.Data and #Drives(X).AvailableSpace.Percentage for each drive selected in configuration; replace X with the drive letter (doh!)
v0.2
fixed decimals
added new text property %fspercent% - returns a number (percent) of free space
added #Drives.AvailableSpace.Percentage - note that this returns percentage of free space of ALL drives you have selected in configuration.. i'm working on a version that will create a new property #Drives(X).AvailableSpace which will return .Data or .Percentage depending on what drives you have selected
Renamed #Drives.AvailableSpace to #Drives.AvailableSpace.Data (i had problems with progress bar so i had to)
v0.1
initial release
Note: since version 0.51, source is available on MediaPortal plugins repository (SourceForge), therefore no longer included in package
Attachments
-
DriveFreeSpacePlugin0.2.rar30.7 KB
-
DriveFreeSpacePlugin0.3.rar30.7 KB
-
DriveFreeSpacePlugin0.31.rar30.7 KB
-
DriveFreeSpaceWithSrc0.4.rar30.7 KB
-
DriveFreeSpaceWithSrc0.5.rar183.9 KB
-
DriveFreeSpaceWithSrc0.51.rar184.9 KB
-
DriveFreeSpace0.55.rar11.7 KB
-
DriveFreeSpace0.55 for Mediaportal 1.2.0 beta and 1.3.0 Alpha.rar11.8 KB
Last edited by a moderator: