ImSammy

LIFX Flame Effect Activate

Jun 14th, 2020
1,794
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. import requests
  2.  
  3. token = "YOUR API HERE"
  4.  
  5. headers = {
  6.     "Authorization": "Bearer %s" % token,
  7. }
  8.  
  9. data = {
  10.     "period": 5,
  11. }
  12.  
  13. response = requests.post('https://api.lifx.com/v1/lights/label:Tiles/effects/flame', data=data, headers=headers)
Advertisement
Add Comment
Please, Sign In to add comment