Jan-15-2018, 05:10 PM
Any reason this shouldnt work anymore?`
Updated my raspberry pi and since it has been unable to actually turn my phillips hue lights on with the script below.. Im unsure as to why.
Updated my raspberry pi and since it has been unable to actually turn my phillips hue lights on with the script below.. Im unsure as to why.
import requests import time time.sleep(1) headers = { 'Accept': 'application/json', } data = '{"on":true,"bri":255,"sat":255,"hue":46920,"effect":"colorloop"}' requests.put('http://192.168.1.47/api/XXXXXXXXXXXXXXXXXXXXXXXXXXXXX/$