Announcement

Collapse
No announcement yet.

Send a variable value into a simple line function hs.GetURL

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Send a variable value into a simple line function hs.GetURL

    hi,

    What I want to send is :


    This work

    nhs.GetURL("IPADRESS","?message=Anything&intensity=10&speed= 40&static=0",TRUE,port)

    but not this

    nhs.GetURL("IPADRESS","?message=$$DVR:9064&intensity=10&spee d=40&static=0",TRUE,port)


    Is there a way to make this work without creating a script to parse device value into this one line?

  • #2
    Use:


    Code:
    hs.GetURL("IPADRESS","?message=" & hs.devicevalue(9064) &"&intensity=10&spee d=40&static=0",TRUE,port)
    As you found out, you can't use replacement variables within script statements, so use the equivalent scripting call instead.
    HS 3.0.0.532: 1963 Devices 1141 Events
    Z-Wave 3.0.1.261: 122 Nodes on one Z-Net

    Comment


    • #3
      Originally posted by sparkman View Post
      Use:


      Code:
      hs.GetURL("IPADRESS","?message=" & hs.devicevalue(9064) &"&intensity=10&spee d=40&static=0",TRUE,port)
      As you found out, you can't use replacement variables within script statements, so use the equivalent scripting call instead.
      that work 100% thanks a lot !!




      Comment

      Working...
      X