January 29, 2018 at 6:56 am #48794
The lines of code in my Python script that turn on the irrigation look like this:
import requests <snip> if min(SoilMoistureReadings) < WateringThreshold: #Manually start an OpenSprinkler program r = requests.get('http://127.0.0.1:8080/mp?pw=' + MD5_PW + '&pid=' + pid + '&uwt=' + uwt)
You’ll need to substitute your own values in – like the IP address of your OS. Does this help?