brunold a écrit:Bonjour,
comment fait-on avec ce script quand on a 2 tranches horaires d'heures creuses ?
J'ai de 01:00 à 07:00 et de 12:30 à 14:30 ?
Merci.
<?xml version="1.0" encoding="ISO-8859-1"?>
<root><cached>1</cached><customer><customer_id>-xxxxxx</customer_id>
<usage_points><usage_points><usage_point><usage_point_id>xxxxxxxxx</usage_point_id>
<usage_point_status>com</usage_point_status>
<meter_type>AMM</meter_type>
</usage_point>
<contracts><segment>C5</segment>
<subscribed_power>9 kVA</subscribed_power>
<distribution_tariff>BTINFMUDT</distribution_tariff>
<last_activation_date>2016-12-15+01:00</last_activation_date>
<offpeak_hours>HC (22H34-6H34)</offpeak_hours>
<contract_type>Contrat Protocole501</contract_type>
<contract_status>SERVC</contract_status>
<last_distribution_tariff_change_date>2016-12-15+01:00</last_distribution_tariff_change_date>
</contracts>
</usage_points>
</usage_points>
</customer>
<usage_point><usage_points><meter_reading><usage_point_id>xxxxxxx</usage_point_id>
<start>2020-10-04</start>
<end>2020-10-05</end>
<reading_type><measurement_kind>energy</measurement_kind>
<interval_length>86400</interval_length>
<unit>Wh</unit>
<aggregate>sum</aggregate>
</reading_type>
<interval_reading><usage_points><rank>1</rank>
<value>37418</value>
</usage_points>
</interval_reading>
</meter_reading>
</usage_points>
</usage_point>
<usage_point><usage_points><meter_reading><usage_point_id>xxxxx</usage_point_id>
<start>2020-10-04</start>
<end>2020-10-05</end>
<reading_type><measurement_kind>power</measurement_kind>
<interval_length>1800</interval_length>
<unit>W</unit>
<aggregate>average</aggregate>
</reading_type>
<interval_reading><usage_points><rank>1</rank>
<value>3268</value>
</usage_points>
<usage_points><rank>2</rank>
<value>976</value>
</usage_points>
<usage_points><rank>3</rank>
<value>1160</value>
</usage_points>
<usage_points><rank>4</rank>
<value>3028</value>
</usage_points>
<usage_points><rank>5</rank>
<value>2742</value>
</usage_points>
<usage_points><rank>6</rank>
<value>602</value>
</usage_points>
<usage_points><rank>7</rank>
<value>552</value>
</usage_points>
<usage_points><rank>8</rank>
<value>468</value>
</usage_points>
<usage_points><rank>9</rank>
<value>596</value>
</usage_points>
<usage_points><rank>10</rank>
<value>620</value>
</usage_points>
<usage_points><rank>11</rank>
<value>630</value>
</usage_points>
<usage_points><rank>12</rank>
<value>568</value>
</usage_points>
<usage_points><rank>13</rank>
<value>1944</value>
</usage_points>
<usage_points><rank>14</rank>
<value>568</value>
</usage_points>
<usage_points><rank>15</rank>
<value>1132</value>
</usage_points>
<usage_points><rank>16</rank>
<value>894</value>
</usage_points>
<usage_points><rank>17</rank>
<value>900</value>
</usage_points>
<usage_points><rank>18</rank>
<value>864</value>
</usage_points>
<usage_points><rank>19</rank>
<value>1024</value>
</usage_points>
<usage_points><rank>20</rank>
<value>1146</value>
</usage_points>
<usage_points><rank>21</rank>
<value>1102</value>
</usage_points>
<usage_points><rank>22</rank>
<value>3286</value>
</usage_points>
<usage_points><rank>23</rank>
<value>3622</value>
</usage_points>
<usage_points><rank>24</rank>
<value>3844</value>
</usage_points>
<usage_points><rank>25</rank>
<value>1632</value>
</usage_points>
<usage_points><rank>26</rank>
<value>1648</value>
</usage_points>
<usage_points><rank>27</rank>
<value>1706</value>
</usage_points>
<usage_points><rank>28</rank>
<value>1844</value>
</usage_points>
<usage_points><rank>29</rank>
<value>1950</value>
</usage_points>
<usage_points><rank>30</rank>
<value>1336</value>
</usage_points>
<usage_points><rank>31</rank>
<value>1248</value>
</usage_points>
<usage_points><rank>32</rank>
<value>1246</value>
</usage_points>
<usage_points><rank>33</rank>
<value>1264</value>
</usage_points>
<usage_points><rank>34</rank>
<value>1206</value>
</usage_points>
<usage_points><rank>35</rank>
<value>1490</value>
</usage_points>
<usage_points><rank>36</rank>
<value>1560</value>
</usage_points>
<usage_points><rank>37</rank>
<value>1562</value>
</usage_points>
<usage_points><rank>38</rank>
<value>1564</value>
</usage_points>
<usage_points><rank>39</rank>
<value>1416</value>
</usage_points>
<usage_points><rank>40</rank>
<value>1732</value>
</usage_points>
<usage_points><rank>41</rank>
<value>1502</value>
</usage_points>
<usage_points><rank>42</rank>
<value>1436</value>
</usage_points>
<usage_points><rank>43</rank>
<value>1522</value>
</usage_points>
<usage_points><rank>44</rank>
<value>1134</value>
</usage_points>
<usage_points><rank>45</rank>
<value>918</value>
</usage_points>
<usage_points><rank>46</rank>
<value>2566</value>
</usage_points>
<usage_points><rank>47</rank>
<value>2862</value>
</usage_points>
<usage_points><rank>48</rank>
<value>2956</value>
</usage_points>
</interval_reading>
</meter_reading>
</usage_points>
</usage_point>
<debug>
daily_consumption_controller_module_id=,
daily_consumption_count=0,
consumption_load_curve_controller_module_id=,
consumption_date=2020-10-04,
consumption_load_count=0
</debug>
</root>
Scolette a écrit:Bonjour,
J'ai installé le plugin hier mais aucune information remonte sur mon dashboard.
Y-a t'il une manipulation particulière à faire ?
marvin2k a écrit:Hello hello,
Je viens d'installer le Pluggin de la Team !! ENEDIS
Malheureusement une seule valeur remonte est il s'agit de celle de l'intervalle 48
Voici ce que me renvoie le XML dans le mode tester
- Code : Tout sélectionner
<?xml version="1.0" encoding="ISO-8859-1"?>
<root><cached>1</cached><customer><customer_id>-xxxxxx</customer_id>
<usage_points><usage_points><usage_point><usage_point_id>xxxxxxxxx</usage_point_id>
<usage_point_status>com</usage_point_status>
<meter_type>AMM</meter_type>
</usage_point>
<contracts><segment>C5</segment>
<subscribed_power>9 kVA</subscribed_power>
<distribution_tariff>BTINFMUDT</distribution_tariff>
<last_activation_date>2016-12-15+01:00</last_activation_date>
<offpeak_hours>HC (22H34-6H34)</offpeak_hours>
<contract_type>Contrat Protocole501</contract_type>
<contract_status>SERVC</contract_status>
<last_distribution_tariff_change_date>2016-12-15+01:00</last_distribution_tariff_change_date>
</contracts>
</usage_points>
</usage_points>
</customer>
<usage_point><usage_points><meter_reading><usage_point_id>xxxxxxx</usage_point_id>
<start>2020-10-04</start>
<end>2020-10-05</end>
<reading_type><measurement_kind>energy</measurement_kind>
<interval_length>86400</interval_length>
<unit>Wh</unit>
<aggregate>sum</aggregate>
</reading_type>
<interval_reading><usage_points><rank>1</rank>
<value>37418</value>
</usage_points>
</interval_reading>
</meter_reading>
</usage_points>
</usage_point>
<usage_point><usage_points><meter_reading><usage_point_id>xxxxx</usage_point_id>
<start>2020-10-04</start>
<end>2020-10-05</end>
<reading_type><measurement_kind>power</measurement_kind>
<interval_length>1800</interval_length>
<unit>W</unit>
<aggregate>average</aggregate>
</reading_type>
<interval_reading><usage_points><rank>1</rank>
<value>3268</value>
</usage_points>
<usage_points><rank>2</rank>
<value>976</value>
</usage_points>
<usage_points><rank>3</rank>
<value>1160</value>
</usage_points>
<usage_points><rank>4</rank>
<value>3028</value>
</usage_points>
<usage_points><rank>5</rank>
<value>2742</value>
</usage_points>
<usage_points><rank>6</rank>
<value>602</value>
</usage_points>
<usage_points><rank>7</rank>
<value>552</value>
</usage_points>
<usage_points><rank>8</rank>
<value>468</value>
</usage_points>
<usage_points><rank>9</rank>
<value>596</value>
</usage_points>
<usage_points><rank>10</rank>
<value>620</value>
</usage_points>
<usage_points><rank>11</rank>
<value>630</value>
</usage_points>
<usage_points><rank>12</rank>
<value>568</value>
</usage_points>
<usage_points><rank>13</rank>
<value>1944</value>
</usage_points>
<usage_points><rank>14</rank>
<value>568</value>
</usage_points>
<usage_points><rank>15</rank>
<value>1132</value>
</usage_points>
<usage_points><rank>16</rank>
<value>894</value>
</usage_points>
<usage_points><rank>17</rank>
<value>900</value>
</usage_points>
<usage_points><rank>18</rank>
<value>864</value>
</usage_points>
<usage_points><rank>19</rank>
<value>1024</value>
</usage_points>
<usage_points><rank>20</rank>
<value>1146</value>
</usage_points>
<usage_points><rank>21</rank>
<value>1102</value>
</usage_points>
<usage_points><rank>22</rank>
<value>3286</value>
</usage_points>
<usage_points><rank>23</rank>
<value>3622</value>
</usage_points>
<usage_points><rank>24</rank>
<value>3844</value>
</usage_points>
<usage_points><rank>25</rank>
<value>1632</value>
</usage_points>
<usage_points><rank>26</rank>
<value>1648</value>
</usage_points>
<usage_points><rank>27</rank>
<value>1706</value>
</usage_points>
<usage_points><rank>28</rank>
<value>1844</value>
</usage_points>
<usage_points><rank>29</rank>
<value>1950</value>
</usage_points>
<usage_points><rank>30</rank>
<value>1336</value>
</usage_points>
<usage_points><rank>31</rank>
<value>1248</value>
</usage_points>
<usage_points><rank>32</rank>
<value>1246</value>
</usage_points>
<usage_points><rank>33</rank>
<value>1264</value>
</usage_points>
<usage_points><rank>34</rank>
<value>1206</value>
</usage_points>
<usage_points><rank>35</rank>
<value>1490</value>
</usage_points>
<usage_points><rank>36</rank>
<value>1560</value>
</usage_points>
<usage_points><rank>37</rank>
<value>1562</value>
</usage_points>
<usage_points><rank>38</rank>
<value>1564</value>
</usage_points>
<usage_points><rank>39</rank>
<value>1416</value>
</usage_points>
<usage_points><rank>40</rank>
<value>1732</value>
</usage_points>
<usage_points><rank>41</rank>
<value>1502</value>
</usage_points>
<usage_points><rank>42</rank>
<value>1436</value>
</usage_points>
<usage_points><rank>43</rank>
<value>1522</value>
</usage_points>
<usage_points><rank>44</rank>
<value>1134</value>
</usage_points>
<usage_points><rank>45</rank>
<value>918</value>
</usage_points>
<usage_points><rank>46</rank>
<value>2566</value>
</usage_points>
<usage_points><rank>47</rank>
<value>2862</value>
</usage_points>
<usage_points><rank>48</rank>
<value>2956</value>
</usage_points>
</interval_reading>
</meter_reading>
</usage_points>
</usage_point>
<debug>
daily_consumption_controller_module_id=,
daily_consumption_count=0,
consumption_load_curve_controller_module_id=,
consumption_date=2020-10-04,
consumption_load_count=0
</debug>
</root>
La valeur remontée est celle DU RANK 48 soit 2956
Une idée ???
brunold a écrit:Bonjour,
comment fait-on avec ce script quand on a 2 tranches horaires d'heures creuses ?
J'ai de 01:00 à 07:00 et de 12:30 à 14:30 ?
Merci.
Scolette a écrit:Bonjour,
J'ai installé le plugin hier mais aucune information remonte sur mon dashboard.
Y-a t'il une manipulation particulière à faire ?
Alphonse Magova a écrit:brunold a écrit:Bonjour,
comment fait-on avec ce script quand on a 2 tranches horaires d'heures creuses ?
J'ai de 01:00 à 07:00 et de 12:30 à 14:30 ?
Merci.
Même question pour moi.
borazy a écrit:Alphonse Magova a écrit:brunold a écrit:Bonjour,
comment fait-on avec ce script quand on a 2 tranches horaires d'heures creuses ?
J'ai de 01:00 à 07:00 et de 12:30 à 14:30 ?
Merci.
Même question pour moi.
Pareil pour moi... vous avez réussi ?
borazy a écrit:L'officiel de la team je crois bien
brunold a écrit:Bonjour,
comment fait-on avec ce script quand on a 2 tranches horaires d'heures creuses ?
J'ai de 01:00 à 07:00 et de 12:30 à 14:30 ?
Merci.
opa95 a écrit:Bonjour
Pour avoir les heures creuses, on peut utiliser le XPath en mettant
sum(//usage_points[position()<15]/value)-sum(//usage_points[position()<3]/value)+sum(//usage_points[position()<30]/value)-sum(//usage_points[position()<26]/value)
Le 15 correspond à la fin de la première plage (2*h+1=2*7+1=15)
Le 3 correspond au début de la première plage (2*h+1=2*1+1=3)
Le 30 correspond à la fin de la seconde plage (2*h+1=2*14.5+1=30)
Le 26 correspond au début de la seconde plage (2*h+1=2*12.5+1=26)
Pour avoir les heures pleines,
(//value)-(sum(//usage_points[position()<15]/value)-sum(//usage_points[position()<3]/value)+sum(//usage_points[position()<30]/value)-sum(//usage_points[position()<26]/value))
ou bien modifier le script pour prévoir 1 ou 2 plages; c'est plus joli, je n'ai pas regardé mais ça ne doit pas être mortel
<error>ERR_STM.consulterCdc</error>
<error_description>Grandeur physique non autorisée</error_description>
<debug> daily_consumption_controller_module_id=, daily_consumption_count=0, consumption_load_curve_controller_module_id=, consumption_date=, consumption_load_count=0 </debug>
BeFree a écrit:Bonjour,
J'ai installé depuis quelques jours le plugins, j'ai lié celui-ci avec mon compte Enedis mais je n'ai aucunes données qui remontent.
En effectuant un test via le bouton tester que ce soit sur la partie Consommation ou Puissance souscrite j'obtiens l'erreur suivante
- Code : Tout sélectionner
<error>ERR_STM.consulterCdc</error>
<error_description>Grandeur physique non autorisée</error_description>
<debug> daily_consumption_controller_module_id=, daily_consumption_count=0, consumption_load_curve_controller_module_id=, consumption_date=, consumption_load_count=0 </debug>
Je n'ai pas trouvé sur ce fil de réponse à cette erreur.
<root>
<cached>1</cached>
<customer>
<customer_id>-112698XXXX</customer_id>
<usage_points>
<usage_points>
<usage_point>
<usage_point_id>02457308XXXXXX</usage_point_id>
<usage_point_status>com</usage_point_status>
<meter_type>AMM</meter_type>
</usage_point>
<contracts>
<segment>C5</segment>
<subscribed_power>6 kVA</subscribed_power>
<distribution_tariff>BTINFCUST</distribution_tariff>
<last_activation_date>2019-10-14+02:00</last_activation_date>
<contract_type>Contrat GRD-F</contract_type>
<contract_status>SERVC</contract_status>
<last_distribution_tariff_change_date>2019-10-14+02:00</last_distribution_tariff_change_date>
</contracts>
</usage_points>
</usage_points>
</customer>
<usage_point>
<usage_points>
<meter_reading>
<usage_point_id>02457308XXXXXX</usage_point_id>
<start>2021-01-17</start>
<end>2021-01-18</end>
<reading_type>
<measurement_kind>energy</measurement_kind>
<interval_length>86400</interval_length>
<unit>Wh</unit>
<aggregate>sum</aggregate>
</reading_type>
<interval_reading>
<usage_points>
<rank>1</rank>
<value>25419</value>
</usage_points>
</interval_reading>
</meter_reading>
</usage_points>
</usage_point>
<error>ERR_STM.consulterCdc</error>
<error_description>Grandeur physique non autorisée</error_description>
<debug> daily_consumption_controller_module_id=, daily_consumption_count=0, consumption_load_curve_controller_module_id=, consumption_date=, consumption_load_count=0 </debug>
</root>
BeFree a écrit:Bonjour Dommarion,
J'ai bien autorisé le partage de données depuis le site Enedis (j'ai même reçu un email de leur part m'indiquant ce partage avec Eedomus).
La variable 1 contient bien mon PDL. Ci-dessous le code complet (j'ai juste caché une partie de mon PDL et de mon Customer ID.
- Code : Tout sélectionner
<root>
<cached>1</cached>
<customer>
<customer_id>-112698XXXX</customer_id>
<usage_points><usage_points><usage_point> <usage_point_id>02457308XXXXXX</usage_point_id>
<usage_point_status>com</usage_point_status><meter_type>AMM</meter_type></usage_point>
<contracts><segment>C5</segment>
<subscribed_power>6 kVA</subscribed_power>
<distribution_tariff>BTINFCUST</distribution_tariff>
<last_activation_date>2019-10-14+02:00</last_activation_date>
<contract_type>Contrat GRD-F</contract_type>
<contract_status>SERVC</contract_status>
<last_distribution_tariff_change_date>2019-10-14+02:00</last_distribution_tariff_change_date>
</contracts></usage_points></usage_points></customer><usage_point><usage_points><meter_reading><usage_point_id>02457308XXXXXX</usage_point_id>
<start>2021-01-17</start><end>2021-01-18</end>
<reading_type><measurement_kind>energy</measurement_kind><interval_length>86400</interval_length><unit>Wh</unit>
<aggregate>sum</aggregate></reading_type><interval_reading><usage_points><rank>1</rank>
<value>25419</value>
</usage_points></interval_reading></meter_reading></usage_points></usage_point>
<error>ERR_STM.consulterCdc</error>
<error_description>Grandeur physique non autorisée</error_description>
<debug> daily_consumption_controller_module_id=, daily_consumption_count=0, consumption_load_curve_controller_module_id=, consumption_date=, consumption_load_count=0 </debug>
</root>
A priori certaines informations remontent bien (puissance souscrite, date d'abonnement) mais pourtant je n'ai aucunes données qui s'affichent dans le widget et toujours ce message d'erreur en fin de code XML).
Merci à vous.
Retour vers Nouveautés & Annonces
Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 5 invité(s)