Scaling temp output


(Antony Pugh) #1

How can I convert in the device handler temperature readings.

It’s an external thermometer on a water tank and tops out at 50degrees C. I expect and will test that is about 85 degrees.

Now it might be an offset I need but I might need to scale it every so often. So 20degrees is a different offset to 25 or 30.

Thanks.


(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy) #2

Device Handlers run Groovy and will accept most basic Java math commands.