UBC-Solar / sunlink

UBC Solar's radio and cellular-based telemetry system
MIT License
3 stars 1 forks source link

Fix: Fixed timestamp issue of 10 seconds on and off of data #121

Open AarjavJain101 opened 1 day ago

AarjavJain101 commented 1 day ago

Sunlink Pull Request Description

STG and I noticed that the data on InfluxDB has a weird 10 seconds on and off issue: image

This was due to noticing that the KMF files inject a new start time every 10 seconds into their log files. Thus, a bug appeared in the memorator uploader script where the start time was by 10 seconds but the difference in time the KMF gave us was still relative to the very first start time they gave us. Fixed now with simple logic to take the first start time and ignore every instance of a start time after that.

Monday Link

https://ubcsolar26.monday.com/boards/7524367653/pulses/7576633454/posts/3513794330

Effected Components

Testing

Tested by uploading memorator data locally and viewing no 10 seconds off and off issue.

Sanity check

Sources