supersaiyanmode / PyWebOSTV

Python API for controlling LG TVs (Web OS)
MIT License
261 stars 50 forks source link

[Question] How do the cursor socket messages look? #94

Closed Sucharek233 closed 10 months ago

Sucharek233 commented 10 months ago

I'm trying to remake this in c++ with a ui (qt) and everything so far except the the cursor socket. I can connect to the socket, but just can't figure out what to send. I tried debugging your code and the output was this (converted to json): {type:"button", "name":"INFO"}. I tried to send that exact thing to the socket, but nothing happened. I also tried putting it in payload{...} or putting in the client-key, but nothing just worked. Could you tell me what exactly you're sending to the cursor socket? Thanks

supersaiyanmode commented 10 months ago

Does this help: https://github.com/supersaiyanmode/PyWebOSTV/discussions/54?

Sucharek233 commented 10 months ago

Yes, it works now. I thought the message was in JSON format, but it wasn't. I also didn't get it to work right away, but fixed it by adding 2 newlines at the end (for example type:button\nname:INFO\n\n). Thank you for helping.