Well, I stumbled upon the problem with the default 1000 entries being sent from database. I need to recover all of the data (our server is fully functioning for just about a week and we have only a few participants for testing purposes). I tried using this script:
participant_accel_tr = LAMP.SensorEvent.all_by_participant(participant_1, origin="lamp.accelerometer", _from=1577735460618, to=1577735460737)
I tried to use it in my script for downloading data in one category:
begin = datetime(2020,1,1).timestamp() end = datetime(2021,2,2).timestamp()
events = LAMP.SensorEvent.all_by_participant(participant['id'], origin='lamp.accelerometer', _from=begin, to=end)['data']
But it does not seem to be working, I tried extending the time range, but I am only able to extract the last thousand each time. I looked up the timestamp info few times, but only problem might be the UTC conversion but I think that would just make the list start hour later/sooner etc…
Is there any other way how to extract all the SensorEvents from the database?