Binary input

Hi

 

I am creating a new input that will be a binary value (either on or off). It is to have the compressor state of my ventilation system in front of temperatures in the same graph.

Do I need a "normal" input or is there something specific for binary input? I mean it is a shame to use a 16bit value to store just a binary value...

 

pb66's picture

Re: Binary input

This is not an area I'm strong in so forgive me if I'm way off the mark, but it interests me as I have a couple of on or off inputs and plan more. Currently I do use a normal input for each as I'm unaware of any other easy method.

Trystans node module allows you to configure inputs differently, aimed at increasing the data size to 24 or 32 bits for longer integers or longs, but I suppose it could be adapted to drop from 2 bytes to 1 byte and then maybe even down to a nibble with some effort. if you wanted less than 4bits per input I think a custom function would also be required in emonCMS's input processing to read as binary, http://openenergymonitor.org/emon/node/3868

If you only have one I think it would definitely be easier to just use a standard input as the rest of the byte(s) would be wasted and there would be no gain.

this thread maybe of interest although a different purpose I think the principle behind it is similar  http://openenergymonitor.org/emon/node/3915

Either way I think the simple answer is yes to a normal input for now as it's not easily done in binary,... yet !

Paul

darrepac's picture

Re: Binary input

Ok, so I will continue to use a normal input

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.