A Powershell CLI script for controlling a Luxafor LED Status Flag using the Luxafor WebHook REST API
WebHook API information is available on the Luxafor website: https://luxafor.com/webhook-api/
- Install the official Luxafore app for Windows 10 (https://luxafor.com/download/)
- Clone the repo to your local machine
- Generate a WebHook in the Luxafor app and copy it to the luxps.ps1 script in the repo
- Run the script using the parameters outlined below
- Added configuration file system
- Changed Luxafor Webhook ID to read from config file instead of being staticly set in the script
- CLI format fixes/updates
- General code cleanup and commenting
NOTE: You must manually set the correct WebHook LuxID in this script before running
Parameters:
-colour : Set a specific colour
-blink : Trigger a blink event to a specific colour
-pattern : Trigger a pattern event
-service : Enable service mode that changes the colour based on the machines Screen Lock state