(How embarrassing.)
I already had most of that flow already. I just hadn't added the GUI.
One way I did it was:
df -h /dev/sda1 | grep / | tr -s ' ' | cut -d " " -f4
But that shows me the remaining spavce - I think. I didn't know the --output=used
bit then.
And the way I did it last night was:
df --output=used /dev/sda1
(but then needed to do work on the output with other nodes
.
Sorry guys.
It is called C.R.A.F.T. disease.
I'll let you work that out.
then just feed into the gauge (as it will cope with simple text.)
@dceejay Yeah, oops. Silly me.
Oh, not to sound petty.
Ok, so that part works.
It is/seems silly having that and not having a threshold above which it alerts me.
So I send the output to a switch
and switch if the value > (what ever)
So I am guessing I will need a function
node in there with msg.payload = parseInt(msg.payload)
in it.