AppLamp API for Dev's
AppLamp Wifi LED API
This JS API example code illustrates how to send commands to an AppLamp Wifi Box over UDP and
control the Wi-Fi RGBW / RGB and Dual White bulbs and LED controllers with JS.
The example code is written in JS and executed on the NodeJS platform.
I kept the examples as abstract as possible so they can easily be ported to any other language
that has the ability to send UDP hexadecimal packets.
Please share your (ported) repositories with us and have a good time coding your LED lights :)
We love to see your work!
2 JS files below:
- wifibox.js (connect to wifi box and send a command originating from command.js )
- commands.js (functions that return the appropriate 3-byte control commands to send to the box)
Get files from github
- Respect at least a 50 ms second interval (preferably 75 ms) between commands to prevent execution loss of the command on the Wifii Box.
- You don't need to know the exact IP of your Wifi Box. If you know your DHCP IP range, just replace the last digit to .255 : That way you wil perform a UDP multicast and the wifi box will receive it. So for example your network range is 192.168.1.1 to 188.8.131.52,
then use 184.108.40.206
wifibox.js Mi-Light API Wifi Limitless LED
commands.js Mi-Light API Wifi Limitless LED
Voorbeelden & Projecten:
Domoticz is een open source domotica systeem voor windows en RasperBerry, met support voor AppLamp Mi-Light http://www.domoticz.com
Have you got LED lights, but find yourself using the Lightswitch more often than not because of the need to open the app in order to simply turn on the lights? this app if you, it was developed specifically in order to give you the light switches where they are most accessible. you choose where you want the switches, be it on one of your home screens, on the lock screen or both.https://github.com/eliotstocker/Light-Controller
IFTTN - If This Then Node
IFTTN is a NodeJS based server which allows you to receive actions from IFTTT. It can be used to run on a Raspberry PI in your local network to use IFTTT for further home automation and other tasks. http://sebauer.github.io/if-this-then-node/