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

Fix breathing and skin temperature convertors #121

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

peyman-mohtashami
Copy link
Member

No description provided.

.map(tryOrNull(m -> parseBr(m, startDate, timeReceived),
(a, ex) -> logger.warn("Failed to convert breathing rate from request {}, {}", request, a, ex)));
}

private TopicData parseBr(JsonNode data, ZonedDateTime startDate, double timeReceived) {
Instant time = startDate.with(LocalDateTime.parse(data.get("dateTime").asText())).toInstant();
Instant time = LocalDate.parse(data.get("dateTime").asText()).atStartOfDay(ZoneOffset.UTC).toInstant();
Copy link
Member

Choose a reason for hiding this comment

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

Does this have to be at start of day?

Copy link
Member Author

Choose a reason for hiding this comment

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

The dateTime is in YYYY-MM-DD format and atStartOfDay get the 12.00 am timestamp.

Copy link
Member

Choose a reason for hiding this comment

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

Oh ok I see, I didn't realise it didn't have the time and only the date.

@@ -22,7 +22,7 @@ object Versions {
const val okhttp = "4.11.0"

const val firebaseAdmin = "9.1.0"
const val radarSchemas = "0.8.7-SNAPSHOT"
const val radarSchemas = "0.8.6"
Copy link
Member

Choose a reason for hiding this comment

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

Should we update this to the latest one? 0.8.7-hotfix

Copy link
Member Author

Choose a reason for hiding this comment

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

0.8.7-hotfix doesn't work for me. I revert it to the working version.

Copy link
Member

@mpgxvii mpgxvii left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@peyman-mohtashami peyman-mohtashami merged commit aabce98 into dev Apr 9, 2024
5 checks passed
@peyman-mohtashami peyman-mohtashami deleted the fix/breathing-skinTemperature branch April 9, 2024 07:23
@mpgxvii mpgxvii mentioned this pull request Apr 17, 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.

2 participants