# ESP32 - Post to Emoncms using ArduinoJson

**URL:** <https://community.openenergymonitor.org/t/esp32-post-to-emoncms-using-arduinojson/21502>\
**Category:** emonESP\
**Created:** [6 October 2022 09:58 UTC](https://community.openenergymonitor.org/t/esp32-post-to-emoncms-using-arduinojson/21502 "2022-10-06T09:58:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AJTaylor79](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/a/e47c2d/32.png) [@AJTaylor79](https://community.openenergymonitor.org/u/AJTaylor79)\
**Post date:** [6 October 2022 09:58 UTC](https://community.openenergymonitor.org/t/esp32-post-to-emoncms-using-arduinojson/21502/1 "2022-10-06T09:58:47Z")

</div>

I am trying to work out how to use ArduinoJson (using Arduino IDE) on my ESP32 to post online to Emoncms, has anyone done anything similar?

The ideal would be to have a variable to store the weblink, another variable to store the API Key, build the Json and then merge them all together to post to the website.

Can anyone point me in the right direction? Thanks

---

<div class="post-metadata">

**Author:** ![kluszczyn](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/kluszczyn/32/11335_2.png) [@kluszczyn](https://community.openenergymonitor.org/u/kluszczyn)\
**Post date:** [1 December 2022 18:37 UTC](https://community.openenergymonitor.org/t/esp32-post-to-emoncms-using-arduinojson/21502/2 "2022-12-01T18:37:32Z")

</div>

You may check [GitHub - openenergymonitor/EmonESP: ESP8266 WIFI serial to emoncms link](https://github.com/openenergymonitor/EmonESP/) for some ideas. Or go with [esphome.io](http://esphome.io) with http component [HTTP Request — ESPHome](https://esphome.io/components/http_request.html?highlight=http#post-body-in-json-format-syntax-1)

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [1 December 2022 21:49 UTC](https://community.openenergymonitor.org/t/esp32-post-to-emoncms-using-arduinojson/21502/3 "2022-12-01T21:49:12Z")

</div>

I have started an ESPHome component to send data to emoncms, but it is focused on the TX4. Where is your data coming from and are you sending it to [emoncms.org](http://emoncms.org), or a local emoncms setup?

> [@kluszczyn](#):
>
> Or go with [esphome.io](http://esphome.io) with http component

The http component doesn’t readily lend itself to the data format required for emoncms. It needs a Lambda as a minimum.
