vercors.me : retrait de Rochechinard, Marignac-en-Diois et Solaure-en-Diois (pas d'autorisation), Méaudre station Gastinel, sources ROMMA et Infoclimat dans À propos
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cette révision appartient à :
1 Parent
b53d00102f
révision
77c05e12ab
7 fichiers modifiés
+25
-31
Aucun fichier ne correspond à votre recherche
@@ -113,8 +113,17 @@ def courbes(db, maintenant, jours=JOURS):
|
||||
return out
|
||||
|
||||
|
||||
# Stations qu'on n'a pas le droit de publier (04/11/2026 : pas d'autorisation) : gardées en base, jamais écrites.
|
||||
NON_PUBLIEES = {"rochechinard", "marignac", "solaure"}
|
||||
|
||||
|
||||
def ecrire(dossier, maintenant, db):
|
||||
cb = courbes(db, maintenant)
|
||||
cb = {k: v for k, v in courbes(db, maintenant).items() if k not in NON_PUBLIEES}
|
||||
for sid in NON_PUBLIEES:
|
||||
try:
|
||||
os.remove(os.path.join(dossier, sid + ".json"))
|
||||
except OSError:
|
||||
pass
|
||||
index = {}
|
||||
for sid, c in cb.items():
|
||||
ecrire_atomique(os.path.join(dossier, sid + ".json"), c)
|
||||
|
||||
@@ -27,8 +27,8 @@ HORS_LIGNE_MIN = 40 # Infoclimat publie toutes les 10 min, avec du retard
|
||||
STATIONS = {
|
||||
"bruyeres": "000T0", "allieres": "000GS", "engins": "000HT", "meaudre": "000IA", "geve": "000IL",
|
||||
"lans": "VP2", "moucherolle": "STATIC0479", "darbounouse": "STATIC0213", "oscence": "000UF",
|
||||
"die": "000PD", "st-julien-q": "000OS", "marignac": "STATIC0203", "archiane": "000ZK",
|
||||
"rochechinard": "STATIC0238", "solaure": "STATIC0323",
|
||||
"die": "000PD", "st-julien-q": "000OS", "archiane": "000ZK",
|
||||
# retirées le 04/11 (pas d'autorisation) : rochechinard STATIC0238, marignac STATIC0203, solaure STATIC0323
|
||||
}
|
||||
|
||||
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur