Skip to content

[Doc request]: more explanation / examples of library usage #19

Open
@chinezbrun

Description

@chinezbrun

on Python 3.6
I have installed the library: pip install sonoff-python
and requirements websocket,requests, websocket-client

running the example "Usage"
i get below error:

File "S:\Development\Python_Scripts\teste_nevalidate\sonofflan_test-1.py", line 4, in
s = sonoff.Sonoff(config.username, config.password, config.api_region, config.user_apikey, config.bearer_token)
AttributeError: module 'config' has no attribute 'username'

Do I missed something?

Dan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions