Difference between revisions of "Lumos"

From HSG Wiki
Jump to: navigation, search
(Created page with " The scrolling RGB led bar by User:Bloemist Visit http://10.20.0.25/add for easy access to the message queue == API == This api only works locally (in the space) ;Synt...")
(No difference)

Revision as of 17:33, 7 November 2017

The scrolling RGB led bar by User:Bloemist

Visit http://10.20.0.25/add for easy access to the message queue

API

This api only works locally (in the space)

Syntax
10.20.0.25/add/index.php?message=foo&option=bar&option=bar&option=bar...

REQUIRED VARIABLES

?message=<text>
1-100 character string
a-z A-Z 0-9 . , ! ? | # : ; - _ ( ) [ ] / =
unknown characters wont be shown, for optimal results use + as space

OPTIONAL VARIABLES

&time=<int>
1-2629743
Time until message gets deleted from queue, defaults to 1 hour, maximum 1 month.
&color=<int>
1 = red (default)
2 = green
3 = blue
4 = white
5 = yellow
6 = fushia
&priority=<boolean>
0 = no priority (default)
1 = priority
Notice: in priority mode, time is automatically capped at 15 minutes

API EXAMPLES

10.20.0.25/add/index.php?text=hello+world
puts "hello world" in red in queue for 1 hour
10.20.0.25/add/index.php?text=hello+world&color=4&time=604800
puts "hello world" in white in queue for 1 week
10.20.0.25/add/index.php?text=hello+world&color=2&time=300&priority=1
puts "hello world" in green in priority mode for 5 minutes