jack a écrit:As tu bien changé le lien dans le code pour avoir l'url sans le api/v1 et as -tu vérifié que les valeurs que tu souhaites collecter a bien le même nom que dans le script (par exemple pour avoir la production instantatané, je dois chercher la valeur du champ qui se nomme wNow)
En fait dans le plugin l'url est deja bonne de base
'$address_envoy = getArg('adress');
$url = 'http://'.$address_envoy.'/production.json';'
J'ai bien mis le token aussi en dessous
et quand je met l'url en direct j'ai ca en resultat
{"production":[{"type":"inverters","activeCount":0,"readingTime":0,"wNow":0,"whLifetime":0},{"type":"eim","activeCount":1,"measurementType":"production","readingTime":1685595629,"wNow":-0.0,"whLifetime":0.0,"varhLeadLifetime":0.102,"varhLagLifetime":609.356,"vahLifetime":170.108,"rmsCurrent":0.0,"rmsVoltage":239.457,"reactPwr":0.0,"apprntPwr":-0.0,"pwrFactor":0.0,"whToday":0.0,"whLastSevenDays":0.0,"vahToday":13.108,"varhLeadToday":0.102,"varhLagToday":47.356}],"consumption":[{"type":"eim","activeCount":1,"measurementType":"total-consumption","readingTime":1685595629,"wNow":1835.986,"whLifetime":71573.256,"varhLeadLifetime":35399.9,"varhLagLifetime":2449.434,"vahLifetime":91011.753,"rmsCurrent":7.78,"rmsVoltage":239.403,"reactPwr":10.584,"apprntPwr":1862.637,"pwrFactor":0.99,"whToday":2232.256,"whLastSevenDays":46598.256,"vahToday":4373.753,"varhLeadToday":3280.9,"varhLagToday":47.434},{"type":"eim","activeCount":1,"measurementType":"net-consumption","readingTime":1685595629,"wNow":1835.986,"whLifetime":71573.259,"varhLeadLifetime":35399.798,"varhLagLifetime":1840.078,"vahLifetime":91011.753,"rmsCurrent":7.78,"rmsVoltage":239.349,"reactPwr":10.584,"apprntPwr":1858.502,"pwrFactor":0.99,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0}],"storage":[{"type":"acb","activeCount":0,"readingTime":0,"wNow":0,"whNow":0,"state":"idle"}]}