heubeck / samler

SaMLer - Smart Meter data collector at the edge
GNU General Public License v3.0
5 stars 3 forks source link

MultiSensor support #7

Closed seehase closed 1 year ago

seehase commented 1 year ago

Please support of more than one sensor I have two powermeter,

I want to have values of both (or more) stored in one database/table Values must be identified by powermeter id, not by USB Port, so if the powermeter sends an identifier take this as a key Sensor switch (usb port switch) should result in the same results in the DB

heubeck commented 1 year ago

Don't see a reason for this. It would complicate codebase (that makes us of singletons) and also complicate configuration.

One can simply run two instances, writing to different database tables, joined by a view, for a unified access.

Happy to keep this issue, maybe there are other pro arguments.

seehase commented 1 year ago

at least I need an powermeter identifier so that both instances can use the same db/table

seehase commented 1 year ago

can be closed, a single instance per sensor is working fine