Skip to content
New issue

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

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

Already on GitHub? # to your account

Add the 'feederassign' command to add/remove pets from feeders #164

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

badnetmask
Copy link
Contributor

I was looking to figure out a way to automate adding/removing a pet from a feeder, when I stumbled upon this project. I realized this feature didn't exist, so I took some time to write it.

Example usage:

surepy feederassign -d 123456 -m list
surepy feederassign -d 123456 -m add -p 654321
surepy feederassign -d 123456 -m remove -p 654321

There are a few caveats though:

  • This has not been thoroughly tested to account for all possible errors.
  • I made various assumptions about coding and output style based on reading other pieces of the code.
  • The HTTP DELETE operation does not return data, so I had to add a weird fake return to the "call" function. I'm sure this can be improved.

I hope you find this useful.

Please, let me know what improvements you would like to see before merging.

Thank you.

@benleb
Copy link
Owner

benleb commented Apr 4, 2023

Thanks! 👍 And sorry for the slight delay 🙄 included in the 0.9.0a0 pre-release here: https://pypi.org/project/surepy/0.9.0a0/ :)

@badnetmask badnetmask deleted the feeder-add-remove-pet branch April 10, 2023 13:16
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants