<div dir="ltr">that would be great.... thou i have noted down the node id's so i know what comes from where<div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-01 12:09 GMT+02:00 Damon Hart-Davis <span dir="ltr"><<a href="mailto:dhd@exnet.com" target="_blank">dhd@exnet.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So, here is where my scheme is up to now:<br>
<br>
/**Simple immutable configuration for posting data into OpenEnergyMonitor emonCMS.<br>
* The basic principle is to look for inputs in a tuple of<br>
* (node ID, message type, value name)<br>
* and possibly some other filter flags such as 'authenticated' and input type,<br>
* possibly do a transformation such as scaling or force to numeric from string,<br>
* then push out with a specified node ID and name and value.<br>
*/<br>
<br>
The aim is to allow you to have multiple mappings from whatever you like to whatever you like, essentially.<br>
<br>
Rgds<br>
<br>
Damon<br>
<br>
> On 1 Jun 2015, at 11:05, Bo Herrmannsen <<a href="mailto:bo.herrmannsen@gmail.com">bo.herrmannsen@gmail.com</a>> wrote:<br>
><br>
> via the http method i think only numeric values for the value. but i think it can be with decimals<br>
><br>
> 2015-06-01 12:03 GMT+02:00 Damon Hart-Davis <<a href="mailto:dhd@exnet.com">dhd@exnet.com</a>>:<br>
> Is happening, just not yet.<br>
><br>
> > On 1 Jun 2015, at 10:42, Bo Herrmannsen <<a href="mailto:bo.herrmannsen@gmail.com">bo.herrmannsen@gmail.com</a>> wrote:<br>
> ><br>
> > but ideal there should be a kind of config file where user can change ip and api key<br>
><br>
> BTW, does EMONCMS only expect numeric values, or can it accept strings or arrays or other stuff?<br>
><br>
> Rgds<br>
><br>
> Damon<br>
><br>
> _______________________________________________<br>
> OpenTRV-dev mailing list<br>
> <a href="mailto:OpenTRV-dev@lists.opentrv.org.uk">OpenTRV-dev@lists.opentrv.org.uk</a><br>
> <a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><br>
><br>
> _______________________________________________<br>
> OpenTRV-dev mailing list<br>
> <a href="mailto:OpenTRV-dev@lists.opentrv.org.uk">OpenTRV-dev@lists.opentrv.org.uk</a><br>
> <a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><br>
<br>
_______________________________________________<br>
OpenTRV-dev mailing list<br>
<a href="mailto:OpenTRV-dev@lists.opentrv.org.uk">OpenTRV-dev@lists.opentrv.org.uk</a><br>
<a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><br>
</blockquote></div><br></div>