Created
May 20, 2019 03:21
-
-
Save jackyyeh5111/17220a62feea0a47e374169927e5dc0d to your computer and use it in GitHub Desktop.
Modify the value of light feed on adafruit.io via HTTP post request.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
headers = {'X-AIO-KEY':'08e1fcfcb7554b348679ca0633241e42'} | |
res = requests.post('https://io.adafruit.com/api/v2/jackyyeh/feeds/light/data', {"value":900}, headers=headers) | |
print(res.json()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment