Code Monkey home page Code Monkey logo

python-e3dc-module's People

Contributors

matrixcrawler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

python-e3dc-module's Issues

NameError: name 'E3DC' is not defined

Hello,

I have just installed your library on my machine (Raspberry 3B - Python 3.5.3):

sudo pip3 install git+https://github.com/MatrixCrawler/python-e3dc-module.git
Collecting git+https://github.com/MatrixCrawler/python-e3dc-module.git
  Cloning https://github.com/MatrixCrawler/python-e3dc-module.git to /tmp/pip-4p_ahb5j-build
Requirement already satisfied: py3rijndael in /usr/local/lib/python3.5/dist-packages (from e3dc==0.0.5)
Installing collected packages: e3dc
  Running setup.py install for e3dc ... done
Successfully installed e3dc-0.0.5

image

Unfortunately already the 10th line of the code gives me troubles ๐Ÿ˜€ . Maybe I'm just blind to see it. Would be great if you could have a quick look.

Traceback (most recent call last):
  File ".homebridge/Cmd4Scripts/e3dc_connect.py", line 10, in <module>
    e3dc = E3DC(USERNAME, PASS, TCP_IP, KEY)
NameError: name 'E3DC' is not defined
#!/usr/bin/python3
from e3dc import *

TCP_IP = 'xxx'
USERNAME = 'xxx'
PASS = 'xxx'
KEY = 'xxx'
SERIALNUMBER = 'xxx'

e3dc = E3DC(USERNAME, PASS, TCP_IP, KEY)
# request the current power that is produced by the pv system
response = e3dc.send_request(RSCPTag.EMS_REQ_POWER_PV)
print("Current power "+str(response.data))

For info: Before I have tried your package, I also tried the one from https://github.com/fsantini/python-e3dc. But I uninstalled it before installing yours.

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.