cambiado hek por ipinfo.io

This commit is contained in:
2023-10-18 13:51:57 +02:00
parent 70bc043600
commit 0411c8a90a
2 changed files with 3 additions and 27 deletions

View File

@@ -1,11 +1,10 @@
import hek
from os.path import exists from os.path import exists
import requests import requests
from time import sleep from time import sleep
while True: while True:
# get ip req = requests.get("http://ipinfo.io/ip")
ip = hek.ipstuff.myip(find="query") ip = req.text
# existe archivo con la antigua ip # existe archivo con la antigua ip
file_exists = exists("old_ip.txt") file_exists = exists("old_ip.txt")
@@ -29,4 +28,4 @@ while True:
"CQhKyt_TA5uoaJhC_XE/sendMessage?chat_id=3058130&text=" "CQhKyt_TA5uoaJhC_XE/sendMessage?chat_id=3058130&text="
"La nueva Ip para su Raspberry es: " + ip "La nueva Ip para su Raspberry es: " + ip
) )
sleep(5*60) sleep(5 * 60)

View File

@@ -1,28 +1,5 @@
certifi==2023.7.22 certifi==2023.7.22
charset-normalizer==3.3.0 charset-normalizer==3.3.0
DateTime==5.2
EasyProcess==1.1
entrypoint2==1.1
hek==0.3.3
idna==3.4 idna==3.4
jeepney==0.8.0
MouseInfo==0.1.3
mss==9.0.1
numpy==1.26.1
opencv-python==4.8.1.78
Pillow==10.1.0
psutil==5.9.6
PyAutoGUI==0.9.54
PyGetWindow==0.0.9
PyMsgBox==1.0.9
pyperclip==1.8.2
PyRect==0.2.0
pyscreenshot==3.1
PyScreeze==0.1.29
PySocks==1.7.1
python3-xlib==0.15
pytweening==1.0.7
pytz==2023.3.post1
requests==2.31.0 requests==2.31.0
urllib3==2.0.7 urllib3==2.0.7
zope.interface==6.1