Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. Vera
  4. Vera Reporting Barometric Pressure

Vera Reporting Barometric Pressure

Scheduled Pinned Locked Moved Vera
7 Posts 3 Posters 2.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • clippermiamiC Offline
    clippermiamiC Offline
    clippermiami
    Hero Member
    wrote on last edited by clippermiami
    #1

    I finally got my barometric sensor running. I used the BMP180 sensor which apparently uses the same library as the BMP085 sensor

    1. It looks like it reports as miliibars x10? e.g. 102051 Pa
    2. 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)
    3. 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)
    4. 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

    BulldogLowellB 1 Reply Last reply
    0
    • clippermiamiC clippermiami

      I finally got my barometric sensor running. I used the BMP180 sensor which apparently uses the same library as the BMP085 sensor

      1. It looks like it reports as miliibars x10? e.g. 102051 Pa
      2. 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)
      3. 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)
      4. 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

      BulldogLowellB Offline
      BulldogLowellB Offline
      BulldogLowell
      Contest Winner
      wrote on last edited by
      #2

      @clippermiami

      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);
      
      clippermiamiC 1 Reply Last reply
      0
      • BulldogLowellB BulldogLowell

        @clippermiami

        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);
        
        clippermiamiC Offline
        clippermiamiC Offline
        clippermiami
        Hero Member
        wrote on last edited by
        #3

        @BulldogLowell OH. Duh :)

        Thanks

        BulldogLowellB 1 Reply Last reply
        0
        • clippermiamiC clippermiami

          @BulldogLowell OH. Duh :)

          Thanks

          BulldogLowellB Offline
          BulldogLowellB Offline
          BulldogLowell
          Contest Winner
          wrote on last edited by
          #4

          @clippermiami

          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.

          clippermiamiC 1 Reply Last reply
          0
          • BulldogLowellB BulldogLowell

            @clippermiami

            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.

            clippermiamiC Offline
            clippermiamiC Offline
            clippermiami
            Hero Member
            wrote on last edited by
            #5

            @BulldogLowell Thanks for that too

            1 Reply Last reply
            0
            • hekH Offline
              hekH Offline
              hek
              Admin
              wrote on last edited by
              #6

              @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?

              clippermiamiC 1 Reply Last reply
              0
              • hekH hek

                @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?

                clippermiamiC Offline
                clippermiamiC Offline
                clippermiami
                Hero Member
                wrote on last edited by
                #7

                @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

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                12

                Online

                11.7k

                Users

                11.2k

                Topics

                113.1k

                Posts


                Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • MySensors
                • OpenHardware.io
                • Categories
                • Recent
                • Tags
                • Popular