Unofficial client SDK for Rainforest Automation Eagle-200
Project description
*************
RFA-Eagle-API
*************
Unofficial client for Eagle-200 from Rainforest Automation
=======================================================
Provides the ability to query the local API interface of the Eagle-200
**Example 1. Query and print all variables from device**
::
import eagle
client = eagle.LocalApi(host='<device ip>', username='<Cloud ID>', password='<Install Code>')
devices = client.device_list()
for device in devices:
device = client.device_query(device.hardware_address)
print(device.get_all_variables())
**Example 2. Use Meter wrapper class for simplified access to electricity meter data**
::
import eagle
client = eagle.LocalApi(host='<device ip>', username='<Cloud ID>', password='<Install Code>')
meters = eagle.Meter.get_meters(client)
for meter in meters:
meter.update()
print("Demand:", meter.instantaneous_demand)
**Links:**
* Rainforest Automation https://rainforestautomation.com/
* Eagle-200 https://rainforestautomation.com/rfa-z114-eagle-200-2/
* Developer Resources: https://rainforestautomation.com/support/developer/
* Local API documentation: http://rainforestautomation.com/wp-content/uploads/2017/02/EAGLE-200-Local-API-Manual-v1.0.pdf
RFA-Eagle-API
*************
Unofficial client for Eagle-200 from Rainforest Automation
=======================================================
Provides the ability to query the local API interface of the Eagle-200
**Example 1. Query and print all variables from device**
::
import eagle
client = eagle.LocalApi(host='<device ip>', username='<Cloud ID>', password='<Install Code>')
devices = client.device_list()
for device in devices:
device = client.device_query(device.hardware_address)
print(device.get_all_variables())
**Example 2. Use Meter wrapper class for simplified access to electricity meter data**
::
import eagle
client = eagle.LocalApi(host='<device ip>', username='<Cloud ID>', password='<Install Code>')
meters = eagle.Meter.get_meters(client)
for meter in meters:
meter.update()
print("Demand:", meter.instantaneous_demand)
**Links:**
* Rainforest Automation https://rainforestautomation.com/
* Eagle-200 https://rainforestautomation.com/rfa-z114-eagle-200-2/
* Developer Resources: https://rainforestautomation.com/support/developer/
* Local API documentation: http://rainforestautomation.com/wp-content/uploads/2017/02/EAGLE-200-Local-API-Manual-v1.0.pdf
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rfa-eagle-api-0.0.2.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for rfa_eagle_api-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9455170bbed04870004417825747916047dea142d0b99e0b0bd4f03a7dc49ff7 |
|
MD5 | 6d28f306a570ee45fbfd5b541da31c88 |
|
BLAKE2b-256 | be16d12f1b53586c1ff27d88d3d50bda650b480dc7d59e2796993c8aab227fee |