Hi Mark:
Nice work on the 2.1.0 gauges. Thanks again.
I'm wondering where in the code I can change the color of the shadow on the wind rose gauge. I've figured out how to change the other ones, but no luck with the rose. Presumably it's in a different location than all the others?
Thanks,
--Kurt
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
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
Wind Rose Shadow
Moderator: mcrossley
- N0BGS
- Posts: 205
- Joined: Sat 10 Nov 2012 2:26 am
- Weather Station: Davis Vantage Pro 2
- Operating System: Win10vm,VMWare ESXi 7.0
- Location: Hermon, Maine USA
- Contact:
Wind Rose Shadow
Blitzortung Station 1809
- mcrossley
- Posts: 14384
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Wind Rose Shadow
Yes, it is separate for now, in windrose.js at line 78 (ish)
- N0BGS
- Posts: 205
- Joined: Sat 10 Nov 2012 2:26 am
- Weather Station: Davis Vantage Pro 2
- Operating System: Win10vm,VMWare ESXi 7.0
- Location: Hermon, Maine USA
- Contact:
Re: Wind Rose Shadow
OK, found it myself just as you posted your reply. Guess I should have assumed it was in windrose.js.
Here:
// Get the context of the gauge canvas on the HTML page
if ($('#canvas_rose').length) {
radarCanvas = document.getElementById('canvas_rose');
_ctxRadarGauge = radarCanvas.getContext('2d');
// resize canvas on main page
radarCanvas.width = _gaugeSize;
radarCanvas.height = _gaugeSize;
// add a shadow to the gauge
if (gauges.config.showGaugeShadow) {
$('#canvas_rose').css('box-shadow', '#888 ' + offset + 'px ' + offset + 'px ' + offset + 'px');
$('#canvas_rose').css('border-radius', Math.floor(size / 2) + 'px');
So, if we change the '#888' value to some other RGB value, like '#111' it changes the color of the shadow.
Nice. Thanks again.
--K
Here:
// Get the context of the gauge canvas on the HTML page
if ($('#canvas_rose').length) {
radarCanvas = document.getElementById('canvas_rose');
_ctxRadarGauge = radarCanvas.getContext('2d');
// resize canvas on main page
radarCanvas.width = _gaugeSize;
radarCanvas.height = _gaugeSize;
// add a shadow to the gauge
if (gauges.config.showGaugeShadow) {
$('#canvas_rose').css('box-shadow', '#888 ' + offset + 'px ' + offset + 'px ' + offset + 'px');
$('#canvas_rose').css('border-radius', Math.floor(size / 2) + 'px');
So, if we change the '#888' value to some other RGB value, like '#111' it changes the color of the shadow.
Nice. Thanks again.
--K
Blitzortung Station 1809
- mcrossley
- Posts: 14384
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Wind Rose Shadow
Yes, though of course you can change it to a six character hex string instead of the shorthand three character I have used, or even a full rgba(r,g,b,a) string.