Author Topic: Saratoga template barometer units [Resolved]  (Read 842 times)

0 Members and 1 Guest are viewing this topic.

Offline Vasco

  • Forecaster
  • *****
  • Posts: 342
    • PWS
Saratoga template barometer units [Resolved]
« on: December 02, 2022, 05:52:30 PM »
Can't get the template to display UOM mb, even though WD uses mb. I have set

Code: [Select]
$SITE['uomBaro'] = ' mb';
in Settings.php and

Code: [Select]
var usehPa   = false;
in AjaxWDwx.js to no avail, template still shows hPa. (Actually, it shows mb until the first Ajax update, when it changes to hPa.)

Interestingly, DS forecast details show current pressure in mb, even though set to use uk2 units:

Code: [Select]
$showUnitsAs  = 'uk2';
What am I missing?
« Last Edit: December 03, 2022, 05:48:29 AM by Vasco »
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

Offline Vasco

  • Forecaster
  • *****
  • Posts: 342
    • PWS
Re: Saratoga template barometer units
« Reply #1 on: December 03, 2022, 05:47:42 AM »
Think I've cracked it: in line 167 of ajaxWDwx.js changed default metric uomBaro from hPa to mb. Seems to work. . .
« Last Edit: December 03, 2022, 05:53:55 AM by Vasco »
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

 

anything