Python urllib2.urlopen() and TLS error

Posted on
Mon Feb 24, 2020 3:39 pm
mquetel offline
Posts: 2
Joined: Aug 03, 2019

Python urllib2.urlopen() and TLS error

Hi, Running Indigo 7.3.1 on Sierra 10.12.6

I've got a python script that makes a number of calls to the SensorPush API in order to pull temperature, humidity and last updated info from one of their devices. The script was all debugged on my windows laptop, then moved over to an indigo embedded script. It's here where I've run into issues. It looks like the SensorPush server will not operate with TLS 1.0 and I'm getting the following error:

embedded script: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)>

Looking for options here, thanks in advance.

Mike
Attachments
Screen Shot 2020-02-24 at 1.36.34 PM.png
Screen Shot 2020-02-24 at 1.36.34 PM.png (93.75 KiB) Viewed 1622 times

Posted on
Mon Feb 24, 2020 4:04 pm
FlyingDiver offline
User avatar
Posts: 7215
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Python urllib2.urlopen() and TLS error

You need to be running High Sierra or later. The SSL library on Sierra (and earlier) is too old.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Feb 26, 2020 11:45 am
mquetel offline
Posts: 2
Joined: Aug 03, 2019

Re: Python urllib2.urlopen() and TLS error

Thank you. I've been super conservative with this mac as it's running indigo and plex which are both mission critical in my house. Backed it up, ungraded to latest indigo then Catalina. Everything running fine and TLS issues are in the past. Much appreciated.

Posted on
Wed Feb 26, 2020 12:08 pm
FlyingDiver offline
User avatar
Posts: 7215
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Python urllib2.urlopen() and TLS error




Sent from my iPhone using Tapatalk

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Feb 26, 2020 10:06 pm
lalisingh offline
Posts: 166
Joined: Mar 27, 2007

Re: Python urllib2.urlopen() and TLS error

Mind sharing your script? I have one these devices and would love to get it integrated.

[url]https://www.VillageWorker.com[/url]
Extreme data analytics, Sensing, Control integration work.
Indigo • Barix • Kentix • Mobotix • Mikrotik • Apple

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests