Read the statement by Michael Teeuw here.
My display so far...
-
@pjkoeleman Let me look into this. Likely overlooked in the code.
-
@j.e.f.f
Thanks in advance -
@pjkoeleman Try now. It’s a bit hacky… basically if your time format has a capital H in it, then it formats it in 24 hour time
HH:mm
, otherwise it will use 12 hour timeh:mm a
.I should probably make this a separate time format config parameter, but this should do for now.
-
@j.e.f.f
Thanks, is working now like it should be doing.So the module is not using ‘timeFormat’ as set in the main part of config.js
I thought that it would look and use the settings of ‘language’ and ‘timeFormat’ in the global settings of config.js -
@pjkoeleman not directly, no, as it specifically comes down to how I have it configured. My time format for the forecast table is “h a” (e.g.: “9 pm”). This time format has no minutes, which is fine for the hourly forecast, but doesn’t work for sunrise/sunset. So when rendering the sunrise/sunset time it looks for the presence of a capital “H” in the time format config. If present, sunrise sunset is rendered as “HH:mm” (i.e.: 24 hour time format). Otherwise it is rendered as “h:mm a” (12 hour time format).
The right thing to do is separate sunrise/sunset time format out to its own configuration parameter.
-
@j.e.f.f
Thanks for clearing us up. -
would it be possible to have a copy of your program have been trying for a while now to come up with something like this, and does it work with touch???
-
@brendyburgers much of the above have now become modules. Which one were you interested in?
Sorry to say but none of my modules are touch enabled.
-
Hi Jeff, I just put your CSS code in my custom.css.
Unforunately for one Module the line below the header stays the „old“ grey color and won‘t change to your great blue.
What did I do wrong?
Best regards,
René -
@rrrene said in My display so far...:
What did I do wrong?
Most likely nothing :)
If the issue is with just one module, then likely my custom CSS is being overridden with that module’s CSS. You need to inspect the markup to see what styles are being applied to that particular module and then write more specific CSS to override that.
You can access the inspector by starting MM in dev mode
npm start dev
.