Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting token not working for me #2

Open
pjacobr opened this issue Dec 11, 2019 · 12 comments · May be fixed by #6
Open

Getting token not working for me #2

pjacobr opened this issue Dec 11, 2019 · 12 comments · May be fixed by #6

Comments

@pjacobr
Copy link

pjacobr commented Dec 11, 2019

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
Copy link

hesto2 commented Apr 6, 2020

This is not working for me either.

@stillsober
Copy link

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
Copy link
Owner

BastianPoe commented Apr 16, 2020 via email

@hesto2
Copy link

hesto2 commented May 29, 2020

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
Copy link

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
Copy link
Owner

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
Copy link

@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
Copy link

hesto2 commented Sep 25, 2020

@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
Copy link

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
Copy link

@mys007
Copy link

mys007 commented Jan 25, 2022

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
Copy link

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

@antgiant antgiant linked a pull request Nov 24, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants