Skip to content

mikmort/MagicUFOLed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MagicUFOLed API

This is a c# for controlling Magic UFO Led WIFI strip contollers. For example:

http://www.amazon.com/LEDENET%C2%AE-Controller-Android-Smartphone-Control/dp/B00MDKOSN0/ref=sr_1_1?ie=UTF8&qid=1462662194&sr=8-1&keywords=magic+ufo+led

Code Status

This code is still very much work in progress. Note that there is minimal error checking!

Usage

Currently this code compiles into a command line utility. Here is the usage:

MagicUFOLedController

is a semi-colon delimited list of IP addresses.

Here are the

TURNON TURNOFF SETCOLOR SETBRIGHTNESS
SETRANDOMCOLOR CUSTOMFADES

####Examples:

MagicUFOController.exe 192.168.1.143 TURNOFF

MagicUFOController.exe 192.168.1.143;192.168.1.144;192.168.1.145 TURNON

MagicUFOController.exe 192.168.1.143 SETCOLOR 200 60 20 0

MagicUFOController.exe 192.168.1.143 CUSTOMFADES 255,0,0,0;0,255,255,0 JUMPING 20

#####TURNON and TURNOFF No parameters

#####Syntax for SETCOLOR is:

SETCOLOR RED GREEN BLUE WHITE

where RED, GREEN, BLUE, and WHITE are numbers between 0 and 255

#####Syntax for SETBRIGHTNESS is:

SETBRIGHTNESS BRIGHTNESS

where BRIGHTNESS is between 0 and 100

#####Sytax for CUSTOMFADES

CUSTOMFADES COLORSET FADEMODE SPEED

FADEMODE can be:

JUMPING GRADUAL STROBE

COLORSET is Red,Green,Blue,White sets delimted by semi-colons.The API supports up to 16.

SPEED is a number between 1 an 30 (1 slowest -- 30 fastest)

The Core API is in a class called LedApi.

#####Syntax for SETRANDOMCOLOR

SETRANDOMCOLOR

is optional for SETRANDOMCOLOR. It can be a number between 0 and 100

Note that SETRANDOMCOLOR biases towards more saturated colors in the random number algorithm.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages