evilpete / raineagle Goto Github PK
View Code? Open in Web Editor NEWCall interface for the Rainforest Automation Eagle
Call interface for the Rainforest Automation Eagle
root@metrics:/home/erichardson/RainEagle# python setup.py --dry-run --verbose install
running install
running bdist_egg
running egg_info
creating RainEagle.egg-info
writing RainEagle.egg-info/PKG-INFO
writing top-level names to RainEagle.egg-info/top_level.txt
writing dependency_links to RainEagle.egg-info/dependency_links.txt
writing manifest file 'RainEagle.egg-info/SOURCES.txt'
writing manifest file 'RainEagle.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/RainEagle
copying RainEagle/__init__.py -> build/lib.linux-x86_64-2.7/RainEagle
copying RainEagle/EagleClass.py -> build/lib.linux-x86_64-2.7/RainEagle
warning: install_lib: 'build/lib.linux-x86_64-2.7' does not exist -- no Python modules to install
installing package data to build/bdist.linux-x86_64/egg
running install_data
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/examples
copying bin/plot_power.py -> build/bdist.linux-x86_64/egg/examples
copying bin/gnup_poweruse.txt -> build/bdist.linux-x86_64/egg/examples
creating build/bdist.linux-x86_64/egg/bin
copying bin/meter_status.py -> build/bdist.linux-x86_64/egg/bin
creating build/bdist.linux-x86_64/egg/EGG-INFO
installing scripts to build/bdist.linux-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/scripts-2.7
copying and adjusting bin/meter_status.py -> build/scripts-2.7
copying and adjusting bin/plot_power.py -> build/scripts-2.7
changing mode of build/scripts-2.7/meter_status.py
changing mode of build/scripts-2.7/plot_power.py
zip_safe flag not set; analyzing archive contents...
error: [Errno 2] No such file or directory: 'build/bdist.linux-x86_64/egg/EGG-INFO/zip-safe'
root@metrics:/home/erichardson/RainEagle# python
Python 2.7.9 (default, Jun 29 2016, 13:08:31)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import RainEagle
>>> raineagle = RainEagle.Eagle(debug=0, addr="192.168.1.222")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "RainEagle/EagleClass.py", line 192, in __init__
mysetting = self.get_setting_data()
File "RainEagle/EagleClass.py", line 533, in get_setting_data
comm_responce = self._send_http_comm("get_setting_data", MacId=macid)
File "RainEagle/EagleClass.py", line 813, in _send_http_comm
req = urllib2.Request(url, commstr, headers={ "Authorization" : 'Basic ' + base64.b64encode(self.username+":"+self.password) })
TypeError: unsupported operand type(s) for +: 'int' and 'str'
>>>
cloned the repo, fired up python, stepped through...as soon as I got to the raineagle=... line, it errors out.
See:
RainEagle/RainEagle/EagleClass.py
Lines 356 to 359 in 62a938a
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.