Skip to main content

Unofficial client SDK for Rainforest Automation Eagle-200

Project description

https://travis-ci.com/tonymitchell/rfa-eagle-api.svg?branch=master

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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rfa-eagle-api, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size rfa_eagle_api-0.0.6-py3-none-any.whl (9.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size rfa-eagle-api-0.0.6.tar.gz (8.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page