(17.04.2018, 13:04)admin Wrote: Can you explain what kind of task do you have? Another solution is to create html select element via Custom JavaScript.
That's my script:
------
ok I can get the playlist name to play with your hints, but... I get the playlists every time with:
playlists = http://192.168.0.107/api/v1/listplaylists
which an array. So i have to update time by time the value on '32/1/19' with the elements of the array.
value = event.getvalue()
address = event.dst
if value then
playlist = grp.getvalue('32/1/19')
require('socket.http')
socket.http.TIMEOUT = 5
socket.http.request('http://192.168.0.107/api/v1/commands/?cmd=playplaylist&name='..playlist)
os.sleep(2)
grp.update(address, 0)
end