Create Downloader.py

This commit is contained in:
loradar
2020-06-11 17:26:03 +10:00
committed by GitHub
parent 60f1e64e11
commit 3de4a02b0b

View File

@@ -0,0 +1,15 @@
#Please update 'IPAddress' to IP address of the Kerlink gateway
IPAddress='192.168.13.151'
#This python file will download log from kerlink gateway every 300 seconds
import webbrowser, os , sys ,time
urL='https://'+IPAddress+'/download_log.dhtml?type=0'
chrome_path="/usr/lib/chromium-browser/chromium-browser"
i=0
while (1):
webbrowser.get(chrome_path).open_new_tab(urL)
i=i+1
print('new download '+str(i))
time.sleep(300)