From bf9857bb252f753f0b56b88a340363d1987fe760 Mon Sep 17 00:00:00 2001 From: Dawey Date: Tue, 5 Nov 2024 23:02:14 +0100 Subject: [PATCH 1/3] Add Zen Online Base --- scripts/tarifs/edf/zenOnline.js | 85 +++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 scripts/tarifs/edf/zenOnline.js diff --git a/scripts/tarifs/edf/zenOnline.js b/scripts/tarifs/edf/zenOnline.js new file mode 100644 index 0000000..5fbce0f --- /dev/null +++ b/scripts/tarifs/edf/zenOnline.js @@ -0,0 +1,85 @@ +abonnements.push( + { + name: "EDF - Zen Online", + offer_type: "Marché", + lastUpdate: "2024-11-01", + isCommunity: false, + subscription_url: "https://particulier.edf.fr/fr/accueil/electricite-gaz/offres-electricite/offres-marche/electricite-weekend/zen-online.html", + price_url: "https://particulier.edf.fr/content/dam/2-Actifs/Documents/Offres/grille-prix-zen-online.pdf", + prices: [{ + puissance: 3, + abonnement: 9.69, + bleu: { + prixKwhHC: 22.87 + } + }, + { + puissance: 6, + abonnement: 12.68, + bleu: { + prixKwhHC: 22.87 + } + }, + { + puissance: 9, + abonnement: 16.18, + bleu: { + prixKwhHC: 22.87 + } + }, + { + puissance: 12, + abonnement: 19.55, + bleu: { + prixKwhHC: 22.87 + } + }, + { + puissance: 15, + abonnement: 22.70, + bleu: { + prixKwhHC: 22.87 + } + }, + { + puissance: 18, + abonnement: 25.83, + bleu: { + prixKwhHC: 22.87 + } + }, + { + puissance: 24, + abonnement: 32.74, + bleu: { + prixKwhHC: 22.87 + } + }, + { + puissance: 30, + abonnement: 38.66, + bleu: { + prixKwhHC: 22.87 + } + }, + { + puissance: 36, + abonnement: 44.43, + bleu: { + prixKwhHC: 22.87 + } + }], + hc: [{ + start: { hour: 0, minute: 0 }, + end: { hour: 24, minute: 0 } + }], + hasHCCustom: false, + hasSpecialDaysCustom: false, + specialDays: [], + getDayType: function (day) { + let dayType = "bleu"; + return dayType; + } + } +); + From aca9c891d9cdb7d4c689b74fc718c377bba70604 Mon Sep 17 00:00:00 2001 From: Dawey Date: Tue, 5 Nov 2024 23:02:22 +0100 Subject: [PATCH 2/3] Add Zen Online HC --- scripts/tarifs/edf/zenOnlineHC.js | 81 +++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 scripts/tarifs/edf/zenOnlineHC.js diff --git a/scripts/tarifs/edf/zenOnlineHC.js b/scripts/tarifs/edf/zenOnlineHC.js new file mode 100644 index 0000000..779e50a --- /dev/null +++ b/scripts/tarifs/edf/zenOnlineHC.js @@ -0,0 +1,81 @@ +abonnements.push({ + name: "EDF - Zen Online Heures Creuses", + offer_type: "Marché", + lastUpdate: "2024-11-01", + isCommunity: false, + subscription_url: "https://particulier.edf.fr/fr/accueil/electricite-gaz/offres-electricite/offres-marche/electricite-weekend/zen-online.html", + price_url: "https://particulier.edf.fr/content/dam/2-Actifs/Documents/Offres/grille-prix-zen-online.pdf", + prices: [ + { + puissance: 6, + abonnement: 13.09, + bleu: { + prixKwhHP: 24.53, + prixKwhHC: 18.84 + } + }, + { + puissance: 9, + abonnement: 16.82, + bleu: { + prixKwhHP: 24.53, + prixKwhHC: 18.84 + } + }, + { + puissance: 12, + abonnement: 20.28, + bleu: { + prixKwhHP: 24.53, + prixKwhHC: 18.84 + } + }, + { + puissance: 15, + abonnement: 23.57, + bleu: { + prixKwhHP: 24.53, + prixKwhHC: 18.84 + } + }, + { + puissance: 18, + abonnement: 26.84, + bleu: { + prixKwhHP: 24.53, + prixKwhHC: 18.84 + } + }, + { + puissance: 24, + abonnement: 32.92, + bleu: { + prixKwhHP: 24.53, + prixKwhHC: 18.84 + } + }, + { + puissance: 30, + abonnement: 38.97, + bleu: { + prixKwhHP: 24.53, + prixKwhHC: 18.84 + } + }, + { + puissance: 36, + abonnement: 45.08, + bleu: { + prixKwhHP: 24.53, + prixKwhHC: 18.84 + } + }], + hc: [], + hasHCCustom: true, + hasSpecialDaysCustom: false, + specialDays: [], + getDayType: function (day) { + let dayType = "bleu"; + return dayType; + } +}); \ No newline at end of file From b4f0b46dfe7670360d3c7f096970906e8ca36cd3 Mon Sep 17 00:00:00 2001 From: Dawey Date: Tue, 5 Nov 2024 23:05:27 +0100 Subject: [PATCH 3/3] Load Zen Online offers --- index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.html b/index.html index 106e465..3a4ae13 100644 --- a/index.html +++ b/index.html @@ -569,6 +569,8 @@

+ +