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

FetchRobots returning empty array for Litter Robot 4 #28

Open
geekdave opened this issue Mar 2, 2024 · 4 comments
Open

FetchRobots returning empty array for Litter Robot 4 #28

geekdave opened this issue Mar 2, 2024 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@geekdave
Copy link

geekdave commented Mar 2, 2024

Hi! Thanks for creating this project! I'm guessing that the API has changed, but just wanted to report that FetchRobots seems to be returning an empty array for me, despite successfully getting an auth token, and the call to /users/id/robots returning a 200 response. Any advice would be much appreciated!

@tlkamp
Copy link
Owner

tlkamp commented Mar 3, 2024

Hello @geekdave thanks for reaching out!

The exporter is still working for me and fetching my litter robot correctly. Can you provide any further information, like the number of robots you have registered and which product versions they are?

I only have a litter robot 3 connect, so that's the only device I'm able to test with directly.

@geekdave
Copy link
Author

geekdave commented Mar 8, 2024

Hi @tlkamp - Thanks for the response! I have a LR4, and it appears from a related project that the LR4 has its own separate GraphQL API endpoint: https://github.com/natekspencer/pylitterbot/blob/main/pylitterbot/robot/litterrobot4.py#L28

Using the pylitterbot python package, and the example in the README, I was able to successfully authenticate and print out my LR4's info and status.

I'm better in python than golang, so I may wind up building a simple LR4 prometheus exporter on top of pylitterbot. I'll report back on how that goes. :)

Thanks for the inspiration!

@geekdave geekdave changed the title FetchRobots returning empty array FetchRobots returning empty array for Litter Robot 4 Mar 8, 2024
@tlkamp
Copy link
Owner

tlkamp commented Mar 8, 2024

@geekdave sounds good! I'm comfortable with Python also if you'd like a collaborator!

@tlkamp tlkamp added enhancement New feature or request help wanted Extra attention is needed labels Mar 9, 2024
@geekdave
Copy link
Author

@tlkamp I'm super late to reply, but I've got a working python-based exporter up and running at https://github.com/geekdave/litter_robot_exporter but it only supports LR4 now. PRs welcome if you're still interested in collaborating and possibly adding LR3 support! I've credited you in the README for inspiring this project. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants