firmware icon indicating copy to clipboard operation
firmware copied to clipboard

Remove Clock Feature

Open P5YB3RN4UT opened this issue 3 months ago • 9 comments

I would've suggested fixing it so that it actually tells the time, but since no-one has raised the issue that every aspect of this clock is completely knackered, it's probably best just to get rid of it completely since clearly no-one ever looks at it (otherwise this issue would've been raised before). Not only does it not keep the time after a soft reboot, shutdown/restart, or deep sleep, but the NTP option just resets it to something completely random. At first I thought it was a Cardputer ADV thing and ignored it, but my new LilyGo T-Embed CC1101 Plus does the same thing. Don't get me wrong, I think Bruce is absolutely fantastic and a work of genius, but the clock is a complete disaster. Even a stopped analogue clock is right twice a day, but the Bruce clock is never right. If it's an internal developer joke thing, then leave it there for the lulz, otherwise just get rid of it. We all have other means of telling the time these days anyway.

P5YB3RN4UT avatar Aug 07 '26 08:08 P5YB3RN4UT

Yeah the devices you own don't have an rtc module, but you could buy one for your cardputer, the module is called HYM8563 and it's connected via the grove connector on the side. Besides, there's neither an internal solution, nor a software fix cause the devices just lack real time clock modules

Edit: I suggest not to remove it, others might need it

pinchepasta avatar Aug 07 '26 12:08 pinchepasta

As @pinchepasta said, devices with RTC the clock works fine.

If you do not have an RTC capable device then NTP sync is what you need to use which syncs as soon as the WiFi connects. The reason why it shows a 'random' time for you is because you have most probably not set your timezone.

This PR shows the timezone selection menu: https://github.com/BruceDevices/firmware/pull/2052

emericklaw avatar Aug 07 '26 15:08 emericklaw

Hmm, I wonder if the 'random' nature of your clock is related to this PR: https://github.com/BruceDevices/firmware/pull/2591 Which saves the date/time to the NVS storage. I am not sure that is is a great idea to do this... I will try it out on some of my devices.

emericklaw avatar Aug 07 '26 15:08 emericklaw

As @pinchepasta said, devices with RTC the clock works fine.

If you do not have an RTC capable device then NTP sync is what you need to use which syncs as soon as the WiFi connects. The reason why it shows a 'random' time for you is because you have most probably not set your timezone.

This PR shows the timezone selection menu: #2052

I do set my timezone, it still comes up with the incorrect time.

P5YB3RN4UT avatar Aug 07 '26 15:08 P5YB3RN4UT

This issue has been automatically marked as stale due to inactivity. It will be closed in 5 days unless there is further activity.

github-actions[bot] avatar Aug 18 '26 03:08 github-actions[bot]

What about adding a toggle in the GPS/Settings menu called something like "Use GPS RTC for System Time" for people who use GPS modules frequently? If enabled, the firmware could parse the initial NMEA time data on boot. To prevent the "dead battery" issue, the firmware could ignore the GPS time if the parsed year is clearly invalid (e.g., < 2020 ). Once a real satellite fix is achieved, it would overwrite the time with the highly accurate satellite atomic time.

P5YB3RN4UT avatar Aug 19 '26 07:08 P5YB3RN4UT

I plan to look at this next week.

emericklaw avatar Aug 19 '26 13:08 emericklaw

This issue has been automatically marked as stale due to inactivity. It will be closed in 5 days unless there is further activity.

github-actions[bot] avatar Aug 31 '26 03:08 github-actions[bot]

Closing due to prolonged inactivity. If this is still relevant, please comment or open a new issue with updated details.

github-actions[bot] avatar Sep 06 '26 03:09 github-actions[bot]