Jump to content

Relativity1

Members
  • Posts

    4
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Relativity1

  1. Hi LV Gurus,

    The Parse State Queue Arguments output is an awesome feature I have been using to update the status indicator. Is there a way for this feature to pass through escaped characters (e.g. \n ) so I can properly format the status "LCD" indicator. Currently when I send "Status >> Blah...blah... \n Blah..Blah" the Status LCD literally will display "Blah...blah... \n Blah..Blah" with the escape character printed and no new line. Thanks Guys!

    image.png.2a56e60043462db0bf79ee31ec47aa46.png

  2. Hello LV Gurus,

    I have used JSM since release 1.0 (circa LV 2011). I understand the sub-diagram label feature was not yet implemented. Is there a reason why the JSM 2018 still not using sub-diagram labels (like below) since that has been standard in LV for many many years. Thanks guys!

    Sub-Diagram Labels enabled (lots of manual editing just to clean up those comments)

    image.thumb.png.be6851bd2e91b829bbdf8bd2a18b79e2.png

    Sub-Diagram Labels not enabled (current 2018 version):

    image.png.664dd3bc7483030b25be711e53c828d2.png

    • Upvote 1
  3. Hello LV Gurus,

    I am creating a simple GUI to control a web (specifically RESTful web server) based DLI Web Power Switch Pro

    I have three problems:

    1. What is the "Base URL" Is it just the IP + port (e.g. http://192.168.0.100:80) or the whole URI including the path to the web server (e.g. http://192.168.0.100/restapi/relay/outlets/0/state/)
    2. Where and how do I insert the cross-site forgery ignore in the header (e.g. X-CSRF:x) with your REST API? The Default Header list does not include X-CSRF.
    3. Do you support Basic and/or Digest authentication? I get "Unauthorized" error messages using your PUT (or GET) methods returned in the Status String.

    REST_Init.JPG.591fdbb9010a45c342461a74b36f419e.JPG

    I then proceeded to create a version of this GUI using cURL (via the System Exec node) to enable switch outlet 1 using "digest" authentication and it works:

    curl --digest -u admin:1234 -X PUT -H "X-CSRF: x" --data "value=true" "http://192.168.0.100/restapi/relay/outlets/0/state/"

    FYI: This is DLI guideline for using RESTful HTTP on their power switches

    WPS_GUI_REST.JPG.cc3407f9cf9d6ac06159d9962a6d7f43.JPG

    Thanks in advance guys. You do wonders for us LabVIEW cogs! ;)

    Relativity1

    • Like 1
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.