Python Forum
Mathematical Conversion Scripts for Weather Station
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mathematical Conversion Scripts for Weather Station
Just to close this thread - I used the following code and now things are formatting properly -

bmpPress = bmp280.read_pressure()/1000
Pressin = bmpPress* .29530
print 'Pressure = \t{0:0.2f} in'.format(Pressin)
The pressure being read in as an integer not a floating point number. So you have to convert it hence divide by 1000.
Help provided by a knowledgeable local friend -
And I was repeating the same from the start...
(Jun-18-2020, 07:13 PM)buran Wrote: It's 3 places off i.e. I think it's 1000 higher, so I guess you misinterpret the data you read in what measurment
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs


Possibly Related Threads…
Thread Author Replies Views Last Post
  About mathematical equations seyidcemkarakas 3 261 Oct-04-2020, 01:21 PM
Last Post: Gribouillis
  Recognising mathematical expressions from word and pdf file Preeti15 0 288 Aug-19-2020, 09:06 AM
Last Post: Preeti15
  Parsing Date/Time from Metar Reports with 6 hourly weather information Lawrence 0 410 May-03-2020, 08:15 PM
Last Post: Lawrence
  Mathematical Operators in String AgileAVS 1 533 Mar-04-2020, 04:14 PM
Last Post: Gribouillis
  Mathematical function input Tiiill 2 609 Sep-10-2019, 09:25 PM
Last Post: nilamo
  Beginner user: mathematical operations Mahdi1994 1 1,193 Mar-19-2018, 11:07 AM
Last Post: Larz60+
  how to make a mathematical operation without the command "print" ewar2606 4 1,206 Mar-15-2018, 07:19 PM
Last Post: sparkz_alot
  Python code weather Led sign n3vo 21 5,640 May-17-2017, 07:09 PM
Last Post: n3vo

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020