HDD
In the Smart Home system, there is a “hdd” plugin that provides the display of hard disk parameters. This plugin allows you to obtain information about various characteristics of the hard disk. Here are some of these parameters:
-
path
: Thepath
parameter contains the path to the mount point of the hard disk. -
fstype
: Thefstype
parameter indicates the file system type used on the hard disk. -
total
: Thetotal
parameter displays the total size of the hard disk in bytes. -
free
: Thefree
parameter shows the amount of free space on the hard disk in bytes. -
used
: Theused
parameter indicates the used space on the hard disk in bytes. -
used_percent
: Theused_percent
parameter shows the percentage of space used on the hard disk. -
inodes_total
: Theinodes_total
parameter displays the total number of inodes on the hard disk. -
inodes_used
: Theinodes_used
parameter indicates the number of used inodes on the hard disk. -
inodes_free
: Theinodes_free
parameter shows the number of free inodes on the hard disk. -
inodes_used_percent
: Theinodes_used_percent
parameter indicates the percentage of inodes used on the hard disk.
Additionally, the “hdd” plugin has a mount_point
settings option that allows you to specify the mount point to display parameters for a specific hard disk.
Here’s an example of using the “hdd” plugin to retrieve hard disk parameters:
const hddParams = EntityGetAttributes('hdd.hdd1')
const hddSettings = EntityGetSettings('hdd.hdd1')
console.log(hddSettings.mount_point);
console.log(hddParams.path);
console.log(hddParams.fstype);
console.log(hddParams.total);
console.log(hddParams.free);
console.log(hddParams.used);
console.log(hddParams.used_percent);
console.log(hddParams.inodes_total);
console.log(hddParams.inodes_used);
console.log(hddParams.inodes_free);
console.log(hddParams.inodes_used_percent);
You can use these parameters to display information about the hard disk in your Smart Home project.