Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playlist doesn't stop on ir remote FX command #4349

Closed
1 task done
Niorix opened this issue Dec 5, 2024 · 6 comments
Closed
1 task done

Playlist doesn't stop on ir remote FX command #4349

Niorix opened this issue Dec 5, 2024 · 6 comments
Labels
workaround The issue contains a workaround

Comments

@Niorix
Copy link

Niorix commented Dec 5, 2024

What happened?

I have 38 keys IR with default config and playlist.
If the playlist has begun, it does not stop when another effect is called using the remote control.
I try Rainbow key as test, but Rainbow is canceled by the next effect of the playlist after some timeout.

To Reproduce Bug

create at least 1 preset and one playlist.
Select playlist as current effect.
Press ir remote button with next config:
"0xXXXXXX": {
"label": "Fire",
"pos": "6x4",
"cmnt": "Fire 2012",
"cmd": "FX=66&FP=35"
}

Expected Behavior

IR remote button stopped playlist and set selected effect.

Install Method

Binary from WLED.me

What version of WLED?

WLED 0.15.0-rc1 (build 2411250)

Which microcontroller/board are you seeing the problem on?

ESP8266, ESP32

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Niorix Niorix added the bug label Dec 5, 2024
@blazoncek
Copy link
Collaborator

Please use JSON API and the playlist will be unloaded.

The HTTP API behaviour is such by design.

  // set effect parameters
  if (updateVal(req.c_str(), "FX=", &effectIn, 0, strip.getModeCount()-1)) {
    if (request != nullptr) unloadPlaylist(); // unload playlist if changing FX using web request
    fxModeChanged = true;
  }

@blazoncek blazoncek added workaround The issue contains a workaround and removed bug labels Dec 7, 2024
@Niorix
Copy link
Author

Niorix commented Dec 9, 2024

Thanks for reply!

  1. Using HTTP API (curl "http://xxx.xxx.xxx.xxx/win&FX=66&FP=35") playlist will be unloaded in WLED 0.15.0-rc1 (build 2411250).
  2. Using HTTP API in ir_remote.json ("cmd": "FX=66&FP=35") playlist will not be unloaded in WLED 0.15.0-rc1 (build 2411250).
  3. Using preset in ir_remote.json ("cmd": "!presetFallback","PL": 1) playlist will be unloaded in WLED 0.15.0-rc1 (build 2411250).
  4. Effect call in ir_remote.json ("cmd": "!presetFallback","FX": 66) not work, and call preset whith id=1 if exist.
    How i may unload playlist using ir_remote.json without call any preset, such as third example?

@blazoncek
Copy link
Collaborator

Use JSON API.

@Niorix
Copy link
Author

Niorix commented Dec 12, 2024

I understand you. I used {"seg": {"fx": 66}}. It's worked.

@Niorix Niorix closed this as completed Dec 12, 2024
@blazoncek
Copy link
Collaborator

@willmmiles you may need to revisit HTTP API rewrite to see if original behaviour still exists.

@willmmiles
Copy link
Collaborator

We didn't merge the rewrite , only the null pointer check to fix the crash case. There were still a number of other issues with it I haven't had a chance to address yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
workaround The issue contains a workaround
Projects
None yet
Development

No branches or pull requests

3 participants