]> git.vanrenterghem.biz Git - elgato-keylight-script.git/commitdiff
Add Usage and Installation sections
authorJonas Werme <jonas.werme@hoofbite.com>
Wed, 5 Jan 2022 05:23:00 +0000 (06:23 +0100)
committerJonas Werme <jonas.werme@hoofbite.com>
Wed, 5 Jan 2022 05:23:00 +0000 (06:23 +0100)
README.md

index d973ab0a960b3dd133d608772c7cec4bcf3a842e..cf1f57caca7a2d4c39eac48f67578731929505c8 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,4 +1,7 @@
 - [elagto-key-light-linux](#elagto-key-light-linux)
+  - [USAGE](#usage)
+  - [Installation](#installation)
+    - [Dependencies](#dependencies)
   - [JSON filters in -t/--target](#json-filters-in--t--target)
     - [Filter basics](#filter-basics)
     - [Example target filters](#example-target-filters)
@@ -15,6 +18,54 @@ Intended for easy use via CLI, keyboard shortcuts and by StreamDeck, Cinnamon ap
 
 If you are using a StreamDeck you can target this script as a command for the button press.
 
+## USAGE
+
+```bash
+Usage: keylights.sh [-h] [-f <value>] [-l] [-p] [-s] [-t <value>][-v] [--<option>] [--<option> <value>] <action>
+
+Elgato Lights controller. Works for Key Light and Key Light Air.
+
+Available actions:
+    list        List available lights
+    status      Get state of lights
+    on          Turn all lights on
+    off         Turn all lights off
+    temperature  Set temperature level (260-470)
+    brightness  Set brightness level (0-100)
+    increase    Increases brightness by 10
+    decrease    Decreases brightness by 10
+
+Available formats:
+    json        Renders output as JSON (default)
+    flat        Renders output as flattened JSON with .(dot) notation JSON (default)
+    html        Renders output as basic html table
+    csv         Renders output as csv
+    table       Renders output as a printed table
+    pair        Renders output as flattened key=value pairs
+
+
+Available options:
+
+-h, --help      Print this help and exit
+-f  --format    Set output format
+-p, --pretty    Pretty print console output
+-s, --silent    Supress notifications
+-t, --target    Only perform action on devices where value matches filter
+-v, --verbose   Print script debug info
+```
+
+## Installation
+
+No installation or configuration required. Download, copy paste or git clone the repo to your local machine and run the script.
+
+### Dependencies
+
+The script requires avahi-browse, notify-send and curl to be installed.
+
+```bash
+sudo apt-get install avahi-utils curl notify-send
+```
+
 ## JSON filters in -t/--target
 
 The target option is passing along filters to the json parser.