Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 1.46 KB

README.md

File metadata and controls

29 lines (15 loc) · 1.46 KB

py-eagle-200

This python library is used to wrap calls to a Rainforest Automation EAGLE-200 device.

The library was designed around the API documentation available here.

The API uses an awkward xml format with POST request. This library does it's best to wrap this and provide a more python friendly JSON output.

I'm using this library with some other open source tools (grafana, mosquitto, influxdb, telefraf) to build a power monitor dashboard.

grafana-dashboard

Simulator

A simulator is also provided as I didn't have the device at the time I started this library. I needed a way to test the library to make sure the API calls were correct. Any changes should be validated via tests which may require changes to the simulator as well.

The simulator uses flask to handle POST requests. The simulator hands out xml data from the examples in the developer API manual.

See simulator

Usage

See tests

See eagle-200-mqtt

Future

Make the output more pythonic. The output should look similar to what is output by the device but wrapped in a python friendly JSON interface. Currently the output uses an inconsitent and mixed dict/list object.