-
-
Save brunql/1391642 to your computer and use it in GitHub Desktop.
Lightpack API server help
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brunql@brunql-desktop:~$ telnet localhost 3636 | |
Trying ::1... | |
Trying 127.0.0.1... | |
Connected to localhost. | |
Escape character is '^]'. | |
Lightpack API v1.3 (type "help" for more info) | |
? | |
List of available commands: | |
apikey, lock, unlock, getstatus, getstatusapi, getprofile, getprofiles, | |
getcountleds, setcolor, setgamma, setbrightness, setsmooth, setprofile, | |
setstatus, exit, help, ? | |
Detailed version is available by "help" command. | |
help | |
Lightpack 5.8.6. API Server 1.3 | |
................................................................................ | |
apikey: | |
Command for enter an authorization key (see key in GUI) | |
Examples: | |
"apikey:{1ccf5dca-119d-45a0-a683-7d90a00c418f}" | |
"apikey:IDDQD" | |
Results: | |
"ok" | |
"fail" | |
................................................................................ | |
lock | |
Opens access to set-commands, If success - suspends capture and blocking access for other clients to set-commands. | |
Results: | |
"lock:success" | |
"lock:busy" | |
................................................................................ | |
unlock | |
Closes access to set-commands. Restores device settings from the current profile, and continues the normal execution of the application. | |
Results: | |
"unlock:success" | |
"unlock:not locked" | |
................................................................................ | |
getstatus | |
Get status of the backlight | |
Results: | |
"status:on" | |
"status:off" | |
"status:device error" | |
"status:unknown" | |
................................................................................ | |
getstatusapi | |
Get status of the lightpack API | |
Results: | |
"statusapi:busy" | |
"statusapi:idle" | |
................................................................................ | |
getprofile | |
Get the name of the current profile | |
Results: | |
"profile:SampleProfileName" | |
................................................................................ | |
getprofiles | |
Get names of the all available profiles | |
Results: | |
"profiles:Lightpack;New profile 1;New profile 2;" | |
................................................................................ | |
getcountleds | |
Get count leds of the current profile | |
Results: | |
"countleds:10" | |
................................................................................ | |
setcolor: | |
Set colors on several LEDs. Format: "N-R,G,B;", where N - number of led, R, G, B - red, green and blue color components. Works only on locking time (see lock). | |
Examples: | |
"setcolor:1-255,255,30;" | |
"setcolor:1-255,255,30;2-12,12,12;3-1,2,3;" | |
Results: | |
"ok" | |
"error" | |
"busy" | |
"not locked" | |
................................................................................ | |
setgamma: | |
Set device gamma correction value [0.01 - 10]. Works only on locking time (see lock). | |
Examples: | |
"setgamma:2.5" | |
Results: | |
"ok" | |
"error" | |
"busy" | |
"not locked" | |
................................................................................ | |
setbrightness: | |
Set device brightness value [0 - 100]. Works only on locking time (see lock). | |
Examples: | |
"setbrightness:0" | |
"setbrightness:93" | |
Results: | |
"ok" | |
"error" | |
"busy" | |
"not locked" | |
................................................................................ | |
setsmooth: | |
Set device smooth value [0 - 255]. Works only on locking time (see lock). | |
Examples: | |
"setsmooth:10" | |
"setsmooth:128" | |
Results: | |
"ok" | |
"error" | |
"busy" | |
"not locked" | |
................................................................................ | |
setprofile: | |
Set current profile. Works only on locking time (see lock). | |
Examples: | |
"setprofile:Lightpack" | |
"setprofile:16x9" | |
Results: | |
"ok" | |
"error" | |
"busy" | |
"not locked" | |
................................................................................ | |
setstatus: | |
Set backlight status. Works only on locking time (see lock). | |
Examples: | |
"setstatus:on" | |
"setstatus:off" | |
Results: | |
"ok" | |
"error" | |
"busy" | |
"not locked" | |
................................................................................ | |
? | |
Short version of this help | |
................................................................................ | |
exit | |
Closes connection | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment