Asking If possible/How to use Global Variable in "Send GET" string for multiple rules

Actual line:
Send GET to: http://blahblah:blahblahpw@192.168.1.100/cam-cgi/virtualinput/activate.cgi?schemaversion=1&port=20

Desired line w/ variable "camIP":
Send GET to: http://blahblah:blahblahpw@camIP/cam-cgi/virtualinput/activate.cgi?schemaversion=1&port=20

I know how to set a fixed IP assignment in the router, I'm just wondering how/if a Global Variable can be inserted in a HTTP string like this.

Feel free to tell me to "go read this" cause admittedly I haven't searched too hard to find where this might be discussed.

Thanks in advance.

Have you tried setting a rule variable, and to set that rule variable to:
Http://blahblah:blahblahpw@%hubVariable%/cam-cgi/virtualput/activate.CGI…

And then using the rule variable as your get?

1 Like

%testIP% is a local variable. %testIP2% is a hub variable.

1 Like

Thanks guys,
...that leads me in the right direction with less fear that I was going to be barking up the wrong tree.

@FriedCheese2006 something like that is just what I was hoping for. I have yet to mess with global variables so this guidance is much appreciated.

EDIT:
Bada Bing Bada Boom,
that was an Easy Button modification making multiple rules more invincible!
For those reading later not knowing where to go to achieve this end make your way in HE to:

SETTINGS / HUB GLOBAL VALUES / HUB VARIABLES

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.