I am trying to connect to the HD 12 rainmachine using a python script locally for a home automation program. I keep getting certificate errors because the non verifiable certificate can't be verified. No surprise. In curl, I can add -k to ignore this, but I am struggling to figure out how to do the same.
Any help would be great!
Here is a very simple example:
from urllib2 import Request, urlopen
request = Request(
response_body = urlopen(request).read()
Please sign in to leave a comment.