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

Wakapi support #37

Closed
dashezup opened this issue Apr 26, 2021 · 6 comments · Fixed by #38
Closed

Wakapi support #37

dashezup opened this issue Apr 26, 2021 · 6 comments · Fixed by #38

Comments

@dashezup
Copy link

dashezup commented Apr 26, 2021

wakapi is a Wakatime-compatible backend, it lacks some features of wakatime (such like leaderboards) but there are some basic APIs are implemented.

You can check Wakapi API at here

To have support for wakapi, I think at least it should show an option to specify the api_url and api_key on start at first. maybe disable some components when some API method is not available.

@devgianlu
Copy link
Owner

I've looked at the API, but I think it lacks too many endpoints to have a functional app. Also there's no way to detect whether an endpoint it missing.

@dashezup
Copy link
Author

dashezup commented Apr 26, 2021

I think the server will response with 404 or something if it's not available (just send a header request maybe). maybe whitelist available API endpoints when the user choose specify custom API url or choose wakapi, there are only a few of API wakapi implemented.

btw, I wonder, would the app fully works for official wakatime if you just specify the wakatime official api url and api key? Is there any special benefits from verifying from a browser?

@devgianlu devgianlu linked a pull request Apr 28, 2021 that will close this issue
@devgianlu
Copy link
Owner

devgianlu commented Apr 28, 2021

I am trying to add support for it in #38, but the https://wakapi.dev/api/compat/wakatime/v1/users/current/summaries is broken. It says the start parameter is missing even if it's correctly specified.

image

I have opened an issue on the repo: muety/wakapi#190

@devgianlu
Copy link
Owner

devgianlu commented Apr 29, 2021

Once muety/wakapi#192 is fixed. Most of the features of the app should be working, apart from projects, commits, etc...

@devgianlu
Copy link
Owner

Merged! There's stuff that's missing, but not too much. The other required endpoint would be the one for the user data, right now it'll display "anonymous user" instead

When endpoints are added it should start working automatically without an app update needed.

I'll be realising a new version probably tomorrow.

@ysxninja
Copy link

ysxninja commented Jun 3, 2024

I'm trying to connect to a local instance of wakapi running on localhost, accessible from my android at an IP like http://192.168.1.1:8080.
When connecting, the app crashes with the error "Failed Loading Data".

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.

3 participants