diff --git a/Mesures/energy/transfo_courant_clip_1p_1/0_http_post.lua b/Mesures/energy/transfo_courant_clip_1p_1/0_http_post.lua index ea3fc2f..991ebc6 100644 --- a/Mesures/energy/transfo_courant_clip_1p_1/0_http_post.lua +++ b/Mesures/energy/transfo_courant_clip_1p_1/0_http_post.lua @@ -1,7 +1,7 @@ -- Petit script pour envoyer en // es valeurs sur un serveur WEB (InfluxDB) -- via un http POST à travers un FIFO -if verbose then print("\n 0_http_post.lua zf200607.1611 \n") end +if verbose then print("\n 0_http_post.lua zf200607.1639 \n") end t_zurl={} t_zarg={} f_zpost=false @@ -11,7 +11,9 @@ end function zpost() f_zpost=true zurl=t_zurl[1] zarg=t_zarg[1] - zarg=zarg.."\n".."energy,value=nb_waiting_"..yellow_id.." val="..#t_zurl + zarg=zarg.."\n".."energy,value=nb_waiting_"..yellow_id.." val="..#t_zurl + zarg=zarg.."\n".."energy,memory=zpost_"..yellow_id.." ram="..node.heap() + if verbose then print("zurl: "..zurl) end if verbose then print("zarg: "..zarg) end http.post(zurl, 'Content-Type: application/x-www-form-urlencoded\r\n', zarg, function(code, data)