Skip to content

Commit

Permalink
Merge pull request #145 from MXCzkEVM/big_upgrade
Browse files Browse the repository at this point in the history
Big upgrade
  • Loading branch information
reasje authored Jan 7, 2025
2 parents 98314dc + f027eae commit 492079e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ class BlueberryRingBackgroundNotificationsUseCase extends ReactiveUseCase {
// Get spteps data from cache and compare
// If steps is below a certain number then show a
// Below 5000
final todaysData = data.where((e) => DateUtils.isDateOnToday(e.dateTime));
final todaysData = data.where((e) => MXCTime.isDateOnToday(e.dateTime));
print(
'checkActivityReminder:todaysData ${todaysData.map((e) => e.toJson()).toList()}');
final totalSteps = data.map((item) => item.step).reduce((a, b) => a + b);
final totalSteps = todaysData.map((item) => item.step).reduce((a, b) => a + b);
print('checkActivityReminder:totalSteps $totalSteps');

if (totalSteps < 5000) {
Expand All @@ -48,7 +48,7 @@ class BlueberryRingBackgroundNotificationsUseCase extends ReactiveUseCase {
print('checkSleepInsight:data ${data.map((e) => e.toJson()).toList()}');
// If sleeps is below standard level
// loop throug all and get average
final todaysData = data.where((e) => DateUtils.isDateOnToday(e.dateTime));
final todaysData = data.where((e) => MXCTime.isDateOnToday(e.dateTime));
print(
'checkSleepInsight:todaysData ${todaysData.map((e) => e.toJson()).toList()}');

Expand All @@ -72,7 +72,7 @@ class BlueberryRingBackgroundNotificationsUseCase extends ReactiveUseCase {
print('checkHeartAlert:data ${data.map((e) => e.toJson()).toList()}');
// If below standard but between person to person different
final latestData = data.last;
final isToday = DateUtils.isDateOnToday(latestData.dateTime);
final isToday = MXCTime.isDateOnToday(latestData.dateTime);
print('checkHeartAlert:isToday $isToday');
print('checkHeartAlert:latestData $latestData');

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export 'blueberry_configs.dart';
export 'blueberry_commands_utils.dart';
export 'blueberry_ring_data_analyzer.dart';
export 'date_utils.dart';
2 changes: 1 addition & 1 deletion packages/shared

0 comments on commit 492079e

Please sign in to comment.