Sample NativeScript and Angular mobile app to control a Magic Blue smart light bulb. A more detailed guide about how this was made can be found here.
This application was created using NativeScript CLI. In order to build the application, first clone the repo:
git clone https://github.com/adrianfaciu/NativeScriptLightBulb
cd NativeScriptLightBulb
Next install all the npm dependencies and Android/iOS runtime:
tns install
Start the application with:
tns run ios
tns run android
You will not be able to use an emulator since it needs the Bluetooth from a real device.