owlet_api icon indicating copy to clipboard operation
owlet_api copied to clipboard

Getting token not working for me

Open pjacobr opened this issue 6 years ago • 12 comments

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

pjacobr avatar Dec 11 '19 05:12 pjacobr

This is not working for me either.

hesto2 avatar Apr 06 '20 22:04 hesto2

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.

stillsober avatar Apr 15 '20 21:04 stillsober

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.

BastianPoe avatar Apr 16 '20 05:04 BastianPoe

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

hesto2 avatar May 29 '20 00:05 hesto2

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

isupremedyou avatar Aug 08 '20 14:08 isupremedyou

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.

BastianPoe avatar Aug 23 '20 12:08 BastianPoe

@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 avatar Sep 25 '20 17:09 jamesbiederbeck

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

hesto2 avatar Sep 25 '20 17:09 hesto2

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!

freekeys avatar Nov 22 '20 21:11 freekeys

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

doesnt work either :(

andrew-lozoya avatar May 19 '21 16:05 andrew-lozoya

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 avatar Jan 25 '22 09:01 mys007

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

andrew-lozoya avatar Jan 25 '22 20:01 andrew-lozoya