Skip to content

[Bug] owntracks recorder integration limited to 10000 points/month for historical data #721

@wjansenw

Description

@wjansenw

Describe the bug
When loading historical data from owntracks recorder, it is hardcoded to only fetch 10000 data points. I have several months where this is not sufficient, so I assume it is not loading all data - as I do not see there is a retry for after the first 10000 points of each month.

To Reproduce
Load historical owntracks recorder data:

Logs say:
Fetching location data from: http://192.168.0.xxx:8083/api/0/locations?user=wim&device=gsm-wim&from=2025-04-01T00:00:00&to=2025-04-30T23:59:59&limit=10000

Where the month has more data points:

count | 16248
data | (16248)[ {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, … ]
status | 200
version | "1.0.1"

Expected behavior
Not sure if owntracks sorts the data somehow, but you could fetch the next 10000 points starting with the last datapoint received. Or remove the limit - but that might trigger other issues?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions