Option to not show seconds on All Clear Clock #205
Replies: 3 comments 2 replies
|
Hi @highergroundstudio 👋 Thank you for the incredibly thorough writeup — the code snippets, the exact editor location, the language coverage, the non-breaking default, even the attached JS files. This is exactly the kind of contribution the project thrives on. 🎉 Yes, please open the PR! It is genuinely a pleasure for me to see more contributors join in — every merged PR makes the card better for everyone and helps distribute the maintenance load beyond a single-person project. You will be credited in the release notes and in A couple of tiny things you can do while opening the PR (all optional, I can also handle them post-merge):
If you follow the general Looking forward to it! 🙏 |
|
Hi @highergroundstudio 👋 Just a friendly ping — your PR #212 is ready to merge from a code standpoint (the seconds toggle looks great!), but the branch is a bit behind I left a detailed comment on the PR itself with the exact git commands to rebase your branch on the latest If rebasing feels risky I can also close the PR and re-apply your changes myself — you would still be credited as the author. Whatever works best for you! No urgency, just did not want it to fall off your radar. 🙏 |
|
🎉 Released in v1.3.9.9.6! Update via HACS and clear the browser cache. Credited to @highergroundstudio in the commit trailer, CHANGELOG, and release notes. Thanks again! 🙏 |

Uh oh!
There was an error while loading. Please reload this page.
Summary
Add an option to hide seconds on the All Clear clock widget.
The clock currently always shows seconds (
3:58:47 PM). For a dashboard clock, minutes are enough and seconds are just visual noise which my wife didn't like.Proposal
New card config option:
true(default)3:58:47 PM/15:58:47false3:58 PM/15:58Default stays on so existing dashboards are unchanged.
How the option was added
Card (
alert-ticker-card.js)_tickClock()always appended seconds. It now readsclear_clock_show_secondsand only includes:SSwhen that option is notfalse.Empty-state fallback was also changed from
"00:00:00"to"00:00".Works for
clock,weather_clock, andweather_forecast.Editor (
alert-ticker-card-editor.js)A Show seconds toggle was added in the All Clear section, directly under 12-hour format (AM/PM).
Labels were added for all existing editor languages (EN, IT, FR, DE, NL, VI, RU, DA, CS, PT, ES, TR).
Nothing else was changed (themes, alerts, weather, animations, snooze, etc.).
Happy to open a PR if this is wanted.
alert-ticker-card.js
alert-ticker-card-editor.js
All reactions