I’m using pool.query in my experiment to show data into an LCD, It shows a lot of usefull info like status - health - topology - space… I think you can achieve your goal just with that
… and it gives me the number of bites(?) in DuffleBag. Divide by 1024^4 and I get TiB … exactly the same as ‘zpool list’ but different from the usage dashboard.
full truenas path is … /mnt/SnappitySnap/TrueNASInfo/Scripts and then Pool status windows folder. I compared the two files with beyond compare and then copied the missing information from one to the other and saved.
Both files are now in sync. I run my script from the terminal (putty). First step is to delete the old file, then echo a bunch of stuff to the file with > and >>.
I just ran it with two explorer windows open in the back ground … file disappears (the delete) and then reappears (writing) on both explorers at the same time. And they are the same.