Skip to content

Commit

Permalink
📦 packages: Change packages and versions
Browse files Browse the repository at this point in the history
  • Loading branch information
taffarel55 committed Mar 22, 2023
1 parent ccba4b7 commit 7828c31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#-*- coding: latin-1 -*-

import socket
from urllib import urlopen
from urllib import request
import re


Expand Down Expand Up @@ -46,7 +46,7 @@ def getPublicIp():

"""Get external IP using dyndns"""
try:
data = str(urlopen('http://checkip.dyndns.com/').read())
data = str(request('http://checkip.dyndns.com/').read())
#data = '<html><head><title>Current IP Check</title></head><body>Current IP Address: 65.96.168.198</body></html>\r\n'
externalip = re.compile(r'Address: (\d+\.\d+\.\d+\.\d+)').search(data).group(1)

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyserial==3.4

0 comments on commit 7828c31

Please sign in to comment.