[OpenTRV-dev] stats outs

Damon Hart-Davis dhd at exnet.com
Fri May 29 21:35:19 BST 2015


If there are too many values to fit in one frame then available values are rotated through the output, attempting to show changed values as soon as possible.

You have to parse as a JSON map and pick out the values you want, when they are sent.

Rgds

Damon


> On 29 May 2015, at 21:24, Bo Herrmannsen <bo.herrmannsen at gmail.com> wrote:
> 
> hmm
> 
> one of the nodes does not display the valve open all the time
> 
> {"@":"0950","+":2,"B|mV":2771,"T|C16":350,"O":1}
> 
> 
> then some lines later:
> 
> {"@":"0950","+":1,"v|%":0,"tT|C":15,"vC|%":0}
> 
> 
> are there a cartain way the JASON is build so i can make the script match?
> 
> 2015-05-29 22:22 GMT+02:00 Damon Hart-Davis <dhd at exnet.com>:
> Valve open % is only in the JSON stats (starting with ‘{‘), yes.
> 
> Rgds
> 
> Damon
> 
> 
> > On 29 May 2015, at 20:39, Bo Herrmannsen <bo.herrmannsen at gmail.com> wrote:
> >
> > also i might tackle this the wrong way... i want to log also the valve open % and for that i need to look at the json data i get right?
> 
> _______________________________________________
> OpenTRV-dev mailing list
> OpenTRV-dev at lists.opentrv.org.uk
> http://lists.opentrv.org.uk/listinfo/opentrv-dev
> 
> _______________________________________________
> OpenTRV-dev mailing list
> OpenTRV-dev at lists.opentrv.org.uk
> http://lists.opentrv.org.uk/listinfo/opentrv-dev



More information about the OpenTRV-dev mailing list