PCdLf / wearalyze

Shiny app for wearables package
0 stars 0 forks source link

Nowatch data is not uploaded into Wearalyze #12

Closed luciennedenuil closed 1 week ago

luciennedenuil commented 2 months ago

Hi veerle,

It is not possible to read the Nowatch data into the Wearalyze app. I received the following message in R:

Warning in read.table(file = file, header = header, sep = sep, quote = quote, : incomplete final line found by readTableHeader on 'C:\Users\Ipse1\Documents\Nowatch data/sleep_session.csv'

Warning in aggregate_nowatch_data(rv$data, interval = ifelse(r$more_than_2weeks, : Data not found. Did you use read_nowatch()?

hypebright commented 1 month ago

Hi @luciennedenuil,

Probably has something to do with your data (and it seems some data is missing). Could you send me the specific data so I can replicate?

Thanks :)

luciennedenuil commented 1 week ago

Hi Veerle,

I have attached the Nowatch Files. Thankyou!

temperature.csv skin_conductance.csv activity_count.csv heart_rate.csv sleep_session.csv

hypebright commented 1 week ago

@luciennedenuil @PCdLf these files look different from what I normally get. There's no activity data and skin_conductance.csv is also missing from the example data. So this requires some extended checks and/or the addition of expected data files. This is covered in wearables, I'll open an issue there.

That being said, in the app it should relabel skin conductance as EDA, but currently the app crashes because the limited checks prevent the app from aggregating the data- hence the visualisation can't be completed.

luciennedenuil commented 1 week ago

Let me check whether the Nowatch export data has changed since

luciennedenuil commented 1 week ago

It seems like not all data files were exported last time, I will try again and attach the new data files here

luciennedenuil commented 1 week ago

records.zip Exported Nowatch data from today

hypebright commented 1 week ago

records.zip Exported Nowatch data from today

Thanks! This new data works without problems. I'm still going to add the additional checks in wearables, and I'm also going to add some more checks in the app so it at least doesn't crash. After that I'll close this issue.