Skip to content

Commit

Permalink
new URL
Browse files Browse the repository at this point in the history
  • Loading branch information
s0nik42 committed Jan 6, 2025
1 parent 5c1d429 commit 97f0175
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions veolia-idf-domoticz.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ def print(self, string="", st=None, end=None):
# Object that retrieve the historical data from Veolia website
################################################################################
class VeoliaCrawler:
site_url = "https://espace-client.vedif.eau.veolia.fr/s/login/"
# site_url = "https://espace-client.vedif.eau.veolia.fr/s/login/"
site_url = "https://connexion.leaudiledefrance.fr/espace-particuliers/s/login/"
download_filename = "historique_jours_litres.csv"

def __init__(self, config_dict, super_print=None, debug=False):
Expand Down Expand Up @@ -1072,7 +1073,7 @@ def update_device(self, csv_file):
# Verify data integrity :
d1 = datetime.strptime(date, "%Y-%m-%d")
d2 = datetime.now()
if abs((d2 - d1).days) > 30:
if abs((d2 - d1).days) > 300:
raise RuntimeError(
"File contains too old data (monthly?!?): "
+ str(row)
Expand Down

0 comments on commit 97f0175

Please sign in to comment.