Project

General

Profile

How to add a new driver

Added by rigolo@gmail.com about 6 years ago

Okee …. diving straight into the deep end of housemon ….

I managed to create what I call a PulseNode … which is just a variation of JCW’s plug for his pulse kWh counter … but now with 8 inputs.
I adapted the homepower sketch to send 8 block of 4 values over the air from a JeeNode USB.

So now I started HouseMon using the DIJN series .. and I managed to find that the logger is working … and that I needed to do something with nodeMaps-local .. (is that describe somewhere? I only found out because of a comment)

So now I figure I need to do something with the drivers …

There is a homepower driver … and that needs to be adjusted to handle the 5 additional inputs.

So I just copied the homepower.coffee file to pulsenode.coffee .. and then started to edit it to match my data comming in ….

So the first line states:

announcer: 16

And every driver has it’s own number … can I “just pick a new number” .. or should this be regulated?
etc etc etc

Is there a clear instruction for creating a new driver? .. or am I getting into new territory here.

Hein


Replies (1)

RE: How to add a new driver - Added by rigolo@gmail.com about 6 years ago

Always good to answer your own questions:
https://github.com/jcw/housemon/blob/develop/docs/drivers.md

So the “announcer” can be determined locally … as long as it is unique

    (1-1/1)