Skip to content

Instantly share code, notes, and snippets.

@maxcell
Created February 5, 2021 04:47
Show Gist options
  • Save maxcell/fa987c96b6523a8434c2ed3b3742a850 to your computer and use it in GitHub Desktop.
Save maxcell/fa987c96b6523a8434c2ed3b3742a850 to your computer and use it in GitHub Desktop.
curl --request PUT \
--url http://<NANOLEAF_API_ENDPOINT>/api/v1/<AUTH_TOKEN>/effects \
--header 'Content-Type: application/json' \
--data '{ "write":{
"command": "display",
"version": "1.0",
"animType": "wheel",
"colorType": "HSB",
"transTime": {
"minValue": 4,
"maxValue": 10
},
"palette": [
{
"hue": 0,
"brightness": 47,
"saturation": 100
},
{
"hue": 23,
"saturation": 100,
"brightness": 55
},
{
"hue": 54,
"saturation": 95,
"brightness": 67
},
{
"hue": 80,
"saturation": 100,
"brightness": 27
},
{
"hue": 194,
"saturation": 87,
"brightness": 67
},
{
"hue": 219,
"saturation": 91,
"brightness": 55
},
{
"hue": 260,
"saturation": 100,
"brightness": 75
}
],
"loop": true
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment