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

Status sent to mqtt every 10 minutes? #8

Closed
poblabs opened this issue Jun 27, 2023 · 3 comments
Closed

Status sent to mqtt every 10 minutes? #8

poblabs opened this issue Jun 27, 2023 · 3 comments

Comments

@poblabs
Copy link

poblabs commented Jun 27, 2023

I'm looking for some help finding the setting which sends mqtt status updates every 10 minutes. Where is that setting stored?

Here's my sub showing the 10 minute timestamps:

2023-06-27T08:49:57-0400 : lightning/sensor {"energy":22038,"strike":1,"distance":14,"tuning":499456,"noiseFloorLevel":28,"disturbersPerMinute":2,"watchdogThreshold":2,"wifiSignalStrength":-70}
2023-06-27T08:59:57-0400 : lightning/sensor {"energy":22038,"strike":1,"distance":14,"tuning":499456,"noiseFloorLevel":28,"disturbersPerMinute":2,"watchdogThreshold":2,"wifiSignalStrength":-68}
2023-06-27T09:09:57-0400 : lightning/sensor {"energy":22038,"strike":1,"distance":14,"tuning":499456,"noiseFloorLevel":28,"disturbersPerMinute":2,"watchdogThreshold":2,"wifiSignalStrength":-68}
2023-06-27T09:19:57-0400 : lightning/sensor {"energy":22038,"strike":1,"distance":14,"tuning":499456,"noiseFloorLevel":28,"disturbersPerMinute":2,"watchdogThreshold":2,"wifiSignalStrength":-65}
2023-06-27T09:29:57-0400 : lightning/sensor {"energy":22038,"strike":1,"distance":14,"tuning":499456,"noiseFloorLevel":28,"disturbersPerMinute":2,"watchdogThreshold":2,"wifiSignalStrength":-67}

For more reference, I cleared the detections and it's still reporting.

2023-06-27T09:39:57-0400 : lightning/sensor {"energy":null,"distance":null,"tuning":499456,"noiseFloorLevel":28,"disturbersPerMinute":0,"watchdogThreshold":2,"wifiSignalStrength":-68}
2023-06-27T09:49:57-0400 : lightning/sensor {"energy":null,"distance":null,"tuning":499456,"noiseFloorLevel":28,"disturbersPerMinute":0,"watchdogThreshold":2,"wifiSignalStrength":-68}
2023-06-27T09:59:57-0400 : lightning/sensor {"energy":null,"distance":null,"tuning":499456,"noiseFloorLevel":28,"disturbersPerMinute":0,"watchdogThreshold":2,"wifiSignalStrength":-68}
2023-06-27T10:09:57-0400 : lightning/sensor {"energy":null,"distance":null,"tuning":499456,"noiseFloorLevel":28,"disturbersPerMinute":0,"watchdogThreshold":2,"wifiSignalStrength":-68}
2023-06-27T10:19:57-0400 : lightning/sensor {"energy":null,"distance":null,"tuning":499456,"noiseFloorLevel":28,"disturbersPerMinute":0,"watchdogThreshold":2,"wifiSignalStrength":-68}
@shred
Copy link
Owner

shred commented Jun 27, 2023

It's not really a setting. Kaminari is permanently auto-adjusting the noise floor level. If there is too much noise, the noise floor level is raised. If there was no interfering noise for 10 minutes, the noise floor level is lowered again. All changes to the noise floor levels are reported via MQTT.

The 10 minute setting is stored in AS3935.cpp line 25.

However there seems to be a bug. Your noise floor level has already reached the lowest possible value of 28 µVrms. It is pointless to send the notification if the noise floor level was unchanged.

If you want to remove the notifications after a noise floor level change altogether, you can remove AS3935.cpp lines 125 and 97 (both hasChanged = true;).

@poblabs
Copy link
Author

poblabs commented Jun 27, 2023

I will give that a try, thanks!

@shred
Copy link
Owner

shred commented Jun 28, 2023

Changed the source so no MQTT event is sent if the noise floor level has already reached its minimum/maximum.

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

No branches or pull requests

2 participants