Skip to content

Commit

Permalink
Merge pull request #105 from Daweyy/zenonline
Browse files Browse the repository at this point in the history
Add EDF Zen Online
  • Loading branch information
JC144 authored Nov 9, 2024
2 parents 5a9f54a + b4f0b46 commit 6c157ec
Show file tree
Hide file tree
Showing 3 changed files with 168 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,8 @@ <h2 class="accordion-header" id="flush-accordionHelper">
<script src="./scripts/tarifs/edf/zenWeekEndHC.js"></script>
<script src="./scripts/tarifs/edf/zenWeekEndPlus.js"></script>
<script src="./scripts/tarifs/edf/zenWeekEndPlusHC.js"></script>
<script src="./scripts/tarifs/edf/zenOnline.js"></script>
<script src="./scripts/tarifs/edf/zenOnlineHC.js"></script>

<!-- Désactivé en attente de mise à jour-->
<!--
Expand Down
85 changes: 85 additions & 0 deletions scripts/tarifs/edf/zenOnline.js
Original file line number Diff line number Diff line change
@@ -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;
}
}
);

81 changes: 81 additions & 0 deletions scripts/tarifs/edf/zenOnlineHC.js
Original file line number Diff line number Diff line change
@@ -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;
}
});

0 comments on commit 6c157ec

Please sign in to comment.