Skip to content

Instantly share code, notes, and snippets.

@jackyyeh5111
Created May 20, 2019 03:21
Show Gist options
  • Save jackyyeh5111/17220a62feea0a47e374169927e5dc0d to your computer and use it in GitHub Desktop.
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.
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