OpenSprinkler Forums Hardware Questions OpenSprinkler Starting OS from Data from Thingspeak Reply To: Starting OS from Data from Thingspeak

#49172

gt244
Participant

Thanks all for the help it is all up and going and here is the code below if anyone else is having trouble.

list1 = (line.split(",")[7])
    frost = str(30)

    if (list1 < frost):
          #Manually start an OpenSprinkler program
          r = requests.get('http://12X.60.XXX.2X5/mp?pw=a6d82bcedXXXef1e9bbXXX83225c&pid=0&uwt=0')
          print (r.text)