Skip to content

How to use the HTTP server #4

@Shuunen

Description

@Shuunen

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 :

  • 4501 : Fixed String
  • 00cc00 : Color encoded in Hexadecimal (green here)
  • ff : Brightness (0 - 100) in Hexadecimal
  • 00 : Type of Lightning (Plain color here)
  • 01 : Power should usually be 01
  • 000000 : Fixed String

In any case the HTTP server respond A 😢

Do you have suggestions ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions