mrkrasser / node-red-contrib-bmp085

Node-RED node for Bosch BMP085 or BMP180 barometer pressure sensor
2 stars 17 forks source link

Pressure output - too many decimal places #8

Closed jamms closed 8 years ago

jamms commented 8 years ago

Hi Sergey, I can see that around version 0.1.6 that the original pressure calculations were changed when sea level was added. The problem I have is that now, with the latest version the debug output i get in Node Red is showing the pressure to 13 or so decimal places, (e.g.752.1725854712103mmHg) so this does not match what is shown in the screengrabs.

I understand how the original pressure calculations worked, but not the new ones (I am fairly new to this). Could you show me how to fix the latest code to output the pressure to no decimal places again?

Jamms

jamms commented 8 years ago

Sergey,

Thanks, I see what you did there!

James

On 7 Mar 2016, at 10:49, Sergey Krasnov notifications@github.com wrote:

Closed #8 https://github.com/mrkrasser/node-red-contrib-bmp085/issues/8 via d408214 https://github.com/mrkrasser/node-red-contrib-bmp085/commit/d4082141773a994d026961a55d12360c2aab31cb.

— Reply to this email directly or view it on GitHub https://github.com/mrkrasser/node-red-contrib-bmp085/issues/8#event-579974204.

mrkrasser commented 8 years ago

James, not at all. Good luck!