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...")
 
 
Line 9: Line 9:
  
 
;Syntax
 
;Syntax
:10.20.0.25/add/index.php?message=foo&option=bar&option=bar&option=bar...
+
:10.20.0.25/add/index.php?text=foo&option=bar&option=bar&option=bar...
  
 
=== REQUIRED VARIABLES ===
 
=== REQUIRED VARIABLES ===
  
;''?message=<text>''
+
;''?text=<text>''
 
: 1-100 character string
 
: 1-100 character string
 
: a-z A-Z 0-9 . , ! ? | # : ; - _ ( ) [ ] / =
 
: a-z A-Z 0-9 . , ! ? | # : ; - _ ( ) [ ] / =

Latest revision as of 23:07, 11 April 2019

The scrolling RGB led bar by User:Bloemist

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

API[edit]

This api only works locally (in the space)

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

REQUIRED VARIABLES[edit]

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

OPTIONAL VARIABLES[edit]

&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[edit]

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