This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Combo box on visualization
#7
(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
Reply


Messages In This Thread
Combo box on visualization - by gdimaria - 17.04.2018, 09:53
RE: Combo box on visualization - by admin - 17.04.2018, 10:04
RE: Combo box on visualization - by gdimaria - 17.04.2018, 10:37
RE: Combo box on visualization - by Daniel - 17.04.2018, 11:18
RE: Combo box on visualization - by gdimaria - 17.04.2018, 13:02
RE: Combo box on visualization - by admin - 17.04.2018, 13:04
RE: Combo box on visualization - by gdimaria - 17.04.2018, 15:20
RE: Combo box on visualization - by admin - 18.04.2018, 08:35
RE: Combo box on visualization - by gdimaria - 20.04.2018, 08:33
RE: Combo box on visualization - by gdimaria - 23.04.2018, 09:18
RE: Combo box on visualization - by gdimaria - 18.04.2018, 09:08

Forum Jump: