I have the following python script that sends 2 specific numbers to the thingspeak site.
How can i replace the numbers with 2 variables that i have created in Indigo ?
import httplib, urllib
params = urllib.urlencode({'field1': 24, 'field2': 18,'key':'my thingspeak api key'})
headers = {"Content-type": "application/x-www-form-urlencoded","Accept":
"text/plain"}
conn = httplib.HTTPConnection("api.thingspeak.com:80")
conn.request("POST", "/update", params, headers)
response = conn.getresponse()
print response.status, response.reason
data = response.read()
conn.close()
thanks for the help
George