Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jcalbert/uEagle
- Owner: jcalbert
- License: mit
- Created: 2019-02-17T02:34:20.000Z (over 5 years ago)
- Default Branch: nonmicro
- Last Pushed: 2021-04-27T15:50:18.000Z (over 3 years ago)
- Last Synced: 2024-07-23T11:33:26.213Z (4 months ago)
- Language: Python
- Size: 23.4 KB
- Stars: 4
- Watchers: 3
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micropython - uEagle - MicroPython Rainforest EAGLE client. (Libraries / Communications)
README
# uEagle
Rainforest EAGLE clientBasic, 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']))
```