Vera Reporting Barometric Pressure
-
I finally got my barometric sensor running. I used the BMP180 sensor which apparently uses the same library as the BMP085 sensor
- It looks like it reports as miliibars x10? e.g. 102051 Pa
- Is there a way in the Vera interface to select millibars or inches? Most US reporting is still in inches of mercury. I tried changing it in the sensor code ((pressure/10)/33.67) but Vera shows only integer values (30 rather than 30.19)
- i did modify the code to report in 4 digits (1020 rather than 102051) although the actual local pressure is 1018 mb (nearby GA airport)
- Is there a way to to adjust the values from the sensor?
I haven't made the forecast function to work yet, when I compiled with it the sensor went "crazy" and kept transmitting rubbish. So I've no-oped it for now
-
gw.sendVariable(0, V_PRESSURE, pressure, 0);
try to change the zero to 2 for two decimal places
gw.sendVariable(0, V_PRESSURE, pressure, 2);
-
@BulldogLowell OH. Duh
Thanks
-
To get it to display in your units, you can try to go and edit the json files in the vera device. For me I was unable to get it to display in mmHg by flipping the IsMetric switch in the sketch.
-
@BulldogLowell Thanks for that too
-
@clippermiami said:
i did modify the code to report in 4 digits (1020 rather than 102051) although the actual local pressure is 1018 mb (nearby GA airport)
Hmm. should we divide by 1000 perhaps? Pull request?
-
@hek my solution was to divide by 100 to get millibars and I use that for a while. Once I was shown how to get 2 places past the decimal I add a divisor for millibars to inches of Mercury, 33.86......
I also added an adjustment factor to get it to the actual local value. In my case I added "-101" millionaires to get the correct local metric value and then applied the metric to imperial divisor. Now I get display values such as 30.02, today's reading at the local GA airport a few miles from me.
Thanks to everyone