-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 26 May 2025 22:21:08 -0700 (PDT) gjr80 <gjroder...@gmail.com> wrote:
<snip> > The usual process is to make any ‘look and feel’ changes to > gauges.js and on a WeeWX restart gauges.js is uploaded to your web > server and the changes take effect. <snip> > To me the real solution is to have the SteelSeries weather gauges > author include support for ‘look and feel’ settings in a separate > file. I think you're right! ... and there ARE A LOT of settings! + https://nicolas-van.github.io/steelseries/ Click "Parameters" under <steelseries-radial>, where you can tweak things and see the results in real time. ... or perhaps see: + https://www.wilmslowastro.com/steelseries/demoRadial.html <snip> > Note that some of the ‘looking feel’ config settings used in > gauges.js rely on variables in the underlying SteelSeries gauges > code, eg line 102: > lcdColour : steelseries.LcdColor.STANDARD <snip> Yeah, those things are structures, not just integer enumerators, which is pretty disturbing. Still, it should be doable to sus out the supported values by examining the non-minified SteelSeries source code. This may be that source code: + https://cdn.jsdelivr.net/npm/steelseries@2.0.7/dist/steelseries.bundled.js What we have here are constant structures that go by terse names (BEIGE, BLUE, ORANGE, ... STANDARD) that can be assigned to parameters with terse names (LcdColor). Clearly Users don't get to play with combinations unless they're willing to wallow in the messy details. To repeat previous posts, the designer did really nice work with rendition. It looks like the code has a lot of if's, and's, and but's to step around obvious conflicts between choices of values for parameters. My impression is that it should be possible to confine, to shape, and to channel User choice and expectations by providing cascading themes in skin.conf. (Necessarily terse) theme names would be provided to duplicate all the settings of all the parameters. Also, there would be theme names for more or less comprehensive combinations of detailed themes, such as reverse-color schemes with dark dial faces. Finally there would be global themes for arbitrary effects, such as steampunk. See, for example, these real-life historical steam gauges at the Cincinnati Water Works: + https://www.flickr.com/photos/33523379@N03/12879445113/in/album-72157641751207373/ One could specify a global effect and then override parts of it with more specific themes, such as pointer type and color. One could manage cascading themes in the *configobj* skin.conf file and mask global settings with more specific ones in a python script to be included in a cheetah generator *.tmpl file, and one could perhaps write a *.json parameter file for gauges.js from that. It's hard to set up, but dead easy for Users to use. The more global themes would, of course, override the background and foreground colors for the index.html page itself, which would require a mod to index.html.tmpl, too. Obviously these are just ramblings so far. You are correct, though. I don't see any way to achieve this without modifying scripts/gauges.js, which is obliterated with normal upgrades. - -- .. Be Seeing You, .. Chuck Rhode, Sheboygan, WI, USA .. Weather: https://LacusVeris.com/Wx .. 59° — Wind ENE at 9 mph. Sky overcast. -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQT+MY/5I/LMPSswTbVg2/xipKOWUgUCaDdIFwAKCRBg2/xipKOW Ugy1AJ46yuv3N69tTAtbeFGc9a6OHrfuwwCbBkUPSd00pnmmDMxtwi5uvLDLumY= =zFzf -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/weewx-user/20250528122959.63bc11af%40BigTimber.LacusVeris.com.