Skip to content

Unofficial python library for accessing the Rainforest Automation Eagle-200 Local API

License

Notifications You must be signed in to change notification settings

tonymitchell/rfa-eagle-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RFA-Eagle-API

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

To install the libary

python3 -m pip install rfa-eagle-api

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:

About

Unofficial python library for accessing the Rainforest Automation Eagle-200 Local API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages