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

Statistic Parser #5

Merged
merged 16 commits into from
Dec 27, 2022
Merged

Statistic Parser #5

merged 16 commits into from
Dec 27, 2022

Conversation

COM8
Copy link
Member

@COM8 COM8 commented Nov 20, 2022

This PR adds support for parsing product and maintenance statistics.

Product Statistics

Adds CoffeeMaker::request_statistics(CoffeeMaker::StatParseMode mode) to start a request for the coffee maker product statistics.
On success, it will trigger the Joe::productStatisticCountersChangedEventHandler, Joe::maintenanceCountersChangedEventHandler, Joe::maintenancePercentagesChangedEventHandler, ... event.

[ debug  ] [thread 63390]       Read statistics data: 00017C0000000000270000B000000F00FFFF00000300FFFF00001000FFFF00FFFF00FFFF00FFFF00006E00FFFF00FFFF00FFFF00000000000200000100FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00000000000000000000000000FFFF00FFFF00FFFF00FFFF00000000000000000000000000FFFF00FFFF00FFFF00FFFF00000000000000000000000000FFFF00FFFF00FFFF00FFFF0000000000000000000000000000000000000000000000000000000000000000
[  info  ] [thread 63390]       Total number of products: 380
[ debug  ] [thread 63390]       Product Espresso: 39
[ debug  ] [thread 63390]       Product Coffee: 176
[ debug  ] [thread 63390]       Product Cappuccino: 15
[ debug  ] [thread 63390]       Product Espresso Macchiato: 3
[ debug  ] [thread 63390]       Product Milk Foam: 16
[ debug  ] [thread 63390]       Product Hotwater Portion(normal): 110
[ debug  ] [thread 63390]       Product Cafe Barista: 0
[ debug  ] [thread 63390]       Product Barista Lungo: 0
[ debug  ] [thread 63390]       Product Espresso Doppio: 0
[ debug  ] [thread 63390]       Product 2 Espressi: 2
[ debug  ] [thread 63390]       Product 2 Coffee: 1

Maintenance Counters

[ debug  ] [thread 63390]       Read statistics data: 0002000100000011015900070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
[ debug  ] [thread 63390]       Cleaning: 2
[ debug  ] [thread 63390]       FilterChange: 1
[ debug  ] [thread 63390]       Decalc: 0
[ debug  ] [thread 63390]       CappuRinse: 17
[ debug  ] [thread 63390]       CoffeeRinse: 345
[ debug  ] [thread 63390]       CappuClean: 7

Maintenance Percent

Read statistics data: 1EFF460000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
[ debug  ] [thread 63390]       Cleaning: 30%
[ debug  ] [thread 63390]       FilterChange: 255%
[ debug  ] [thread 63390]       Decalc: 70%

@COM8 COM8 added the enhancement New feature or request label Nov 20, 2022
@COM8 COM8 mentioned this pull request Nov 20, 2022
@COM8 COM8 linked an issue Nov 20, 2022 that may be closed by this pull request
@COM8 COM8 changed the title [WIP] Statistic Parser Statistic Parser Dec 27, 2022
@COM8 COM8 merged commit 1b6220f into main Dec 27, 2022
@COM8 COM8 deleted the statistic_parser branch December 27, 2022 13:13
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

Successfully merging this pull request may close these issues.

Statistics via Bluetooth
1 participant