Skip to content

Conversation

@dirixmjm
Copy link
Contributor

@dirixmjm dirixmjm commented Jan 3, 2024

the log addresses each contain 4 hours of data and thus could be added to the history_failed_address multiple times, also when the update cycle rotates faster than the recalls of the failed adresses. Therefore it is good to prevent the addresses inside the array are unique.

Small update to the logging to include mac address for easier tracing.

@dirixmjm dirixmjm requested a review from a team as a code owner January 3, 2024 19:20
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 3, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@codecov
Copy link

codecov bot commented Jan 3, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (da17237) 34.85% compared to head (b90e7fb) 34.84%.

Files Patch % Lines
plugwise_usb/nodes/circle.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #128      +/-   ##
==========================================
- Coverage   34.85%   34.84%   -0.02%     
==========================================
  Files          21       21              
  Lines        2424     2425       +1     
==========================================
  Hits          845      845              
- Misses       1579     1580       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@brefra
Copy link
Contributor

brefra commented Jan 3, 2024

Indeed, a log record contains 4 slots. Each slot consists of a timestamp and the number of energy pulses since the prior timestamp.
Be aware the duration between each slot (timestamp) can be changed/configued. By default it's 1 hour.

The last log record does not have to have all slots populated.

Copy link
Contributor

@bouwew bouwew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok for me.

@bouwew bouwew merged commit d912472 into plugwise:main Jan 4, 2024
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

Successfully merging this pull request may close these issues.

3 participants