estruyf / unicorn-busy-server

Simple busy light server for Raspberry Pi Zero and Pimoroni Unicorn Hat
MIT License
62 stars 39 forks source link

api/switch isn't working #6

Closed ghctim closed 4 years ago

ghctim commented 4 years ago

I am sending the following Post data using postname and type JSON and getting

to http://ip:5000/api/switch

{ "red":0, "green":255, "blue":0, "brightness":1, // Optional "speed":1 // Optional } and i get an error 400

estruyf commented 4 years ago

Did you found the problem to your issue?

ghctim commented 4 years ago

Yes. It was a silly error

On Tue, Jun 2, 2020, 7:02 AM Elio Struyf notifications@github.com wrote:

Did you found the problem to your issue?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/estruyf/unicorn-busy-server/issues/6#issuecomment-637462257, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKGGONIXZLH6WBCKSY6GKLRUTL5HANCNFSM4NQIY2VA .

estruyf commented 4 years ago

Glad you found it!