Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
face dection
remote controll


Eyeball Box Kit Python Examples

1. Change Pi's Hostname

Change your Pi’s local hostname to eyebox.local in Configuration Panel:

If your Pi doesn't have GUI or you prefer shell commands, try this: https://www.howtogeek.com/167195/how-to-change-your-raspberry-pi-or-other-linux-devices-hostname/

2. Setup a MQTT broker on Pi

Since Eyeball box uses MQTT as communication protocol, we need a MQTT broker to receive and distribute data. You can either use online MQTT broker services or setup a broker on Pi locally. The latency may vary a lot depending on your network conditions.

We recommend you build mosquitto broker with websockets support:


Make sure you see similar output in the terminal:

pi@eyebox:~ $ mosquitto -c /etc/mosquitto/mosquitto.conf
1540025359: mosquitto version 1.4.10 (build date 2018-10-19 23:06:06+0000) starting
1540025359: Config loaded from /etc/mosquitto/mosquitto.conf.
1540025359: Opening websockets listen socket on port 9001.
1540025359: Opening ipv4 listen socket on port 1883.
1540025359: Opening ipv6 listen socket on port 1883.

3. Example: Random

Before run this example, make sure:

  1. mosquitto broker is running on your Pi and Pi's hostname is set to eyebox.local
  2. Install Eclipse Paho MQTT Python client library
pip install paho-mqtt

4. Example: Remote Control

Open controller.html in the browser on your Pi or any computer connected to the same local network.

5. Example: Face Tracking

For this example, you have to install OpenCV on Pi. FYI: