News:

HOT TIP! Exploring the commands packaged in VC's standard configurations is a great way to learn how to build your own. You can also clone a command as a starting point: just right-click and select "Clone" (or type Alt-C).

Main Menu

Issuing commands from irule

Started by JoshK, March 27, 2014, 09:00:13 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JoshK

have got it working now that I dropped the / before api :)

although I only seem to be able to send short messages, with no spaces i.e "api/vc.tellvox&&heat" works but "api/vc.tellvox&&turn on heating" doesn't...
i'm not sure how i should be formatting them in irule.
any chance you could try getting a command like "api/vc.tellvox&&turn on lounge heating" working and show me what syntax you use?

noticed that it sends the request 3 times as well. This also seems to happen if you use safari on ios to access the url (i use this to send visitors links for opening visitor parking doors etc). would be great if this could be solved.

thanks for your help - the same question on the irule forum has been sitting idle for 4 days now ::)

jitterjames

I did mention this:

Quote from: jitterjames on September 09, 2014, 01:31:35 PM
You might also need to manually url encode things like spaces if iRule is not doing it for you.

try to google search for: url encode spaces

you will find the solution in 2 seconds.

As for the repeats, I'm working on it.  Should have a new version of the TCP plugin out soon, with a better simple-web-server.

JoshK

thankyou! finally all working nicely now through dns.

am using an if statement at the begining of my commands followed by seteventtimer statement at the end of the commands to act as a timer to only allow them to run once every 3 seconds. it's a temporary work around for the mulitple requests issue until it's updated.

Thanks again!

JoshK

thanks for the update to the tcp client. issue of multiple actions\events is fixed :)