Techzune / petsafe_smartfeed

Connect and control a PetSafe Smart Feed device using the PetSafe-SmartFeed API.
MIT License
7 stars 5 forks source link

API Fix & Support for Scheduling #2

Closed gonenutsbrb closed 2 years ago

gonenutsbrb commented 2 years ago

Looks like a capitalization bug in the headers method of the api.py file. Suddenly, PetSafe expected that the "token" key be capitalized to "Token" or it would give a 404.

Fixed that, and also added some methods for manipulating schedules.

Tried to submit the API fix and the scheduling as separate pull requests, but I'm somewhat new to git and it's not 4AM my time so I stopped caring...

Hope all is well!

gonenutsbrb commented 2 years ago

Resetting my fork to clean up the commits. Will issue a new pull request when it's cleaner.