List of variables

Posted on
Mon May 03, 2021 12:42 pm
Mattias offline
Posts: 35
Joined: May 30, 2014

List of variables

Is it somehow possible to get a list of all variables I’ve defined in the system? (Variable Id and Variable name)

And the same type of list type of list for devices?

Mattias

Posted on
Mon May 03, 2021 1:44 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: List of variables

Code: Select all
for var in indigo.variables:
    print var.id, var.name


for dev in indigo.devices:
    print dev.id, dev.name


You could run that in the scripting shell, bottom of the plugins menu.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon May 03, 2021 2:02 pm
jay (support) offline
Site Admin
User avatar
Posts: 18216
Joined: Mar 19, 2008
Location: Austin, Texas

Re: List of variables

You don't mention how you need it - the Variables Window shows all variables and their IDs.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon May 03, 2021 2:29 pm
Mattias offline
Posts: 35
Joined: May 30, 2014

Re: List of variables

I’ll try the script. Thanks
(see if I can use it to configure which lights to use in my light autoscript without having to update the scripts everytime add a new device)

Posted on
Mon May 03, 2021 5:15 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: List of variables

Utilities plugin has a function that does that in a nice formatted way.


Sent from my iPhone using Tapatalk

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests

cron