Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to enable/disable logging based on a sensor value #138

Open
gigapod opened this issue Nov 13, 2023 · 1 comment
Open

Add the ability to enable/disable logging based on a sensor value #138

gigapod opened this issue Nov 13, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@gigapod
Copy link
Member

gigapod commented Nov 13, 2023

Feature

Add the ability to the framework that allows events to be triggered based on a sensor value. This would all be done via the menu / config system.

Example uses:

  • Only connect/log outputs if the temperature is less that a value
  • Only log if a human presence is detected
  • Stop logging if a measure weight exceeds a specific value ...etc
@gigapod gigapod added the enhancement New feature or request label Nov 13, 2023
@gigapod gigapod self-assigned this Nov 13, 2023
@gigapod
Copy link
Member Author

gigapod commented Nov 13, 2023

FWIW - I have a prototype of this working - this branch - that proves the concept.

In the proto:

  • Value triggers are hard coded/added to the device driver
  • User can set a trigger level (value) and a test condition (>, <, ==, !=)
  • Trigger causes an event to fire -- which could be monitored by the logger.

Future

Ideally, the trigger events are dynamically added (have a "add rule* menu item). This is possible with the current prototype as a foundation for this - BUT a persistence scheme for the rules is needed.

Each rule needs:

  • Parameter it is attached to - parameter name
  • Rule operator - i.e. <, >, ==, !-
  • Trigger Value

This could be serialized into a preference string => "[ , , ][...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant