Open pjacobr opened 4 years ago
This is not working for me either.
Yeah, as far as I can tell nobody has a working piece of code for this. Owlet redesigned their app and moved their iot service. It may not be as easy as before to hack it. I'd love to hear some new info if anybody has some.
I currently do no have my owlet handy and hence am not able to try this out.
But I will have it again soon and then give it a try.
Decompiled the app and pulled out some of the new values for a project I was working on. Not super familiar with python otherwise I would've tried to just make a PR to this lib. Here is the npm package/repo for the small client I pulled together with their new authentication system: https://github.com/hesto2/owlet-client
I was unable to get a token using the CLI, @BastianPoe did you ever get this figured out? I so wish they just had an export option for the data
I have started working on changes quite some time ago, but never got to completing them. I have now added them to the branch https://github.com/BastianPoe/owlet_api/tree/feature/support-new-auth-mechanism. Feel free to try them out and contribute.
@hesto2 I tried to use your client, but I'm a typescript noob. Thought I could just pipe your sample code into nodejs, and I had a Bad Time.
Can I hassle you for clearer usage documentation, or a more friendly package?
@jamesbiederbeck Ah man, I must have it configured wrong on my end. You shouldn't need to have typescript in your project to use the client. I'll fix that this weekend and then get back to you.
Hey @BastianPoe - is it possible to merge the new auth mechanism into the owlet-py pip install? Or is there still work to do? What is still needed? Thanks!
https://github.com/BastianPoe/owlet_api/tree/feature/support-new-auth-mechanism
doesnt work either :(
The implementation at https://github.com/jlamendo/ha-sensor.owlet/blob/main/custom_components/owlet/sensor.py currently works, at least in my case (EU region).
@mys007 I ended up building my own, https://github.com/andrew-lozoya/owletsock-newrelic
I am trying to get the CLI and code to work but it isn't working using my owlet email and password. Do you know if the API has changed since January? I decompiled the app and it looks like the api might have moved over to owlets own servers now.
stringBuilder.append("https://ss-registration"); stringBuilder.append(param1ad.a()); stringBuilder.append(".owletdata.com/cleanup/");