Giter Site home page Giter Site logo

Comments (7)

sander76 avatar sander76 commented on June 2, 2024

Don't use the pip version. Needs upgrading. Use the github repo. Good luck!

from homematicip-rest-api.

kuzco1 avatar kuzco1 commented on June 2, 2024

What do you exactly mean ?

I do get
Traceback (most recent call last):
File "./generate_auth_token.py", line 2, in
import homematicip.auth
File "/home/cam/homematicip-rest-api/homematicip/auth.py", line 7, in
from homematicip.home import Home
File "/home/cam/homematicip-rest-api/homematicip/home.py", line 12, in
import websocket
ImportError: No module named 'websocket'

from homematicip-rest-api.

sander76 avatar sander76 commented on June 2, 2024

@kuzco1 This is not really homematic related but you could try and do the following:

# create a virtualenv
cd # go to your home folder.
python3 -m venv hmip # create virtualenv
cd hmip # enter the virtualenv
source bin/activate # activate it.
# get this library from github.
git clone https://github.com/coreGreenberet/homematicip-rest-api.git
cd homematicip # enter the cloned folder
pip install -r requirements.txt # install requirements.
python setup.py install # install the actual library.

After this try and generate the auth token.

from homematicip-rest-api.

kuzco1 avatar kuzco1 commented on June 2, 2024

Many thanks. Working now 👍 :-)

from homematicip-rest-api.

kuzco1 avatar kuzco1 commented on June 2, 2024

Hello,
sorry, but I have to asked again (I am not a Linux guru).
I was able to "list may things", i.e. firmware, groups, etc..

After disconnecting my SSH session yesterday and reconnecting today; I have again an issue.
Going to hmip/homematicip-rest-api and running:
root@camserver:~/hmip/homematicip-rest-api# python ./homematicip_cli.py --list-firmware
Traceback (most recent call last):
File "./homematicip_cli.py", line 12, in
from homematicip.home import Home
File "/root/hmip/homematicip-rest-api/homematicip/home.py", line 12, in
import websocket
ImportError: No module named 'websocket'

Any hint is welcome.

from homematicip-rest-api.

sander76 avatar sander76 commented on June 2, 2024

@kuzco1
do a pip freeze and see whether it says websocket somewhere (after you've activated the virtualenv)
btw. this is not linux stuff. This is python related. Works on windows too !

from homematicip-rest-api.

bestgrafix avatar bestgrafix commented on June 2, 2024

i found the problem, if you type python on raspbean it uses python2 but the script works only with python3 so type python3 , things you need to know :)

and for installation
pip3 install homematicip

from homematicip-rest-api.

Related Issues (20)

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.