Posted April 14Apr 14 comment_23 WLED-Mod ๐ General DescriptionThe WLED Control mod lets you remotely control WLED-powered LED strips using simple HTTP commands. It enables color changes (RGB & HEX), activates visual effects, and can temporarily override the current LED state before returning to the previous one.Perfect for use in reaction systems, bot actions, alerts, or lighting-based feedback.โ ๏ธ RequirementsA WLED device running in your networkWLED must be accessible via HTTP (default: http://<your-ip>/win)A local config file (wled-config.json) is required to define the WLED base URLaiostool must be able to reach the WLED IP from the machine it's running on๐ ๏ธ ConfigurationCreate a config file named wled-config.json and place it in the modโs config folder. Example content:{ "host": "http://192.168.2.160/win" }This sets the default base URL for the WLED device.โ๏ธ FunctionsmainLoads the host URL from the config file.setRedSets the color to red (R:255, G:0, B:0).setBlueSets the color to blue (R:0, G:0, B:255).setGreenSets the color to green (R:0, G:255, B:0).setCustomApplies a user-defined color and effect using direct RGB values and effect IDs. Accepts:fx, sx, a, r, g, b, ixsetCustomHEXSame as setCustom, but color is passed as a HEX value (#rrggbb).setRGBSets a static RGB color (no effect/animation). Accepts: r, g, b.setHEXSame as setRGB, but using a HEX color string.setCustomTempTemporarily activates an effect and color, then restores the previous WLED state after a given time. Accepts same values as setCustom + time (in ms).๐ฌ Example Commands๐ด Switch to redKeyValuescriptwledModfunctionsetRed๐ Set custom RGB effectKeyValuescriptwledModfunctionsetCustomfx1sx200a255r255g100b50ix128๐จ Use HEX color with effectKeyValuescriptwledModfunctionsetCustomHEXfx3hex#00ffffโ ๏ธ Temporary alert effect (5 seconds)KeyValuescriptwledModfunctionsetCustomTempfx60r255g0b0a255time5000๐ก Set static color with HEXKeyValuescriptwledModfunctionsetHEXhex#ff66cc๐ฏ Set static color with RGBKeyValuescriptwledModfunctionsetRGBr120g20b240๐งช This mod supports real-time LED feedback and custom lighting animations โ all configurable from your event system, overlay triggers, or chat commands. File Information Submitter BlackRider Submitted 04/14/2025 Category Mods View File @BlackRider Founder ยท Lead Developer ยท System AdministratorDevelopment ยท Infrastructure ยท Feature Design ยท Community & Project Management๐ My links & socials
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.