KEPWare KEPServerX

Hi There,

Hoping for a code god’s help. I am trying to integrate KEPWare KEPServerEx’s IOT Gateway plugin with Emoncms.

I already have a fully functional dashboard at https://energy.aesengr.com however it seems that the input API only accepts json data via url parameters. Is there anyway to adjust the emoncms code to digest the json payload within the body of a PUT request?

Here is the documentation for the IOT Gateway.

https://www.kepware.com/getattachment/96bdb7bb-4f9a-4cfe-be30-ef048d16dd83/iot-gateway-manual.pdf

Here is an example of the request in RESTLet saved as a cURL
curl -i -X POST
-H “Content-Type:application/json”
-H “Authorization:Bearer 0d28b0aac36b3c17b39c4ea232c16083”
-d
‘data={power1:100,power2:200,power3:300}’
https://energy.aesengr.com/input/post?node=1

Any help would be greatly appreciated!