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.

Widgets on SpaceLynk
#7
(22.11.2018, 21:03)Erwin van der Zwart Wrote: hHi,

Why don’t you just create 1 widget with a value box for setting the GW 1 to xx and a value box with EVG nr. Under this you create a slider and a on/off button.

Then you can handle the rest in a single script..
Code:
GW = grp.getvalue('1/1/1')
EVG = grp.getvalue('1/1/2')
if event.dst == '1/1/3' then — bit value
  grp.write('2/' .. GW .. '/' .. EVG, event.getvalue())
elseif event.dst == '1/1/4'' then — byte value
  grp.write('3/' .. GW .. '/' .. EVG, event.getvalue())
end
This way the user just selects the GW and EVG by selector and the 2 elements control the selected EVG

BR,

Erwin

Hi Erwin,
Great ! There are small errors on lines 3 (-- bit value) and line 5 ('1/1/4')

Do you have a solution to display string in the same time, along with GW and EVG numbers ?

B.R,
Chouaibou.
Reply


Messages In This Thread
Widgets on SpaceLynk - by suporte.arqtech - 22.11.2018, 12:13
Widgets on SpaceLynk - by Kai-Roger - 22.11.2018, 12:55
RE: Widgets on SpaceLynk - by Daniel - 22.11.2018, 13:15
RE: Widgets on SpaceLynk - by suporte.arqtech - 22.11.2018, 20:00
RE: Widgets on SpaceLynk - by buuuudzik - 22.11.2018, 20:44
RE: Widgets on SpaceLynk - by CHOUAIBOU - 22.11.2018, 23:03
RE: Widgets on SpaceLynk - by CHOUAIBOU - 23.11.2018, 13:58
RE: Widgets on SpaceLynk - by suporte.arqtech - 26.11.2018, 11:31
RE: Widgets on SpaceLynk - by DGrandes - 17.12.2018, 20:46
RE: Widgets on SpaceLynk - by DGrandes - 18.12.2018, 12:56
RE: Widgets on SpaceLynk - by DGrandes - 18.12.2018, 20:26

Forum Jump: