Giter Club home page Giter Club logo

wifiled's Introduction

wifiled

Command line access to generic socket based WIFI LED Controllers

Usage

Before using wifiled, you need to tell it what ip and port to target. (port will default to 5577 if not set)

  1. Environment Variables - Before using wifiled, run export wifiled_ip= 192.168.1.123 and export wifiled_port = 5577
  2. CLI Flags - add -ip 192.168.1.123 and/or -port 5577

You can set multiple ips with a comma separator. For example -ip="1.1.1.1,2.2.2.2,3.3.3.3"

You can set -timeout=1 to set the timeout in seconds. This is useful if you have a lot of controllers and don't want to wait long for each command. (defaults to 5 seconds)

Then you can issue the following commands:

wifiled on - turns on LEDs to the last RGBWWW setting

wifiled off - turns off LEDs

wifiled dim 50 - dims all channels to 50/255

wifiled dim 255 0 0 - dims LEDs to Red 255/255 Green 0/255 Blue 0/255

wifiled dim 200 200 200 100 100 - dims LEDs RGB to 200/255 and Whites to 100/200

wifiled randomize - randomizes the LEDs

wifiled randomize 0-10 - sets a random color with values between 0 and 10

wifiled randomize 255 0-50 0-50 - sets red fixed and green/blue between 0 and 50

If you want to avoid getting the color white, simply add -avoidwhite and whenever the RGB are over 150 for each channel, it will turn off the blue channel.

To Develop

This project expects to be checked out in your go src path.

To Build

Run go build in the root of the project.

Testing

Tested with generic WIFI LED Controllers that use the MagicHome mobile app to control.

Devices:

  • XCSOURCE DC 12-24V WIFI Remote 5 Channels Controller for iOS Android RGB LED Strip LD686
    • MPN : HF-LPB100-1
  • LEDENET Smart Wifi LED Controller 5 Channels Control 4A4CH
  • (more to come)

2014 Protocol - Sends tcp packets to port 5577

Other Awesome WIFI LED Projects

wifiled's People

Contributors

szazeski avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.