suborb / philips_android_tv

Tools to control Philips 2016 Android TVs
GNU General Public License v2.0
121 stars 61 forks source link

Cant send commands #42

Closed RonDeppe closed 1 year ago

RonDeppe commented 1 year ago

Hello, Sorry for asking my question here but I don't know where else to ask. How do I send any command to the tv? When I use "http://{My-IP}:1925/system" I get a response, but when I try to run any of the other commands they don't work. I hoped this would help me, but I don't know how to use the username and password to send working commands. Could someone please give me an example? Thank you.

For extra information I have a 32PFS6401/12 with android tv.

ThreeCO commented 1 year ago

Did you do the pairing according to the readme? In that step you will receive user and password

RonDeppe commented 1 year ago

Yes, I did receive my username and password but I don't understand how I could use those to for example turn on the tv. Thanks for the quick reply.

ThreeCO commented 1 year ago

You are welcome 😀 In general you can use GET and POST to READ and WRITE certain information.

If you want to change settings you will need to POST the necessary information json encoded to your tv.

Just have a look at the python script in this repository. Actually it describes quite literally what it does 😅

btw. turning the TV on is one of the more complex tasks since mostly WiFi is disabled when it is in standby. So you would first try to wake it up by sending WOL packets. I never managed that though.

It's way more easy to select a different channel or change volume.