You are not logged in.
Pages: 1
Wrong Date
This python script usually works perfectly, but it is currently displaying the wrong date.
The reason is that the source (Gismeteo) now displays dates in a different way.
Locate the gis-weather > services folder.
Open the gismeteo.py file.
The # day of week, date section should look like this.
#### Marens - 11/11/2026
# day of week, date
day = re.findall('<day.*? date="(.*?)"', source)
day.pop(0)
for i in range(len(day)):
dt1 = datetime.strptime(day[i], '%Y-%m-%d')
day[i] = dt1.strftime('%a')
date = re.findall('<day.*? date=".*?-(.*?)"', source)
for i in range(len(date)):
s = date[i].split('-')
date[i] = s[1]+'.'+s[0]Done.
EDIT
Title.
Last edited by marens (2026-11-11 17:22:50)
If people would know how little brain is ruling the world, they would die of fear.
Offline
Pages: 1