/vj-control-server

Primary LanguagePythonMIT LicenseMIT

Introduction

This repo contains:

  • The Python based server meant to run on a RaspberryPi 2 (root folder)
  • The Arduino sketch for the Dimmer device (Arduino folder)

The server

Development environment

Within the development environment both the GPIO and the Arduino are mocked.

Requirements

Setup

I recommend using pip and virtualenv. One way to do so is:

  1. Download PyCharm (https://www.jetbrains.com/pycharm/download/) - Community Edition is sufficient
  2. Open this repository
  3. Set interpreter to Python2.7
    1. Go to "File" -> "Settings"
    2. Search for "Interpreter"
    3. Set to Python 2.7
  4. Open vj-control-server.py
  5. PyCharm should now display that some requirements are missing -> click "Install requirements"

Run

python vj-control-server.py

Production

Ready-to-use SD card images can be built following the instructions at https://github.com/j-be/vj-control-server-buildenv

Arduino

Download the Arduino IDE (https://www.arduino.cc) and follow the usual Arduino procedures as described at https://www.arduino.cc/en/Guide/ArduinoUno.

Unity3D

The API can be found at https://github.com/j-be/vj-unity-apis. Follow the instructions there. For this server you need:

  • AbstractSocketioClient.cs
  • FanSpeedController.cs
  • WaterSplasherController.cs