kasparsd / sensor-pilot

Progressive web app for connecting to Bluetooth Low Energy sensors via Web Bluetooth API
https://kasparsd.github.io/sensor-pilot/
52 stars 13 forks source link

FeatureRequest - display device history #1

Open austrisv opened 4 years ago

austrisv commented 4 years ago

ThankYou for the great pilot! I wonder -history reading - is it something that is accesible over the webBTapi, just need a time/hands? Or it's not exposed/accessible?

kasparsd commented 4 years ago

@austrisv Thanks for opening the issue!

It appears to be possible to read historic data according to the logic in this Python client for Aranet4 -- the core logic is this where it requests the historic values for each type of measurement:

https://github.com/Anrijs/Aranet4-Python/blob/583dae015184f5c14919bb727277f8f7dd3bdfa0/aranet4/client.py#L256-L282