BastianPoe / owlet_api

Unofficial Python API for the Owlet Smart Baby Monitor
MIT License
59 stars 9 forks source link

Save Everything to DB #7

Open antgiant opened 1 year ago

antgiant commented 1 year ago

Adding an option to download the complete set of data including historical data from Owlet and save it into a local SQLite DB for whatever use you would like. It is designed to be smart about resuming downloads and incrementally adding new data. However, Owlet stores a surprising amount of data so this can easily run into hundreds of megs of data and take many hours to download. I would expect initial run to take several hours and follow up runs to be much quicker.

Note: This was to scratch my own itch and does not have any tests to validate thing. Feel free to add them. :-)

P.S. This builds on #6 and will not work without it.