pimatic / rfcontroljs

nodejs modul with protocol support for different 433mhz switches and weather stations for the RFControl Arduino library.
GNU General Public License v3.0
49 stars 54 forks source link

Adding a protocol to make pimatic able to receive values from arduino #3

Closed Yves911 closed 10 years ago

Yves911 commented 10 years ago

thread about that : https://github.com/pimatic/pimatic/issues/295 all suggestions are welcome !

sweetpi commented 10 years ago

Nice work.

Then I'm finally happy :)

Yves911 commented 10 years ago

Should be ok now :-) I am going to update sender part to have it in sync

sweetpi commented 10 years ago

Nice, I will add a gerneric sensor device to pimatic-homeduino.

Yves911 commented 10 years ago

Super thanks, i have a request about the generic sensor. Let me explain, i want to use the generic sensor to measure gas and electricity consumption, the arduino won't know the current value on the gaz meter, the arduino will send only a number that will increase each time that 1 unit is consumed. That means on pimatic side it could be great to be able to add the value that you receive from the generic device to an initial value. for example if i have on my electricity meter : 12647 kw/h and if i consume 2kw/h, pimatic should display 12649 kw/h

sweetpi commented 10 years ago

So we need a option updateMethod = replace or add ?

Yves911 commented 10 years ago

I would say that i need a method to add what i receive over the air to an existing value. But some other persons would like to replace the values (ie take the value as it comes, or add 0 then ;-) )

sweetpi commented 10 years ago

So you would like to set a baseValue in pimatic and the current value is computed as value = baseValue + message.value on a new message?

Yves911 commented 10 years ago

Yes this is exactly that