/lichtenstein-server

Server for the lichtenstein LED controllers

Primary LanguageC++BSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Lichtenstein Server

This is the C++ server that controls the networked Lichtenstein LED controllers. The server is controlled via a simple JSON API over a UNIX socket. Data is persisted to disk with a simple embedded sqlite3 database. All effects are enumerated and executed as needed, and updates sent to nodes as needed.

Effects themselves are implemented as simple AngelScript functions.

Building

Once all dependencies have been satisfied (remember to pull submodules and download the AngelScript SDK) you can invoke CMake to generate projects for your favorite

Be sure you have sqlite3, glog, and gflags installed on the system, and in your include/link paths. You will also need whatever dependencies lichtenstein-lib requires; namely, the protobuf runtime, LibreSSL, and Catch2 for tests.

As an example, you might do the following to build:

mkdir build
cd build
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ..
make

macOS

Install glog and gflags via Homebrew; then invoke CMake. Everything should compile without problems.

FreeBSD

FreeBSD support is experimental, and may break unexpectedly.

You will most likely need to build glog and Catch2 from source and install them that way. The binary packages provided via ports do not install the CMake configuration scripts.