Divide Temperature & Humidity in Input / Feed?

Im using a DHT22 to send data to the RFM12Pi, it works great but the input values are shown wrong. For Example 2410 is 24,1C 

Is there a way to divide it with 100 at the input or feed?

https://github.com/nathanchantrell/TinyTX/blob/master/TinyTX_DHT22/TinyT...

pb66's picture

Re: Divide Temperature & Humidity in Input / Feed?

You can multiply input by 0.01. this scaling is used to give temp to 2 decimal places using integers.

Paul

raspberry.tips's picture

Re: Divide Temperature & Humidity in Input / Feed?

Ah, found it :)

Select the process "x" to scale the input and enter 0.01 in the argument box. Now that the value is the correct quantity we can then "log it to a feed" which is to stay store the data in a database.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.