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: Thepathparameter contains the path to the mount point of the hard disk. -
fstype: Thefstypeparameter indicates the file system type used on the hard disk. -
total: Thetotalparameter displays the total size of the hard disk in bytes. -
free: Thefreeparameter shows the amount of free space on the hard disk in bytes. -
used: Theusedparameter indicates the used space on the hard disk in bytes. -
used_percent: Theused_percentparameter shows the percentage of space used on the hard disk. -
inodes_total: Theinodes_totalparameter displays the total number of inodes on the hard disk. -
inodes_used: Theinodes_usedparameter indicates the number of used inodes on the hard disk. -
inodes_free: Theinodes_freeparameter shows the number of free inodes on the hard disk. -
inodes_used_percent: Theinodes_used_percentparameter 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.