- build api
- programm http server
- run with https://www.npmjs.com/package/homebridge-minimal-http-blinds
- use HAP-Java
To compile and flash the software to your NXT 2.0 Brick leJos is needed. Watch the following video until 12:24 and follow the steps.
The steps are:
- Download and install Java 6 from https://support.apple.com/kb/DL1572?locale=de_DE.
Notice that your java virtual machine isn't installed in the location mentioned in the video. It is installed at
/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
To determine the location run (see https://stackoverflow.com/a/26507569)
/usr/libexec/java_home -V
- Download and install leJOS from https://sourceforge.net/projects/lejos/files/lejos-NXJ/. Choose the latest version.
-
Unpack the
tar.gz
-
Move the folder to some suitable directory (home for instance).
mv ~/Downloads/leJOS_NXJ_* ~/leJOS_NXJ
-
Set the environment variables. You can use the commands from this page. But make sure to use the paths from 1. and 2.
export NXJ_HOME="~/leJOS_NXJ" export LEJOS_NXT_JAVA_HOME="/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home" export PATH="$NXJ_HOME/bin:$PATH"
- Install the drivers for the brick. Download the drivers from https://www.lego.com/de-de/mindstorms/downloads and install them.
Now you should be able to build and flash when running the build.sh.
Sorry, I don't have information about that.