BastianPoe / owlet_api

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

Getting token not working for me #2

Open pjacobr opened 4 years ago

pjacobr commented 4 years ago

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/");

stringBuilder.append("https://ayla-sso");
  stringBuilder.append(param1ad.a());
  stringBuilder.append(".owletdata.com/mini/");
hesto2 commented 4 years ago

This is not working for me either.

stillsober commented 4 years ago

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.

BastianPoe commented 4 years ago

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.

hesto2 commented 4 years ago

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

isupremedyou commented 4 years ago

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

BastianPoe commented 4 years ago

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.

jamesbiederbeck commented 4 years ago

@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?

hesto2 commented 4 years ago

@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.

freekeys commented 3 years ago

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!

andrew-lozoya commented 3 years ago

https://github.com/BastianPoe/owlet_api/tree/feature/support-new-auth-mechanism

doesnt work either :(

mys007 commented 2 years ago

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).

andrew-lozoya commented 2 years ago

@mys007 I ended up building my own, https://github.com/andrew-lozoya/owletsock-newrelic