From 3de4a02b0bd166cbbc60500183bc98299470043f Mon Sep 17 00:00:00 2001 From: loradar <56890699+loradar@users.noreply.github.com> Date: Thu, 11 Jun 2020 17:26:03 +1000 Subject: [PATCH] Create Downloader.py --- .../Downloader.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Configuration 3 (Kerlink Wirnet Station)/Downloader.py diff --git a/Configuration 3 (Kerlink Wirnet Station)/Downloader.py b/Configuration 3 (Kerlink Wirnet Station)/Downloader.py new file mode 100644 index 0000000..997fe85 --- /dev/null +++ b/Configuration 3 (Kerlink Wirnet Station)/Downloader.py @@ -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)