Ankündigung

Einklappen
Keine Ankündigung bisher.

Radiowecker

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

    Hi Raymond,

    here some examples from my HS-"Web-Seiten/IP-Geräten" menu (field "URL"):

    Brightness:
    /admin/cgi-bin/admin.cgi?f=display_brightness_active&brightness=7 &apply=yes

    Favorites:
    /admin/cgi-bin/admin.cgi?f=favorites&n=../favorites.html&a=p&i=6


    Volume:
    /admin/cgi-bin/admin.cgi?f=volume_set&v=15&n=../now_playing_frame.html

    Text: (the § works fine when sent by the HS)
    /admin/cgi-bin/ipc_send?show_list Hello World§Line 2§Line 3

    Display Time: (here you have to send 'Datenblöcke')
    see Pic.
    Angehängte Dateien
    Gruß, Rainer

    Kommentar


      Zitat von jonofe Beitrag anzeigen
      some commands (brightness and show_clock) are issued by a HTTP_POST, which means the data is sent as it is done when you send an HTML form and not like calling an URL as you try.
      Point taken !

      Zitat von jonofe Beitrag anzeigen
      you have to do the correct encoding of the URL, which means instead of an § you have to specify %A7.
      OK. I've blindly used the examples from the thread, not really knowing what I'm doing (heck, as usual ). Normally, I RTFM, but here ? no FM ;-)
      Nevertheless, it doesn't work, probably for the reason you mentionned.


      Zitat von jonofe Beitrag anzeigen
      favorites URL should be: (e.g. switching to favourite 6)
      http:/<IP>//admin/cgi-bin/admin.cgi?f=favorites&n=../favorites.html&a=p&i=6
      This one works fine, thanks

      Zitat von jonofe Beitrag anzeigen
      Text Display
      try the correct encoding of all special characters as mentioned above.
      No luck, let's forget it

      Zitat von jonofe Beitrag anzeigen
      Volume:
      Your URL is correct and for me it works up to v=20 which is the maximum volume.
      This one works fine, thanks

      Zitat von jonofe Beitrag anzeigen
      Set Brightness
      it will not work by calling an URL.
      Indeed, although I swear it was working with the previous FW.

      Zitat von jonofe Beitrag anzeigen
      But the HS is able to generate POST commands, therefore I think it will work with the HS.
      OK, the reason I'm testing with the Explorer is to avoid the 36 reboots of the HS

      Zitat von jonofe Beitrag anzeigen
      Hope, I could help you a little bit.
      You helped a lot, thank you a 1024 times

      Kommentar


        Hi Taxus,

        Thank you for the concrete examples
        Zitat von Taxus Beitrag anzeigen
        here some examples from my HS-"Web-Seiten/IP-Geräten" menu (field "URL"): .
        Are you making a difference between http get & posts ? or does one type fit them all in the HS ?

        Thank you

        Kommentar


          Hi Taxus,

          So far, I'm able to control the following with my HS: Volume, Favorits.

          Zitat von Taxus Beitrag anzeigen
          here some examples from my HS-"Web-Seiten/IP-Geräten" menu (field "URL"):

          Brightness:
          /admin/cgi-bin/admin.cgi?f=display_brightness_active&brightness=7 &apply=yes
          Brightness seems to be a problem, any hint ?
          I noticed some samples with apply=yes other with apply=Verwenden. It seems there is a language dependance here. According to the status, my MP is in french, so I tried apply=oui, but pfff, no luck.
          Can you confirm that the brightness is set from within the -"Web-Seiten/IP-Geräten" menu ?

          Thank you

          PS: in your sample, there seems to be a space between the "7" and "&apply". Is it so ?

          Kommentar


            Zitat von Warichet Beitrag anzeigen
            PS: in your sample, there seems to be a space between the &quot;7&quot; and &quot;&apply&quot;. Is it so ?
            Hi Warichet I can answer: no space in URL's
            Grüsse Bodo
            Fragen gehören ins Forum, und nicht in mein Postfach;
            EibPC-Fan; Wiregate-Fan; Timberwolf-Fan mit 30x 1-Wire Sensoren;

            Kommentar


              Hi,

              Anyone knows de correct syntax for supplying the credentials in the URL ?
              The
              does not work when typed in the command line of IE8. I thought I've been using this some time ago, and it was working.

              NB: When supplying the credentials in the "Web-Seiten/IP-Geräten" menu, it does work, of course.

              Thnak you

              Kommentar


                The new version of IE has blocked this kind of syntax.
                You can try another browser instead.
                --Marcus

                Kommentar


                  Hi,

                  I've read and understood Jonofe's arguments about http_get and http_post.
                  I've read and understood Taxus's samples.
                  I'm still confused
                  Under -"Web-Seiten/IP-Geräten", I can't see any place where I could specify the method either http_get or http_post.

                  There is like a contradiction, unless there is something to specify outside the scope of "Web-Seiten/IP-Geräten" ?

                  The 2 commands which I'm unable to execute are the brigthness and text display, exactly as mentionned by Jonofe.

                  Any hint about how to make them run on the HS, please ?

                  Kommentar


                    Zitat von Warichet Beitrag anzeigen
                    ... Under -"Web-Seiten/IP-Geräten", I can't see any place where I could specify the method either http_get or http_post.
                    Hi Warichet

                    If your "Message" is sent within the URL it is GET.

                    Example:
                    HTML-Code:
                    http://www.ip.com/script?v=100&r=200
                    Grüsse Bodo
                    Fragen gehören ins Forum, und nicht in mein Postfach;
                    EibPC-Fan; Wiregate-Fan; Timberwolf-Fan mit 30x 1-Wire Sensoren;

                    Kommentar


                      Zitat von Warichet Beitrag anzeigen
                      I've read and understood Jonofe's arguments about http_get and http_post.
                      I've read and understood Taxus's samples.
                      Well, no, I failed to look into the sample for the clock (I wasn't interested in the clock)
                      I guess the answer is there, it clearly mentions the HTTP_POST

                      Nevertheless, it brings yet some other questions
                      1) about Authorization, I guess it is: username space password in clear text ?, no special characters ?
                      Authorization: <Username> <Password>
                      2) about Length, how can I compute the length ? starting from where ?

                      Thank you

                      Kommentar


                        Zitat von Warichet Beitrag anzeigen
                        1) about Authorization, I guess it is: username space password in clear text ?, no special characters ?
                        Authorization: <Username> <Password>
                        Use a base64encode Baustein in GLE and encode
                        usernamE:Password to base64 and put it

                        Authorization: base64encodedUserPass
                        Nils

                        aktuelle Bausteine:
                        BusAufsicht - ServiceCheck - Pushover - HS-Insight

                        Kommentar


                          Hi Nils,

                          Zitat von NilsS Beitrag anzeigen
                          Use a base64encode Baustein in GLE and encode
                          usernamE:Password to base64 and put it
                          Authorization: base64encodedUserPass
                          Pfiou, completely missed this problematic.
                          Thank you very much for the tip.

                          About the length, did you notice it's written 21, I count 22 characters
                          If it was an index, I could assume it is starting from 0, but here ? shouldn't it be an absolute value for the length ?

                          Kommentar


                            Yes you are right it should Be 22
                            Nils

                            aktuelle Bausteine:
                            BusAufsicht - ServiceCheck - Pushover - HS-Insight

                            Kommentar


                              Zitat von NilsS Beitrag anzeigen
                              Yes you are right it should Be 22
                              Well, after some testing, it must be 21 (22 doesn't work)
                              It beats me!

                              I managed to get the clock display working .... after setting the MusicPal language to ... german (I'm unable to find the keywords for french).
                              The example from Taxus must be entered exactly as shown.

                              Still trying to change the brightness and display some text ........

                              Kommentar


                                Zitat von Warichet Beitrag anzeigen
                                I managed to get the clock display working .... after setting the MusicPal language to ... german (I'm unable to find the keywords for french).
                                in French it should be apply=Afficher+horloge


                                Concerning brightness you should try the template from taxus and change the POST URL and the last enty as follows. Please replace the "x" with the brightness you want to set.

                                brightness clock:
                                POST /admin/cgi-bin/admin.cgi?f=display_brightness_clock&n=../display_brightness_clock.html
                                brightness=x

                                bightness activity
                                POST /admin/cgi-bin/admin.cgi?f=display_brightness_active&n=../display_brightness_active.html
                                brightness=x

                                brightness sleep timer
                                POST /admin/cgi-bin/admin.cgi?f=display_brightness_sleep_timer&n=../display_brightness_sleep_timer.html
                                brightness=x

                                brightness standby mode
                                POST /admin/cgi-bin/admin.cgi?f=display_brightness_sleeping&n=../display_brightness_sleeping.html
                                brightness=x


                                hope it works ...

                                Kommentar

                                Lädt...
                                X