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
#1
New person here - new to Python.

Looking for some scripts to display data in a different format. Example - take a KPa and convert and display as Inces of Mercury.
I have one sample for converting Celsius to Fahrenheit -

bmpTemp = bmp280.read_temperature()
TempF = bmpTemp* (9.0/5.0) +32.0
print 'Temperature = \t{0:0.2f} F'.format(TempF)
Again, just a sample and has not yet been tested or inserted into the rest of the code.

Need something similar for Meters to Feet and KPA to Inches of Mercury.

I thought I would try the same format as the sample and just change the formula and the headers.

Thanks

Michael
Reply


Messages In This Thread
Mathematical Conversion Scripts for Weather Station - by Mickey53usa - Jun-16-2020, 01:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  plotting based on the results of mathematical formulas Timur 1 335 Feb-08-2024, 07:22 PM
Last Post: Gribouillis
  Taking Mathematical Expressions from Strings quest 2 700 Jul-02-2023, 01:38 PM
Last Post: Pedroski55
  Copying files from a remote Windows station tester_V 11 6,840 Jul-17-2021, 02:19 AM
Last Post: tester_V
  About mathematical equations seyidcemkarakas 3 2,023 Oct-04-2020, 01:21 PM
Last Post: Gribouillis
  Recognising mathematical expressions from word and pdf file Preeti15 0 1,782 Aug-19-2020, 09:06 AM
Last Post: Preeti15
  Parsing Date/Time from Metar Reports with 6 hourly weather information Lawrence 0 2,329 May-03-2020, 08:15 PM
Last Post: Lawrence
  Mathematical Operators in String AgileAVS 1 2,379 Mar-04-2020, 04:14 PM
Last Post: Gribouillis
  Mathematical function input Tiiill 2 2,702 Sep-10-2019, 09:25 PM
Last Post: nilamo
  Beginner user: mathematical operations Mahdi1994 1 2,844 Mar-19-2018, 11:07 AM
Last Post: Larz60+
  how to make a mathematical operation without the command "print" ewar2606 4 2,942 Mar-15-2018, 07:19 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

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