I have problem downloading my datalog. Already make a coding using python to automatically download the datalog everyday. And the coding works on three sites. But, on the fourth site, using the same code, I got an ERROR 404 not found. But, the files can be download manually, by clicking it.
Already try searching for the problem in the siemens forum but to no avail.
So, if anyone had experience with this problem and have solution please share with me.
here is my coding;
import subprocess
import datetime
import wget
from datetime import date, timedelta
yesterday = date.today() - timedelta(1)
x = yesterday.strftime("%y%m%d")
print ("Downloading F_" + x + ".csv")
datetime_object = datetime.datetime.now()
url = 'http://{PLC_IP}/FileBrowser/Download?Path=/DataLogs/F_' + x + '.csv'
filename = wget.download(url)
filename
Thank you.
I don't really know what is blocking my coding from downloading the datalog in the web server. But, after trying different coding which I found here I got it working.
Hope this help.
EDIT/UPDATE 1:
OPs issue is related to S7-1214 firmware V04.02.01.
Solution below works from firmware version 4.2.
Solution provided by OP Sebastian Geier.
Note: also add the instruction:
path=\Datalogs