Loopback to webservice

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • J V
    LoxBus Spammer
    • 28.08.2015
    • 367

    #1

    Loopback to webservice

    Hello,

    I'm using a Virtual Input to have an up/down input-widget in the user-interface, but need to populate the value. I'm trying to use the webservices, which works from a browser:

    Code:
    http://user@password:miniserverIP/dev/sps/io/<inputname>/<value>
    But I cannot seem to get this to work from a virtual output on the same miniserver. I think I've tried everything: post, get, miniserver://, http://, name of the object, name of the input (VI2), ... nothing I can send from the miniserver seems to set the value, from elsewhere it works fine...

    Any thoughts?
  • romildo
    Lebende Foren Legende
    • 25.08.2015
    • 5144

    #2
    Hello,
    Did you try
    Preferences (Virtual Output)
    Address:
    Code:
    http://user@password:miniserverIP
    Preferences (Virtual Output Command)
    Command for On:
    Code:
    /dev/sps/io/<inputname>/<value>
    HTTP methode for ON: GET
    Use as digital output: not selected
    lg Romildo

    Kommentar

    • J V
      LoxBus Spammer
      • 28.08.2015
      • 367

      #3
      That is what I was doing... I tried again but it does not work...
      In LiveView I see that the output has the value, but the input never gets it...

      Kommentar

      • J V
        LoxBus Spammer
        • 28.08.2015
        • 367

        #4
        It took me 2 hours yesterday, and half an hour today to suddenly realize that I have http://username@password:miniserverIP
        Somehow I kept looking over this error...

        Thanks you for your reply, it made me triple check everything.

        Kommentar

        • romildo
          Lebende Foren Legende
          • 25.08.2015
          • 5144

          #5
          Yes, this should work:
          Code:
          [URL="http://username@password:miniserverIP"]http://username:password@miniserverIP[/URL]
          and that doesn't work:
          Code:
          [URL="http://username@password:miniserverIP"]http://username@assword:miniserverIP[/URL]
          lg Romildo

          Kommentar

          • J V
            LoxBus Spammer
            • 28.08.2015
            • 367

            #6
            Yep... Weird how a person can keep reading over the same stupid time and time again, and it somehow does not register...
            Your post told me that I was doing it conceptually right, so it had to be something stupid... Thanks

            Kommentar


            • romildo
              romildo kommentierte
              Kommentar bearbeiten
              you're welcome
          Lädt...