nitobuendia/oura-custom-component

Better handling if data is not existent in Oura cloud

leikoilja opened this issue · 2 comments

Hey, thanks for the integration, great stuff 🔥

So, I just got Oura ring and setup the integration getting a few console errors like so:
image

And the error message is fair enough, the could indeed has no historical data yet, it only has data for the past 2 days.

Suggestion: instead of error log entires, log it as warning or even debug saying "no data found for X day, skipping..." or smth like that :)

Hi @leikoilja - thanks for using it and the feedback.

I think both are good feedack. Warning seems more appropriate as it may or may not be an issue. One of the messages is already info, but I think they could be combined into one with some change in logic. I also like the idea of changing to "No data found for" instead of "Unable to read".

Let me test and send a quick change.

Screenshot 2021-12-06 at 18 43 07

This is how the new warnings will be shown. It also seems that the system is groupping them.