Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
14.46k stars 3.1k forks source link

Brightness change per json api results in unresponsiveness #4055

Open tj0vtj0v opened 1 month ago

tj0vtj0v commented 1 month ago

What happened?

I want to change the brightness per json api requests.post(http://192.168.178.57/json/, {"bri": 1}) which isn't working and even leading to no reaction when using the slider in the Web-UI.

To Reproduce Bug

requests.post('http://IP-Adress/json/', '{"bri": 1}') in Python

Expected Behavior

change brightness to 1 (gamma-correction is off)

Install Method

Binary from WLED.me

What version of WLED?

0.14.2 - 2403170

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

blazoncek commented 1 month ago

When reporting errors, use latest available version. Please.

dosipod commented 1 month ago

@tj0vtj0v

This is a Python script i used to test with and it worked on older builds , i used the same now on the latest 0.15.0-b4 and it worked as expected . Please use that as you could be doing something wrong in your test ( Syntax in Python to use json is a bit different) py_script_01.txt