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 3.1k 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.
  • C Offline
    C 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

    B 1 Reply Last reply
    0
    • C 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

      B Offline
      B 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);
      
      C 1 Reply Last reply
      0
      • B 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);
        
        C Offline
        C Offline
        clippermiami
        Hero Member
        wrote on last edited by
        #3

        @BulldogLowell OH. Duh :)

        Thanks

        B 1 Reply Last reply
        0
        • C clippermiami

          @BulldogLowell OH. Duh :)

          Thanks

          B Offline
          B 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.

          C 1 Reply Last reply
          0
          • B 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.

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

            @BulldogLowell Thanks for that too

            1 Reply Last reply
            0
            • H Offline
              H 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?

              C 1 Reply Last reply
              0
              • H 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?

                C Offline
                C 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

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                15

                Online

                12.1k

                Users

                11.2k

                Topics

                113.4k

                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