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

Android app rarely enables scraping #66

Open
galmok opened this issue Aug 11, 2019 · 7 comments
Open

Android app rarely enables scraping #66

galmok opened this issue Aug 11, 2019 · 7 comments

Comments

@galmok
Copy link

galmok commented Aug 11, 2019

My experience with the Android app is that while I usually get it to disable scraping automatically, it rarely manages to enable automatically. Is there something I can do to make the Android app more reliable. Often I find I have collected no data of my trip and that is becoming an irritation for me.

I am using the app on my Samsung $9, and while it has lots of battery saving features, I believe I have disabled all of them for this app. I have another app that reliably detects its Bluetooth device coming online, and I didn't have to configure anything for that app (it is Saphe). So I know it is possible to do. :-) I just don't know how...

@galmok
Copy link
Author

galmok commented Aug 11, 2019

Looking closer, I notice that Saphe uses a service. That service is probably necessary to reliably detect changes in Bluetooth. The Tesla API Scraper app is unfortunately unreliable.

@lephisto
Copy link
Owner

lephisto commented Aug 13, 2019

Often the problem is caused by the fact that when en/disable wifi disconnect happens as well, and the Android Retrypolicy is not working so great. But I'm far from being an Android expert, feel free to contribute here: https://github.com/lephisto/tesla-apiscraper-app

What always works is setting it manually and getting confirmation of scraper is on or off.

@Vipercat
Copy link

Apologies for the dumb question, but do I need to open certain ports on the server where I'm running the Apiscraper for the app to connect to it? In the App I've now put in the URL based on http:// and of course the API key that I've also put in the config file on the server.

@galmok
Copy link
Author

galmok commented Aug 31, 2019 via email

@Vipercat
Copy link

And what port is that?

@galmok
Copy link
Author

galmok commented Aug 31, 2019

According to the config file:

a_api_port = 8023

@Vipercat
Copy link

Yep, it works. Thanks!

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

No branches or pull requests

3 participants