[ANSWERED]Where do we load python scripts?

Posted on
Mon Jan 30, 2017 2:15 pm
jfeger offline
Posts: 84
Joined: Jan 02, 2013

[ANSWERED]Where do we load python scripts?

This has probably been answered, but I didn't see a straight answer.

I know how to load python scripts into actions, triggers, etc. However, what if I want to have a python script load and run all the time in the background? Is this only doable via a Plugins, or is there a directory where I can drop my script off and it simply loads and runs?

Posted on
Mon Jan 30, 2017 3:04 pm
jay (support) offline
Site Admin
User avatar
Posts: 15856
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Where do we load python scripts?

Just create a startup trigger with an execute script action (external script of course)..

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Jan 30, 2017 3:08 pm
jfeger offline
Posts: 84
Joined: Jan 02, 2013

Re: Where do we load python scripts?

Ah. Makes sense. Thank you!

Posted on
Mon Jan 30, 2017 6:46 pm
sgbirch offline
Posts: 99
Joined: Sep 11, 2013

Re: [ANSWERED]Where do we load python scripts?

jay (support) wrote:
Just create a startup trigger with an execute script action (external script of course)..


Ahhhhhh .. thanks Jay. I also didn't understand that, my script runs every five seconds and uses Indigo variables to store state. Ill be rewriting it tomorrow now I get it.

One question though ... when debugging, how do we restart the script?

Posted on
Mon Jan 30, 2017 7:01 pm
jay (support) offline
Site Admin
User avatar
Posts: 15856
Joined: Mar 19, 2008
Location: Austin, Texas

Re: [ANSWERED]Where do we load python scripts?

sgbirch wrote:
Ahhhhhh .. thanks Jay. I also didn't understand that, my script runs every five seconds and uses Indigo variables to store state. Ill be rewriting it tomorrow now I get it.

One question though ... when debugging, how do we restart the script?


Nothing wrong with that approach - it makes the script somewhat stateful since variable values persist across restarts.

You'll have to kill the process. It will be running in an IndigoPluginHost process though so it should be easy to find.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Jan 30, 2017 7:04 pm
sgbirch offline
Posts: 99
Joined: Sep 11, 2013

Re: [ANSWERED]Where do we load python scripts?

jay (support) wrote:
sgbirch wrote:
Ahhhhhh .. thanks Jay. I also didn't understand that, my script runs every five seconds and uses Indigo variables to store state. Ill be rewriting it tomorrow now I get it.

One question though ... when debugging, how do we restart the script?


Nothing wrong with that approach - it makes the script somewhat stateful since variable values persist across restarts.

You'll have to kill the process. It will be running in an IndigoPluginHost process though so it should be easy to find.


Thank you


Sent from my iPad using Tapatalk Pro

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest