# Run programme on smartplug

**URL:** <https://forums.digi.com/t/run-programme-on-smartplug/14818>\
**Category:** Python\
**Tags:** smartplug, python\
**Created:** [May 5, 2015, 11:33am UTC](https://forums.digi.com/t/run-programme-on-smartplug/14818 "2015-05-05T11:33:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhen](https://avatars.discourse-cdn.com/v4/letter/z/a88e57/32.png) [@zhen](https://forums.digi.com/u/zhen)\
**Post date:** [May 5, 2015, 11:33am UTC](https://forums.digi.com/t/run-programme-on-smartplug/14818/1 "2015-05-05T11:33:04Z")

</div>

Hi,  
I found the demo of smartplug: [http://www.digi.com/wiki/developer/index.php/Smart\_Plug\_and\_iDigi\_Demo](http://www.digi.com/wiki/developer/index.php/Smart_Plug_and_iDigi_Demo)  
and I upload it to gateway net interface, the part “File management”, and the part “Python”. But the light “Active” is alway gray.  
How could I run this programme to my samrtpulg, control it open and close at a specified time?  
Thank you very much.

---

<div class="post-metadata">

**Author:** ![userid0](https://avatars.discourse-cdn.com/v4/letter/u/f6c823/32.png) [@userid0](https://forums.digi.com/u/userid0)\
**Post date:** [May 6, 2015, 10:49am UTC](https://forums.digi.com/t/run-programme-on-smartplug/14818/2 "2015-05-06T10:49:30Z")

</div>

What happens if you run the python application from the command line of the gateway?

#\> py smartplug\_idigi.py

Also, it is important to note that this python application will not work on X2e/XBee gateways, it will only work on ConnectPort X2, X4 and X8 gateways (NDS based rather than Linux).
