# Blinkstick --connect does not exist

**URL:** <https://forums.blinkstick.com/t/blinkstick-connect-does-not-exist/131>\
**Category:** Support\
**Created:** [February 27, 2015, 4:16pm UTC](https://forums.blinkstick.com/t/blinkstick-connect-does-not-exist/131 "2015-02-27T16:16:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![27escape](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/27escape/32/81_2.png) [@27escape](https://forums.blinkstick.com/u/27escape)\
**Post date:** [February 27, 2015, 4:16pm UTC](https://forums.blinkstick.com/t/blinkstick-connect-does-not-exist/131/1 "2015-02-27T16:16:59Z")

</div>

Using the latest python script I cannot setup access for the API interface

> blinkstick --connect 1234566  
> BlinkStick control script 1.1.7  
> (c) Agile Innovative Ltd 2013-2014

> Usage: blinkstick [options] [color]

> blinkstick: error: no such option: --connect

I have checked the latest source code and I cannot see any mention of this option

thanks  
kevin

---

<div class="post-metadata">

**Author:** ![p0ke](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/p0ke/32/14_2.png) [@p0ke](https://forums.blinkstick.com/u/p0ke)\
**Post date:** [February 27, 2015, 4:52pm UTC](https://forums.blinkstick.com/t/blinkstick-connect-does-not-exist/131/2 "2015-02-27T16:52:18Z")

</div>

There is no --connect option. Please use blinkstick --help and find the right options. I think you are looking for --serial?

---

<div class="post-metadata">

**Author:** ![27escape](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/27escape/32/81_2.png) [@27escape](https://forums.blinkstick.com/u/27escape)\
**Post date:** [February 27, 2015, 5:12pm UTC](https://forums.blinkstick.com/t/blinkstick-connect-does-not-exist/131/3 "2015-02-27T17:12:13Z")

</div>

Thanks for the reply, but I am looking for connect, as described here [Control BlinkStick Remotely](https://www.blinkstick.com/help/control)

---

<div class="post-metadata">

**Author:** ![arvydas](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/arvydas/32/242_2.png) [@arvydas](https://forums.blinkstick.com/u/arvydas)\
**Post date:** [February 27, 2015, 5:44pm UTC](https://forums.blinkstick.com/t/blinkstick-connect-does-not-exist/131/4 "2015-02-27T17:44:57Z")

</div>

The feature has been removed in order to simplify BlinkStick Python package. There is an example script showing how to achieve exactly the same result

> **[arvydas/blinkstick-python](https://github.com/arvydas/blinkstick-python/wiki/Example:-Control-Remotely)**
>
> Example:-Control-Remotely

---

<div class="post-metadata">

**Author:** ![m-p-3\_](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/m-p-3_/32/454_2.png) [@m-p-3\_](https://forums.blinkstick.com/u/m-p-3_)\
**Post date:** [March 20, 2018, 7:20pm UTC](https://forums.blinkstick.com/t/blinkstick-connect-does-not-exist/131/5 "2018-03-20T19:20:44Z")

</div>

Where should we preferably put that script in the file hierarchy, and will it run as a deamon as soon as the device starts?

**EDIT:** Oh wow sorry for bringing an old topic back, I never noticed the year it was posted and it was what came from a search.

**EDIT2:**  
I’ll answer my own question, in case it helps someone else figure out what to do.

In order to have the python script to run at boot, using “supervisor” on the Raspberry Pi:

- Install supervisor ( **`sudo apt install supervisor`** )

- Create a directory in _/var/log/_ called _blinkstick\_remote_ ( **`sudo mkdir -p /var/log/blinkstick_remote`** )

- Create a python file called _blinkstick\_remote.py_ in _/usr/local/bin/_

- Copy the script from [_Example: Control Remotely_](https://github.com/arvydas/blinkstick-python/wiki/Example%3A-Control-Remotely) with your own access code included, but be careful to add the following at the top of the script:  
**`#!/usr/bin/python`** (_this will be important later on_)

- Once the file is made, make sure to grant it execute rights ( **`sudo chmod +x /usr/local/bin/blinkstick_remote.py`** )

- Create a file called _blinkstick\_remote.conf_ in _/etc/supervisor/conf.d/_ and put the following content

- run _`sudo service supervisor restart`_ to let it relaunch its service, or reboot the Raspberry Pi.

You can check if the service runs with htop (you’ll see an entry _/usr/bin/python /usr/local/bin/blinkstick\_remote.py_ as a process). If there’s any problem with the script, you can check the logs in /var/log/blinkstick\_remote to troubleshoot the problem.

If the line **`#!/usr/bin/python`** is missing in the python script, supervisor will not be able to execute the script with the following error message in the logs: **`supervisor: couldn't exec /usr/local/bin/blinkstick_remote.py: ENOEXEC`**

If all is well, you’ll be able to control your BlinkStick from the Dashboard

Pro-Tip: If you’re behind a restrictive firewall that doesn’t allow port 9292 to go through, replace it with port 80 and it will still work (thanks to the BlinkStick dev who opened it not too long ago!)
