Skip to content

Commit

Permalink
[JSON] Données historiques
Browse files Browse the repository at this point in the history
Uniformisation des résultats :
Ajout du nom des séries, de la même manière que pour les données
quotidiennes.
  • Loading branch information
BmdOnline committed Jun 9, 2014
1 parent 8509e12 commit 44d31ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions json.php
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,7 @@ function history() {

// Ajoute les séries
foreach($teleinfo["PERIODES"][$optarif] as $ptec) {
$history[$ptec."_name"] = $series[$ptec];
$history[$ptec."_color"] = $teleinfo["COULEURS"][$ptec];
$history[$ptec."_data"] = $kwh[$ptec];
$history[$ptec."_type"] = $graphConf["typeSerie"];
Expand Down

0 comments on commit 44d31ef

Please sign in to comment.