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

Documented new API username requirements #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kstrauser
Copy link

As of the most recent bridge software update (and perhaps earlier but I can't confirm), usernames seem to require 10 characters.

    >>> from bulby.client import HueBridgeClient
    >>> client = HueBridgeClient(username='123456789')
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/private/tmp/bulby/bulby/client.py", line 44, in __init__
        self.connect()
      File "/private/tmp/bulby/bulby/client.py", line 94, in connect
        raise Exception(msg)
    Exception: invalid value,  123456789, for parameter, username

    >>> client = HueBridgeClient(username='1234567890')
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/private/tmp/bulby/bulby/client.py", line 44, in __init__
        self.connect()
      File "/private/tmp/bulby/bulby/client.py", line 94, in connect
        raise Exception(msg)
    Exception: Please press the link button and try again

I updated the default username to bulbyappdev to be longer than 10 characters, and made a node in README.rst as a pointer to other devs.

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 this pull request may close these issues.

1 participant