Steve,
on mx ui now page for the two wind baring would it be had to add the wind direction letter also ?
thanks Beau
Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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
now ui request
Moderator: mcrossley
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: now ui request
Like this?
Unzip now.html and now.js and replace the ones under 'interface' in your Cumulus folder on your PC. I think it might look better without the degree symbols, you could change these new lines in now.js to remove them if you think so too:
to
Unzip now.html and now.js and replace the ones under 'interface' in your Cumulus folder on your PC. I think it might look better without the degree symbols, you could change these new lines in now.js to remove them if you think so too:
Code: Select all
$('#BearingCP').html('° '+ cp[Math.floor(((parseInt(data.Bearing) + 11) / 22.5) % 16 )]);
$('#AvgbearingCP').html('° '+ cp[Math.floor(((parseInt(data.Avgbearing) + 11) / 22.5) % 16 )]);
Code: Select all
$('#BearingCP').html(cp[Math.floor(((parseInt(data.Bearing) + 11) / 22.5) % 16 )]);
$('#AvgbearingCP').html(cp[Math.floor(((parseInt(data.Avgbearing) + 11) / 22.5) % 16 )]);
You do not have the required permissions to view the files attached to this post.
Steve
- mcrossley
- Posts: 12756
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: now ui request
Me too, nice change.steve wrote:I think it might look better without the degree symbols
The forum needs a 'thumbs up' smilie!
-
- Posts: 845
- Joined: Sun 10 May 2009 8:52 pm
- Weather Station: davis vp2 Serial datalogger
- Operating System: Windows 7 64-bit
- Location: Springfield, IL
Re: now ui request
Thanks Steve
I also took the deg off
Beau
I also took the deg off
Beau
- 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: now ui request
I guess 3017 doesn't show ° at all. I see it if I hit the refresh button and only momentarily until the sign is replaced by the wind direction.
I think it would look better with it after the number which is the preferred format.
Temperature has a number, a space, the degree sign, and unit used...
12.5 °C
79.3 °F
The wind should be bearing, degree sign, space, direction...
180° S
270° W
To do this, change now.html from...
To...
I think it would look better with it after the number which is the preferred format.
Temperature has a number, a space, the degree sign, and unit used...
12.5 °C
79.3 °F
The wind should be bearing, degree sign, space, direction...
180° S
270° W
To do this, change now.html from...
Code: Select all
<tr>
<td>Bearing</td>
<td><span id="Bearing">--</span></td>
<td><span id="BearingCP">°</span></td>
</tr>
<tr>
<td>Average Bearing</td>
<td><span id="Avgbearing">--</span></td>
<td><span id="AvgbearingCP">°</span></td>
</tr>
Code: Select all
<tr>
<td>Bearing</td>
<td><span id="Bearing">--</span>°</td>
<td><span id="BearingCP">--</span></td>
</tr>
<tr>
<td>Average Bearing</td>
<td><span id="Avgbearing">--</span>°</td>
<td><span id="AvgbearingCP">--</span></td>
</tr>
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: now ui request
Until I incorporated this change as standard, they were all exactly the same - the value in one column and the units in the next column. I prefer it the way it is now, the degree symbol seems superfluous to me, but of course one of the main advantages of the UI working the way it does in MX is that you can make it look exactly how you want.
Steve
-
- Posts: 1255
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: now ui request
I have configured this to show a degree symbol next to the number in the same column as the number, and, the cardinal letters in the next column where the degree symbol used to be.
Starting at line 190 in <CumulusMXdir>/interface/now.html
Code: Select all
<tr>
<td>Bearing</td>
<td><span id="Bearing">--</span> °</td>
<td><span id="BearingCP"></span></td>
</tr>
<tr>
<td>Average Bearing</td>
<td><span id="Avgbearing">--</span> °</td>
<td><span id="AvgbearingCP"></span></td>
</tr>