can i configure the EmonHub to forward data to my electricity monitor website rather than emoncms if yes ,Is there any documents can helpe me to d that?
»
Archived Forum |
|
about EmonHubSubmitted by lolah on Thu, 26/03/2015 - 14:14can i configure the EmonHub to forward data to my electricity monitor website rather than emoncms if yes ,Is there any documents can helpe me to d that? » |
Re: about EmonHub
Currently emonHub is pretty focused on sending to emonCMS, Because the target hosts requirements can vary so much there isn't a way (yet) to "configure" emonhub to send to non-emoncms sites, but it is encouraged to "modify" or "add to" emonhub.
The data is held in a buffer/queue with each frame being timestamp nodeid val1 val2 val3 etc. an emonhub "reporter" then takes the frames of data and currently bulk sends the frames by wrapping a url and apikey around them to form an acceptable url request and then sent and if receipt is acknowledged the sent data frame are deleted from the buffer.
Each frame's elements can quite easily be rearranged in any order, and/or formatted differently before having a url etc added and sent. So if you know the api requirements of your target you should be able to forge something useful with just a little python.
Here https://github.com/emonhub/emonhub/blob/development/src/emonhub_reporter.py is where most of the work should be done, this has been done by users previously but I don't have any links to hand, searching may help.
If you tell us more about the target and the api requirements we may be able to give you some pointers.
Paul