Ankündigung

Einklappen
Keine Ankündigung bisher.

Philips Android TV über IP (HS) steuern

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    #46
    nein, im browser geht die combi ja.

    Kommentar


      #47
      Was schickt denn der Browser? Das kann man im Developer Mode sehen!!!!

      Kommentar


        #48
        Hmm. I think your error is that you try to use basic auth, while the TV needs Digest auth. I use the following curl-commando:

        curl -X POST --digest --insecure -u usernameassword https://192.168.xxx.yyy:1926/6/ambilight/power -d '{power:Off}' --trace-ascii -

        to find the correct headers. Works like a charm for me, Expert 4.8.1.

        Have not even thought about this as a possibility before I saw your post, so thank you

        Kommentar


          #49
          The problem will be Digest. Mostly MD5 is needed... I don't think the HS can do that? Or is there an LBS?

          Kommentar


            #50
            You're right, it seems I was too fast concluding about this, I was not aware that the "nonce" parameter changes. I have a plan - will try to look more into this tonight

            Kommentar


              #51
              Hi again!

              Ok, now I've made my first LBS - and it's actually working fine! I will clean it up a bit and post it here in a few days. Have only tested with 4.8.1 - not sure if it will work with <4.7 because of SSL... Don't know how to test...

              Kommentar


                #52
                Hi,
                for <4.7 this LBS can help?

                Kommentar


                  #53
                  Okey, so I've cleaned it up a bit.

                  https://www.dropbox.com/s/qqy1l25vkj...oidTV.hsl?dl=0

                  It has six inputs. Username and password should be self explanatory. URL is protocol, hostname/ip and port. For instance https://192.168.1.23:1926. Path is the rest of the complete address, like /6/ambilight/power. Key and value are the json key and value. Like "power" for key and "On" as value.

                  This is my first LBS, and I have probably not done everything according to best practice, but I'm happy to get suggestions for improvements. If I find the time (and skills!) I will try and implement them... Very open for other ways to solve this as well, not sure this is the best way...
                  Zuletzt geändert von stianj; 27.06.2019, 21:33.

                  Kommentar


                    #54
                    Oh, and the output is the http result code - should be 200 if everything is ok. 401 is wrong credentials, and 404 is wrong url. Can't see how you'd get any other code than those three. And again, only tested with Expert 4.8 - I don't know if the python ssl library exists in <4.7 - but maybe it does?

                    Kommentar


                      #55
                      Hm, so recht weiß ich jetzt nicht wie ich den LBS benutzen soll?
                      Philips TV plugin.jpg

                      Kommentar


                        #56
                        einen der beiden Bausteien weg werfen ...
                        Und dann ein KO mit E6 verbinden ... das KO muss dann "On" oder "Off" beinhalten.

                        Kommentar


                          #57
                          Danke, den Ausgang (A1) nirgendwo drauf?

                          Kommentar


                            #58
                            Doch ;-) sonst geht es nicht ...

                            Kommentar


                              #59
                              Dachte ich mir, worauf denn?

                              Kommentar


                                #60
                                Das ist dir überlassen .... leg dir ein Dummy iKO an wenn du die Rückgabe nicht auswerten willst ...

                                Kommentar

                                Lädt...
                                X