{ "author": "Wesley M. Conner", "gitHubUrl": "https://github.com/WesleyMConner", "payPalUrl": "paypal.me/wesmcPH", "packages": [ { "name": "Wmc Utils", "id": "efadea22-e44c-4dc4-a73e-3ac4d975e12a", "category": "Convenience", "tags": ["Tools & Utilities"], "location": "https://raw.githubusercontent.com/WesleyMConner/HpmNavigation/main/pkgs/WmcUtils/WmcUtils_1.0.0.json", "description": "General-purpose functions leveraged in downstream Wmc Apps & Devices", "descriptive": "ENHANCED LOGGING FUNCTIONS
| setLogLevel(String) 'TRACE' | 'DEBUG' | 'INFO' | 'WARN' | 'ERROR') void logTrace(String) functionName(, String) | , ArrayList content) void logDebug(String) functionName(, String) | , ArrayList content) void logInfo(String) functionName(, String) | , ArrayList content) void logWarn(String) functionName(, String) | , ArrayList content) |
| ifLogTrace() && statement | if (ifLogTrace()) { statements } |
| ifLogDebug() && statement | if (ifLogDebug()) { statements } |
| ifLogInfo() && statement | if (ifLogInfo()) { statements } |
| ifLogWarn() && statement | if (ifLogWarn()) { statements } |
| String hued( InstalledAppWrapper | DeviceWrapper | ChildDeviceWrapper | null) String stripHued(String) |
The following formatting methods are useful in GUI paragraphs and when in logging methods.
| h1(String) | h2(String) | h3(String) |
| bullet1(String) | bullet2(String) | bullet3(String) |
| square1(String) | square2(String) | square3(String) |
| b(String) | i(String) | bi(String) |
| bList(ArrayList) | bMap(def) | safeParseInt(String) |
| mapToTable(def, ..) | cleanStrings(ArrayList) | modeNames() |
| blackBar() | greenBar() | redBar() |
| toJson(def) | alert(String) |
| BUNDLE (.zip) | LIBRARIES (.groovy) | APPS (.groovy) | DEVICES (.groovy) |
|---|---|---|---|
| WmcUtilsBundle_1.0.0 | WmcUtilsLib_1.0.0 | WmcUtilsDemo_1.0.0 | \u2014 |
| void configPbsg(String jsonPrefs) | // Set or adjust Preferences (button names, default button) programmatically. | |
| void activate(String button) | // Activate a button (mutually exclusively). | |
| void deactivate(String button) | // Deactivate a button and activate the Default Button if specified. | |
| void push(Integer buttonNumber) | // Toggle the corresponding button (activate\u2194deactivate). |
| void on() | // Activates the corresponding keypad button. | |
| void off() | // Deactivates the corresponding keypad button. | |
| void push() | // Toggles the corresponding keypad button. |
| PKG PREFIX | BUNDLE (.zip) | LIBRARIES (.groovy) | APPS (.groovy) | DEVICES (.groovy) |
|---|---|---|---|---|
| WmcPbsg | WmcPbsgBundle_1.0.0 | \u2014 | WmcPbsgDemo_1.0.0 | WmcPbsg_1.0.0 WmcPbsgVswt_1.0.0 |