Skip to content

Playlist: can not set the duration to under 1 second #3359

Closed

Description

@KlausHans

What happened?

Based on #346 (comment) i tried to set a duration for a playlist entry to 0.1 s. But the minimum duration i can set in the gui is 1 s. If i change to json view and set "dur":[1] (0.1 s) the value doesn't get saved. Instead the default value of 100 (10 s) is saved.
Tested Firefox and Chromium.

To Reproduce Bug

  • create preset
  • add the preset in a playlist
  • set the duration of the added preset to <1 s (e.g. 0.1 s)
  • click save

Some screenshots of my setup:
Preset:
grafik

Playlist with fresh input of "dur":[1]:
grafik
after clicking save and open the playlist again;
grafik

Expected Behavior

I can set a duration lower than 1 second.

Install Method

Binary from WLED.me

What version of WLED?

0.14.0-b4

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. blazoncek commented on Sep 6, 2023

    @blazoncek
    Contributor

    Minimum duration value is 0.2s. This is a design choice.
    Tested on multiple units.

  2. KlausHans commented on Sep 6, 2023

    @KlausHans
    Author

    0.2 works indeed. Thank you for clarifying. This info could be added to the documentation.

  3. added
    documentation
    on Sep 6, 2023
  4. softhack007 commented on Sep 6, 2023

    @softhack007
    Member

    @blazoncek not sure if this was about a value entered in a field in web UI, or just direct json in presets?
    If it's about web UI, maybe we could add a "min" to the input field?

  5. KlausHans commented on Sep 6, 2023

    @KlausHans
    Author

    It was both. A min constraint on the input in the Ui is a good idea.

  6. blazoncek commented on Sep 6, 2023

    @blazoncek
    Contributor

    @blazoncek not sure if this was about a value entered in a field in web UI, or just direct json in presets? If it's about web UI, maybe we could add a "min" to the input field?

    UI already has the "min" property and a "step" property (min="0.2" step="0.1"). This is converted to 1/10ths of a second and submitted in JSON.

  7. KlausHans commented on Sep 6, 2023

    @KlausHans
    Author

    Ok but it doesn't show any hint or error if i put 0.1 in.

  8. blazoncek commented on Sep 6, 2023

    @blazoncek
    Contributor

    Ok but it doesn't show any hint or error if i put 0.1 in.

    True, I noticed that. There is a validation, but does not work as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions