Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jcalbert/uEagle

Micropython Rainforest EAGLE client
https://github.com/jcalbert/uEagle

Last synced: 3 months ago
JSON representation

Micropython Rainforest EAGLE client

Awesome Lists containing this project

README

        

# uEagle
Rainforest EAGLE client

Basic, lightweight client for accessing the local REST API of Rainforest Automation's EAGLE device.

Based off a micropython module, this uses minimal local resources.

Example use:

```python
from uEagle import Eagle

CLOUD_ID = '012abc'
INSTALL_CODE = '0123456789abcdef'
ADDRESS = '192.168.1.123' #optional if your platform can resove mDNS

eagle = Eagle(CLOUD_ID, INSTALL_CODE, address=ADDRESS)

demand_data = eagle.get_instantaneous_demand()
print('Current Usage: {:.3f} kW'.format(demand_data['Demand']))
```