Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Notifications

Lukas edited this page Feb 17, 2019 · 2 revisions

Blink

Shows the colors in order then returns to normal Animation

{
    "token": "SUPERSECRETCODE",
    "notification": {
        "duration": 1000,
	"colors": [
	    {"r": 255, "g": 0, "b": 0, "a": 0.25},
	    {"r": 0, "g": 255, "b": 0, "a": 0.25},
	    {"r": 0, "g": 0, "b": 255, "a": 0.25}
	]
    }
}
  • duration: The amount of update-cycles each color is visible
  • colors: Array of the colors

CenterToSide

Lights all LEDs from center to sides for each color in colors then returns to normal Animation

{
    "token": "SUPERSECRETCODE",
    "notification": {
        "duration": 1000,
	"colors": [
	    {"r": 255, "g": 0, "b": 0, "a": 0.25},
	    {"r": 0, "g": 255, "b": 0, "a": 0.25},
	    {"r": 0, "g": 0, "b": 255, "a": 0.25}
	]
    }
}
  • duration: The amount of update-cycles each color takes to flow to sides
  • colors: Array of the colors
Clone this wiki locally