Page 1 of 1

I am stuck - Multiselector and LUA - parsing variable in URL

Posted: Wednesday 30 August 2017 11:04
by DutchHans
Hello all,
I am trying to add a multiselector with favorite radiochannels.
I can switch an activity on with my Harmony: Amplifier and Satreceiver switch on.

I can select a channel with the API from the sat-receiver

With the multiselector I would like to call the script switch on the harmony activity and than the selected channel.
I think I need to parse a variable (radiochannel) to the script and extract it there to create the API to switch the satreceiver.

Has anyonyone an idea how to achieve this?
Regards, Hans

Re: I am stuck - Multiselector and LUA - parsing variable in URL

Posted: Thursday 31 August 2017 19:57
by zicht
Hi

Just create the selector switch and do the actions on Lua (leave action empty on the selector switch gui)

Code: Select all

yourvar="radio1blabla"
if devicechanged['selectorswitch']=="Radio 1" then openurl("your url"..yourvar) end
or something like the above (you get the idea)
I have no harmony, but i do the same on enigma.

Re: I am stuck - Multiselector and LUA - parsing variable in URL

Posted: Saturday 23 September 2017 22:33
by D3LTA
i can help you with this one, give me some more info like url and api details