jmorris644
Active Member
I have been using iRule to control my theater lighting and just recently they implemented slider controls. I am able to query HaikuHelper to get the level of a light /api/controller.unitWithNumber(43).level and get the level. But iRule cannot adequately deal with just the number bring returned. So I would like to do 2 things:
1. Surround the .level response with some text
2. Possibly tokenize all of the light levels that are non-zero in a response.
I am guessing that there is a way to expose a function to http just like the api itself but I cannot ascertain how to do it with the docs.
Any help would be greatly appreciated.
Thanks
Joe
1. Surround the .level response with some text
2. Possibly tokenize all of the light levels that are non-zero in a response.
I am guessing that there is a way to expose a function to http just like the api itself but I cannot ascertain how to do it with the docs.
Any help would be greatly appreciated.
Thanks
Joe