79310615

Date: 2024-12-26 23:27:21
Score: 1
Natty:
Report link

I eventually figured it out:

mosquitto_sub -h 192.168.1.5 -v -t ArgyleCourt/Property/# | xargs -d$'\n' -L1 sh -c 'date "+%Y-%m-%d %T.%3N $0"' | grep --line-buffered "IrrigationTank\|BoreP\|Hub" | tee MQTT_TankfillMsgs.txt

... adding -line-buffered to the grep command will output the filtered MQTT input to both, file and terminal.

Thanks for hanging in there.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: MaxG