Skip to content

Adjustable NTP polling interval #3285

Closed

Description

@rodhammond

Sorry if I missed a config but assume NTP is used to set the internal HW time IRQ. I've noticed my animations briefly pause/freeze when NTP is enabled (found tip to disable NTP from QuinLED). Is it possible to allow the user provides a recommended NTP background polling interval in the form of hh:mm? I assume, after device boots, a fixed number of NTP requests will set time, then the user's hh:mm interval would kink in to maintain time. This would prevent the need to disable NTP to prevent animations from freezing/pausing. Please let me know if there is a different solution. Thanks

Activity

  1. added this to the 0.15.0 milestone on Jul 11, 2023
  2. Aircoookie commented on Jul 11, 2023

    @Aircoookie
    Member

    Indeed the NTP interval (once the time is successfully obtained once) is hard-coded to 11 hours and 40 minutes. I don't see how having this interval user-configurable would prevent the brief freezes. Perhaps it would be more useful to have NTP poll only when the LEDs are off to prevent freezes, unless the LEDs are on for an extended amount of time (> 24 hrs ?). As I would assume most setups not to be turned on 24/7 this would eliminate random freezing due to NTP in most practical scenarios.

    On a related note, the retry interval if there is no network access or the NTP server is unreachable is quite aggressive, leading to frequent 7 second freezes if there is a connection problem. This would be a separate issue to address, with potential mitigations being longer retry intervals or even temporarily disabling NTP completely until the next reboot or change of relevant settings.

  3. rodhammond commented on Jul 11, 2023

    @rodhammond
    Author
  4. Aircoookie commented on Jul 28, 2023

    @Aircoookie
    Member

    You can also do any main UI interaction (e.g. power on/off) to set the time from your client device, so NTP is not even required.

  5. added a commit that references this issue on Aug 14, 2023
    d9e576c
  6. modified the milestones: 16.0.0 beta, 16.1 on Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions