Giter Club home page Giter Club logo

petsafe_smartfeed's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

petsafe_smartfeed's Issues

WiFi Dog Door

Is it possible to add the WiFi dog door to this plugin?

Broken?

It would seem Petsafe revamped their api and broke this library.

Missing Key 'RefreshToken' in refresh_tokens API response

If I remove the line that reads the refresh token from the response I can use the client as normal. I am not sure why it doesn't need an updated refresh token to keep working.

How did you get the information for the API? I would like to update the code for the API changes if necessary.

Initial issue with the get_feeders call

Hey there, just getting back around to messing with this after the API change, so I'll see if I can't fix it on my fork, but I was get this right away when running the initial get feeders call:

>>> devices = sf.devices.get_feeders(client)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.10/site-packages/petsafe_smartfeed/devices.py", line 12, in get_feeders
    response = client.sf_get("feeders")
  File "/usr/lib/python3.10/site-packages/petsafe_smartfeed/client.py", line 131, in sf_get
    return requests.get(URL_SF_API + path, headers=self.get_headers())
  File "/usr/lib/python3.10/site-packages/petsafe_smartfeed/client.py", line 101, in get_headers
    if time.time() >= self.token_expires_time - 10:
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'

Looks like when the token_expires_time is left at 'None' it can't make the subtraction and fails.

Thanks for all the work on the new API!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.