Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

inHg > hPa in the USA

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
User avatar
Buford T. Justice
Posts: 423
Joined: Fri 17 Aug 2012 9:21 pm
Weather Station: Ecowitt GW1002
Operating System: Windows 11 Pro
Location: USA

inHg > hPa in the USA

Post by Buford T. Justice »

I am a USA user of Cumulus with a Fine Offset weather station. I have had the display on hPa for a few months now and have come to like hPa more than inHg. After all, every 0.01" of inHg can have 3-4 hPa values. To me, that makes hPa more accurate.

I am thinking about starting 2013 using hPa. I have Cumulus set to use inHg. Would there be any disaster in switching to fully hPa? Would data using inHg get ruined?
RayProudfoot
Posts: 3602
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: inHg > hPa in the USA

Post by RayProudfoot »

Unlike rainfall, pressure readings do not accumulate during the year so you should be able to switch without too many problems. Converting historical data is tricky though.

The obvious question is what to do with your historic data retained in the various files Cumulus writes to. According to the Wiki the files affected would be Alltime.ini, Dayfile.txt, Monthly log files, Today.ini and Yesterday.ini. Ideally you would use Excel to convert inches to hPa but the trickiest bit is saving the file whilst still making it readable by Cumulus.

You would probably need to manually edit Cumulus.ini (without Cumulus running) to set the preference for hPa over inches. I guess you have PressureUnit=2 currently set. That would have to be changed to PressureUnit=1 for hPa.

Of course the easiest way would be to start afresh on 1 January and delete all existing data but it depends how important that is to you. As Steve points out in the help it's important to decide on units of measurement when setting up because changing them afterwards can be tricky if not impossible.
Cheers,
Ray, Cheshire.

Image
User avatar
Buford T. Justice
Posts: 423
Joined: Fri 17 Aug 2012 9:21 pm
Weather Station: Ecowitt GW1002
Operating System: Windows 11 Pro
Location: USA

Re: inHg > hPa in the USA

Post by Buford T. Justice »

I just played around with the numbers after making (and restoring) a backup. The records are easy to convert manually, but I wish there was a way to make a script that could read the Dayfile.txt file and convert the numbers. I only started last September so it shouldn't be too bad to manually do it.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: inHg > hPa in the USA

Post by steve »

Could you not do it quite quickly with Excel (or equivalent)? Put the conversion factor in an empty cell, right click, copy, select the cells in the pressure column, right click, paste special, multiply. Delete the temporary cell. You need to be careful to preserve the date format etc when saving it again.
Steve
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: inHg > hPa in the USA

Post by sfws »

(deleted - answered by Steve)
Last edited by sfws on Mon 03 Aug 2015 11:28 am, edited 1 time in total.
User avatar
Buford T. Justice
Posts: 423
Joined: Fri 17 Aug 2012 9:21 pm
Weather Station: Ecowitt GW1002
Operating System: Windows 11 Pro
Location: USA

Re: inHg > hPa in the USA

Post by Buford T. Justice »

It wasn't so bad going through Dayfile.txt. I loaded it in Cumulus then made a spreadsheet in OpenOffice Calc. All I did was:
  • Enter the inHg number in A1.
  • Make a formula in B1 using =A1*33.86389
  • Make a formula in C1 to round the B1 number to the nearest tenth using =ROUND(B1;1)
After correcting Dayfile.txt:
  • I clicked OK then saved a copy of Dayfile.txt outside of the Cumulus/Data folder.
  • I changed Cumulus to do hPa then closed Cumulus.
  • I reopened Cumulus again to let the data refresh then closed it again.
  • I copied the modified Dayfile.txt file back into the Cumulus/Data folder.
  • I reopened Cumulus and manually corrected the month, monthly, and yearly records.
It took me about 45 minutes or so.
RayProudfoot
Posts: 3602
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: inHg > hPa in the USA

Post by RayProudfoot »

:clap: Have you got a Cumulus presence on the web yet?
Cheers,
Ray, Cheshire.

Image
User avatar
Buford T. Justice
Posts: 423
Joined: Fri 17 Aug 2012 9:21 pm
Weather Station: Ecowitt GW1002
Operating System: Windows 11 Pro
Location: USA

Re: inHg > hPa in the USA

Post by Buford T. Justice »

RayProudfoot wrote::clap: Have you got a Cumulus presence on the web yet?
http://bit.ly/WaBcEN
Last edited by Buford T. Justice on Mon 28 Jan 2013 1:15 pm, edited 2 times in total.
RayProudfoot
Posts: 3602
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: inHg > hPa in the USA

Post by RayProudfoot »

Thanks. Your huge range of temps in the US never ceases to amaze me. :shock:
Cheers,
Ray, Cheshire.

Image
User avatar
Buford T. Justice
Posts: 423
Joined: Fri 17 Aug 2012 9:21 pm
Weather Station: Ecowitt GW1002
Operating System: Windows 11 Pro
Location: USA

Re: inHg > hPa in the USA

Post by Buford T. Justice »

RayProudfoot wrote:Thanks. Your huge range of temps in the US never ceases to amaze me. :shock:
LOL! That's just us being on Fahrenheit still. I never liked Celsius due to the small ranges in temperature. That's kind of the same reason I started to hate inHg; the ranges were too small. hPa has a larger range it seems and that is the preferred unit on the Fine Offset weather stations anyway.
User avatar
Buford T. Justice
Posts: 423
Joined: Fri 17 Aug 2012 9:21 pm
Weather Station: Ecowitt GW1002
Operating System: Windows 11 Pro
Location: USA

Re: inHg > hPa in the USA

Post by Buford T. Justice »

Is it possible to insert a script of some kind that would generate an inHg number under the hPa number on the indexT page?
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: inHg > hPa in the USA

Post by beteljuice »

Try (for 3 dec places)

Code: Select all

<script>
pressHg = <#press> * 0.029529983071;
document.write(pressHg.toFixed(3));
</script>
Don't forget to 'hard write' your pressure unit in your template page(s)
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
Buford T. Justice
Posts: 423
Joined: Fri 17 Aug 2012 9:21 pm
Weather Station: Ecowitt GW1002
Operating System: Windows 11 Pro
Location: USA

Re: inHg > hPa in the USA

Post by Buford T. Justice »

beteljuice wrote:Try (for 3 dec places)

Code: Select all

<script>
pressHg = <#press> * 0.029529983071;
document.write(pressHg.toFixed(3));
</script>
Don't forget to 'hard write' your pressure unit in your template page(s)
That did the trick! Thank you! I did 'hard write' my pressure unit by doing this in the barometer section of "indexT.htm"...

Code: Select all

  <tr>
    <td colspan="4" class="tableseparator_pressure">Pressure (MSL)</td>
  </tr>
  <tr class="td_pressure_data">
    <td>Barometer&nbsp;</td>
    <td><#press>&nbsp;<#pressunit></td>
    <td><#presstrend></td>
    <td><#presstrendval>&nbsp;<#pressunit>/hr</td>
  </tr>
  <tr class="td_pressure_data">
    <td>&nbsp;</td>
    <td><script>pressinHg = <#press> * 0.02953;document.write(pressinHg.toFixed(2));</script>&nbsp;inHg</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
Last edited by Buford T. Justice on Tue 15 Jan 2013 6:35 am, edited 8 times in total.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: inHg > hPa in the USA

Post by beteljuice »

... but you have pressure trend (and unit) in (now native) hPa
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
Buford T. Justice
Posts: 423
Joined: Fri 17 Aug 2012 9:21 pm
Weather Station: Ecowitt GW1002
Operating System: Windows 11 Pro
Location: USA

Re: inHg > hPa in the USA

Post by Buford T. Justice »

beteljuice wrote:... but you have pressure trend (and unit) in (now native) hPa
Yup and I am absolutely fine with that. I just thought having inHg would help other users learn hPa. In my opinion, hPa is superior to inHg.
Post Reply