Contact
@@ -453,9 +454,9 @@ const STATIONS = {
'rousset': {nom:'Col du Rousset – plateau de Beurre', src:'Météo-France', alt:1400, lat:44.8417, lon:5.4217, t:-0.5},
'gresse': {nom:'Gresse-en-Vercors', src:'Météo-France', alt:1220, lat:44.8998, lon:5.5657, t:-3.9},
'st-jean': {nom:'Saint-Jean-en-Royans', src:'Météo-France', alt:308, lat:45.0092, lon:5.2925, t:2.6},
- 'die': {nom:'Die', src:'Infoclimat', alt:400, lat:44.75, lon:5.3667, t:1.9},
- 'st-julien-q': {nom:'Saint-Julien-en-Quint', src:'Infoclimat', alt:574, lat:44.8378, lon:5.2922, t:-0.8},
- 'archiane': {nom:'Cirque d\'Archiane', src:'Infoclimat', alt:747, lat:44.7445, lon:5.5064, t:-2.7},
+ 'die': {nom:'Die', src:'ROMMA', alt:400, lat:44.75, lon:5.3667, t:1.9},
+ 'st-julien-q': {nom:'Saint-Julien-en-Quint', src:'ROMMA', alt:574, lat:44.8378, lon:5.2922, t:-0.8},
+ 'archiane': {nom:'Cirque d\'Archiane', src:'ROMMA', alt:747, lat:44.7445, lon:5.5064, t:-2.7},
};
// Une puce par village ou site ; la 1re station est celle affichée. Ordre = priorité d'affichage.
const GROUPES = [
@@ -479,12 +480,25 @@ const GROUPES = [
const PROPRIO = {lans:'Station Gastinel', moucherolle:'Station Gastinel',
geve:'Station Richard Gastinel', allieres:'Station Richard Gastinel', bruyeres:'Station Richard Gastinel',
darbounouse:'Station Richard Gastinel', oscence:'Station Richard Gastinel', meaudre:'Station Gastinel'};
-const DISPO = ['WeatherLink', 'ROMMA', 'Infoclimat'];
+// Pages publiques de chaque station (vérifiées le 04/11/2026). Pas de lien WeatherLink.
+const ROMMA_ID = {bruyeres:80, allieres:133, engins:139, meaudre:266, oscence:705, darbounouse:762,
+ die:159, 'st-julien-q':158, archiane:212, gresse:131};
+const IC_ID = {bruyeres:'000T0', allieres:'000GS', engins:'000HT', meaudre:'000IA', geve:'000IL',
+ moucherolle:'STATIC0479', darbounouse:'STATIC0213', oscence:'000UF', die:'000PD', 'st-julien-q':'000OS', archiane:'000ZK'};
+const MF_PAGE = {autrans:'autrans/38880', villard:'villard-de-lans/38250', chapelle:'la-chapelle-en-vercors/26420',
+ rousset:'saint-agnan-en-vercors/26420', gresse:'gresse-en-vercors/38650', 'st-jean':'saint-jean-en-royans/26190'};
+function liens(id){
+ const l = []; // Météo-France, puis ROMMA, Infoclimat jamais en premier
+ if (MF_PAGE[id]) l.push(['Météo-France', 'https://meteofrance.com/previsions-meteo-france/' + MF_PAGE[id]]);
+ if (ROMMA_ID[id]) l.push(['ROMMA', 'https://www.romma.fr/station_24.php?id=' + ROMMA_ID[id]]);
+ if (IC_ID[id] && (ROMMA_ID[id] || PROPRIO[id])) l.push(['Infoclimat', 'https://www.infoclimat.fr/observations-meteo/temps-reel/station/' + IC_ID[id] + '.html']);
+ return l.map(([n, u]) => `
${n}`).join(' · ');
+}
function origine(id){
- const s = STATIONS[id], p = PROPRIO[id];
- if (p) return {titre: p, aussi: 'Aussi consultable sur ' + DISPO.join(' · ')};
- const src = s.src || '';
- return {titre: src ? 'Vient ' + (/^[AEIOUÉ]/i.test(src) ? "d'" : 'de ') + src : '', aussi: ''};
+ const s = STATIONS[id], p = PROPRIO[id], l = liens(id);
+ if (p) return {titre: p, aussi: 'WeatherLink' + (l ? ' · ' + l : '')};
+ const src = (ROMMA_ID[id] && !MF_PAGE[id]) ? 'ROMMA' : (s.src || ''); // autorisées par ROMMA (relais technique Infoclimat)
+ return {titre: src ? 'Vient ' + (/^[AEIOUÉ]/i.test(src) ? "d'" : 'de ') + src : '', aussi: l ? 'Voir la station : ' + l : ''};
}
const MASSIF = [5.06, 45.305, 5.835, 44.635]; // ouest, nord, est, sud : tout le Parc (limite IGN)
// Une puce par station : la 1re station d'un groupe porte le nom du village et passe en priorité ;
@@ -1504,6 +1518,8 @@ function dessinerGraphes(){
}
const lire = async f => { try { return await (await fetch(`data/${f}?${Date.now()}`)).json(); } catch (e) { return null; } };
+// stations autorisées par ROMMA (ni Météo-France ni de la famille) : ROMMA est la source citée, Infoclimat n'est qu'un relais
+const viaRomma = id => !!ROMMA_ID[id] && !MF_PAGE[id] && !PROPRIO[id];
const licenceCourte = l => !l ? '' : /NC/.test(l) ? 'CC BY-NC' : /CC BY/.test(l) ? 'CC BY' : '';
async function chargerDonnees(){
const [mf, ic, wl, vp2, sem] = await Promise.all([lire('meteofrance.json'), lire('infoclimat.json'), lire('weatherlink.json'), lire('vp2.json'), lire('semaine/index.json')]);
@@ -1514,7 +1530,7 @@ async function chargerDonnees(){
if (!st || !STATIONS[id]) return;
const enLigne = r && !st.hors_ligne;
Object.assign(STATIONS[id], {t: enLigne ? r.temperature : null, mn: enLigne ? r.temperature_min : null, mx: enLigne ? r.temperature_max : null, vent: enLigne && r.vent_moyen != null ? r.vent_moyen : null, pluie: enLigne && r.pluie_1h != null ? r.pluie_1h : null,
- exemple: false, horsLigne: !enLigne, src: st.source || STATIONS[id].src, licence: licenceCourte(d.metadonnees && d.metadonnees[cle] && d.metadonnees[cle].licence)});
+ exemple: false, horsLigne: !enLigne, ...(viaRomma(id) ? {src: 'ROMMA', licence: ''} : {src: st.source || STATIONS[id].src, licence: licenceCourte(d.metadonnees && d.metadonnees[cle] && d.metadonnees[cle].licence)})});
if (enLigne) { const t = new Date(r.dh_utc.replace(' ', 'T') + 'Z'); if (!dernier || t > dernier) dernier = t; }
};
for (const [cle, id] of Object.entries(POSTES_MF)) poser(mf, cle, id);
diff --git a/maquettes/accueil-carte/modele.html b/maquettes/accueil-carte/modele.html
index 71d4f2c..281f6b1 100644
--- a/maquettes/accueil-carte/modele.html
+++ b/maquettes/accueil-carte/modele.html
@@ -140,6 +140,7 @@ a{color:inherit}
.plein-corps h2{margin:0;font-family:var(--titre);font-weight:600;font-size:26px;line-height:1.15;color:var(--sapin)}
.origine{display:inline-flex;flex-direction:column;vertical-align:middle;margin-left:12px;padding:3px 9px;border:1px solid var(--glacier);background:rgba(110,181,189,.14);color:#2f6f78;font-family:var(--texte,inherit);font-size:12px;font-weight:500;line-height:1.25}
.origine small{font-size:11px;font-weight:400;color:var(--gris)}
+.origine small a{color:#2f6f78;text-decoration:underline;text-underline-offset:2px}
.plein-sous{margin:4px 0 0;font-size:13px;color:var(--gris)}
.plein-val{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid var(--pierre)}
.plein-val b{font-family:var(--titre);font-weight:600;font-size:52px;line-height:1;letter-spacing:-.01em}
@@ -413,7 +414,7 @@ a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(-
Des stations de chez nous, des chiffres d'ici.
-
Données : Météo-France (Licence Ouverte), Infoclimat (CC BY ou CC BY-NC selon la station), WeatherLink, station Gastinel. Fond de carte : IGN, licence ouverte.
+
Données : Météo-France (Licence Ouverte), ROMMA (avec l'accord de l'association), stations de la famille Gastinel (WeatherLink, ROMMA, Infoclimat). Fond de carte : IGN, licence ouverte.
Contact
@@ -453,9 +454,9 @@ const STATIONS = {
'rousset': {nom:'Col du Rousset – plateau de Beurre', src:'Météo-France', alt:1400, lat:44.8417, lon:5.4217, t:-0.5},
'gresse': {nom:'Gresse-en-Vercors', src:'Météo-France', alt:1220, lat:44.8998, lon:5.5657, t:-3.9},
'st-jean': {nom:'Saint-Jean-en-Royans', src:'Météo-France', alt:308, lat:45.0092, lon:5.2925, t:2.6},
- 'die': {nom:'Die', src:'Infoclimat', alt:400, lat:44.75, lon:5.3667, t:1.9},
- 'st-julien-q': {nom:'Saint-Julien-en-Quint', src:'Infoclimat', alt:574, lat:44.8378, lon:5.2922, t:-0.8},
- 'archiane': {nom:'Cirque d\'Archiane', src:'Infoclimat', alt:747, lat:44.7445, lon:5.5064, t:-2.7},
+ 'die': {nom:'Die', src:'ROMMA', alt:400, lat:44.75, lon:5.3667, t:1.9},
+ 'st-julien-q': {nom:'Saint-Julien-en-Quint', src:'ROMMA', alt:574, lat:44.8378, lon:5.2922, t:-0.8},
+ 'archiane': {nom:'Cirque d\'Archiane', src:'ROMMA', alt:747, lat:44.7445, lon:5.5064, t:-2.7},
};
// Une puce par village ou site ; la 1re station est celle affichée. Ordre = priorité d'affichage.
const GROUPES = [
@@ -479,12 +480,25 @@ const GROUPES = [
const PROPRIO = {lans:'Station Gastinel', moucherolle:'Station Gastinel',
geve:'Station Richard Gastinel', allieres:'Station Richard Gastinel', bruyeres:'Station Richard Gastinel',
darbounouse:'Station Richard Gastinel', oscence:'Station Richard Gastinel', meaudre:'Station Gastinel'};
-const DISPO = ['WeatherLink', 'ROMMA', 'Infoclimat'];
+// Pages publiques de chaque station (vérifiées le 04/11/2026). Pas de lien WeatherLink.
+const ROMMA_ID = {bruyeres:80, allieres:133, engins:139, meaudre:266, oscence:705, darbounouse:762,
+ die:159, 'st-julien-q':158, archiane:212, gresse:131};
+const IC_ID = {bruyeres:'000T0', allieres:'000GS', engins:'000HT', meaudre:'000IA', geve:'000IL',
+ moucherolle:'STATIC0479', darbounouse:'STATIC0213', oscence:'000UF', die:'000PD', 'st-julien-q':'000OS', archiane:'000ZK'};
+const MF_PAGE = {autrans:'autrans/38880', villard:'villard-de-lans/38250', chapelle:'la-chapelle-en-vercors/26420',
+ rousset:'saint-agnan-en-vercors/26420', gresse:'gresse-en-vercors/38650', 'st-jean':'saint-jean-en-royans/26190'};
+function liens(id){
+ const l = []; // Météo-France, puis ROMMA, Infoclimat jamais en premier
+ if (MF_PAGE[id]) l.push(['Météo-France', 'https://meteofrance.com/previsions-meteo-france/' + MF_PAGE[id]]);
+ if (ROMMA_ID[id]) l.push(['ROMMA', 'https://www.romma.fr/station_24.php?id=' + ROMMA_ID[id]]);
+ if (IC_ID[id] && (ROMMA_ID[id] || PROPRIO[id])) l.push(['Infoclimat', 'https://www.infoclimat.fr/observations-meteo/temps-reel/station/' + IC_ID[id] + '.html']);
+ return l.map(([n, u]) => `
${n}`).join(' · ');
+}
function origine(id){
- const s = STATIONS[id], p = PROPRIO[id];
- if (p) return {titre: p, aussi: 'Aussi consultable sur ' + DISPO.join(' · ')};
- const src = s.src || '';
- return {titre: src ? 'Vient ' + (/^[AEIOUÉ]/i.test(src) ? "d'" : 'de ') + src : '', aussi: ''};
+ const s = STATIONS[id], p = PROPRIO[id], l = liens(id);
+ if (p) return {titre: p, aussi: 'WeatherLink' + (l ? ' · ' + l : '')};
+ const src = (ROMMA_ID[id] && !MF_PAGE[id]) ? 'ROMMA' : (s.src || ''); // autorisées par ROMMA (relais technique Infoclimat)
+ return {titre: src ? 'Vient ' + (/^[AEIOUÉ]/i.test(src) ? "d'" : 'de ') + src : '', aussi: l ? 'Voir la station : ' + l : ''};
}
const MASSIF = [5.06, 45.305, 5.835, 44.635]; // ouest, nord, est, sud : tout le Parc (limite IGN)
// Une puce par station : la 1re station d'un groupe porte le nom du village et passe en priorité ;
@@ -1504,6 +1518,8 @@ function dessinerGraphes(){
}
const lire = async f => { try { return await (await fetch(`data/${f}?${Date.now()}`)).json(); } catch (e) { return null; } };
+// stations autorisées par ROMMA (ni Météo-France ni de la famille) : ROMMA est la source citée, Infoclimat n'est qu'un relais
+const viaRomma = id => !!ROMMA_ID[id] && !MF_PAGE[id] && !PROPRIO[id];
const licenceCourte = l => !l ? '' : /NC/.test(l) ? 'CC BY-NC' : /CC BY/.test(l) ? 'CC BY' : '';
async function chargerDonnees(){
const [mf, ic, wl, vp2, sem] = await Promise.all([lire('meteofrance.json'), lire('infoclimat.json'), lire('weatherlink.json'), lire('vp2.json'), lire('semaine/index.json')]);
@@ -1514,7 +1530,7 @@ async function chargerDonnees(){
if (!st || !STATIONS[id]) return;
const enLigne = r && !st.hors_ligne;
Object.assign(STATIONS[id], {t: enLigne ? r.temperature : null, mn: enLigne ? r.temperature_min : null, mx: enLigne ? r.temperature_max : null, vent: enLigne && r.vent_moyen != null ? r.vent_moyen : null, pluie: enLigne && r.pluie_1h != null ? r.pluie_1h : null,
- exemple: false, horsLigne: !enLigne, src: st.source || STATIONS[id].src, licence: licenceCourte(d.metadonnees && d.metadonnees[cle] && d.metadonnees[cle].licence)});
+ exemple: false, horsLigne: !enLigne, ...(viaRomma(id) ? {src: 'ROMMA', licence: ''} : {src: st.source || STATIONS[id].src, licence: licenceCourte(d.metadonnees && d.metadonnees[cle] && d.metadonnees[cle].licence)})});
if (enLigne) { const t = new Date(r.dh_utc.replace(' ', 'T') + 'Z'); if (!dernier || t > dernier) dernier = t; }
};
for (const [cle, id] of Object.entries(POSTES_MF)) poser(mf, cle, id);