cambiado hek por ipinfo.io
This commit is contained in:
7
init.py
7
init.py
@@ -1,11 +1,10 @@
|
||||
import hek
|
||||
from os.path import exists
|
||||
import requests
|
||||
from time import sleep
|
||||
|
||||
while True:
|
||||
# get ip
|
||||
ip = hek.ipstuff.myip(find="query")
|
||||
req = requests.get("http://ipinfo.io/ip")
|
||||
ip = req.text
|
||||
|
||||
# existe archivo con la antigua ip
|
||||
file_exists = exists("old_ip.txt")
|
||||
@@ -29,4 +28,4 @@ while True:
|
||||
"CQhKyt_TA5uoaJhC_XE/sendMessage?chat_id=3058130&text="
|
||||
"La nueva Ip para su Raspberry es: " + ip
|
||||
)
|
||||
sleep(5*60)
|
||||
sleep(5 * 60)
|
||||
|
||||
@@ -1,28 +1,5 @@
|
||||
certifi==2023.7.22
|
||||
charset-normalizer==3.3.0
|
||||
DateTime==5.2
|
||||
EasyProcess==1.1
|
||||
entrypoint2==1.1
|
||||
hek==0.3.3
|
||||
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
|
||||
urllib3==2.0.7
|
||||
zope.interface==6.1
|
||||
|
||||
Reference in New Issue
Block a user