iebb / Diwoom

A Windows Divoom Client (unofficial)
Apache License 2.0
20 stars 2 forks source link

How to use the HTTP server #4

Open Shuunen opened 9 months ago

Shuunen commented 9 months ago

Hi,

First thanks for your project, I'm glad to say I downloaded it and it worked right away 👍

My device is discovered and I am able to play with my Pixoo-Max with your app 😄

I started the HTTP server on the UI and now I'm wondering how to discuss with your app, I tried to use curl but none of these worked :

# Diwoom.exe log : nothing
curl -X POST --data "4501 00cc00 ff 00 01 000000" http://127.0.0.1:10119
curl -X POST -H "Content-Type: text/plain" --data "4501 00cc00 ff 00 01 000000" http://127.0.0.1:10119

# Diwoom.exe log : cmd could not be parsed
curl -X POST --data "4501 00cc00 ff 00 01 000000" http://127.0.0.1:10119/cmd
curl -X POST -H "Content-Type: text/plain" --data "4501 00cc00 ff 00 01 000000" http://127.0.0.1:10119/cmd 

# Diwoom.exe log : nothing
curl -X POST --data "4501 00cc00 ff 00 01 000000" http://127.0.0.1:10119/raw
curl -X POST -H "Content-Type: text/plain" --data "4501 00cc00 ff 00 01 000000" http://127.0.0.1:10119/raw

Here I try to send this Lightning command 4501 00cc00 ff 00 01 000000 according to the doc you linked :

In any case the HTTP server respond A 😢

Do you have suggestions ?

Thanks

Disconn commented 5 months ago

Hi, ive got the same problem as Shuunen. I only got an "A" when opening the API. Is there a specific parameter i must pass to get it working?