Community
OpenEnergyMonitor

Community

How to get current readings from emonPi with NodeJS AWS SDK

emonpi
Tags: #<Tag:0x00007f1fe1584e88>

(Himanshu Tongya) #1

We are trying to connect with Emonpi with aws sdk but we are not able to connect so is there any reference available that how we can connect to emonpi with aws sdk?


(Chris Valentine) #2

I use a scheduled PHP script on the Pi that uses cURL to read data from the emonCMS and send it to a node.js socket server. The documentation for the emonCMS API is here:
https://emoncms.org/site/api

You could equally request the data from the Pi via a node.js cURL request on the server.