Subflows to read information from the HMC5883L 3-axis digital compass via the I2C bus
All these subflows can be installed/used independently from each other.
confirmHardwareIdentity.json - to confirm the correct device exists on the I2C bus
readConfigRegister.json - Read the configuration register
readStatusRegister.json - Read the status register
getCompassReading.json - get 3D compass reading
getCurrentOperationalModeStatus.json - get the Current Operational Mode Status
The node-red-contrib-i2c is required for this subflow.
https://flows.nodered.org/node/node-red-contrib-i2c
Send an arbitrary payload to the subflow, get results.
This collection of subflows is not well documented. I made this flow years ago as a test, it worked fine, and then I didn't need to use that specific component anymore so I never went back and documented it well.
I have uploaded it here so it doesn't disappear entirely, and somebody else could use it. It works as advertised.