Releases: sdwilsh/siobrultech-protocols
Releases · sdwilsh/siobrultech-protocols
v0.4.1
v0.4.0
New Features
- A context manager has been added to easily make API calls in a safe way when using
asyncio
- A number of API helper methods have been added to make it easy for some important, common operations (support to roll your own still exists!)
get_serial_number
to get the serial of the connected GEMset_date_and_time
to set the date and time on the connected GEMset_packet_format
to set the primary packet format (COM1) on the connected GEMset_packet_send_interval
to set the frequency in which packets are sent from the connected GEMset_secondary_packet_format
to set the secondary packet format (COM1) on the connected GEMsynchronize_time
to synchronize the time on the connected GEM with the local device
Fixes
end_api_request
was not callable immediately afterbegin_api_request
, which would result in even more brokenness if an exception occurred.
What's Changed
- Version bump to 0.4.0a0 by @sdwilsh in #23
- Provide a better message when the state is not what is expected by @sdwilsh in #25
end_api_request
should be callable immediately afterbegin_api_request
by @sdwilsh in #27- Provide a context manager and helper method for API Calls by @sdwilsh in #26
- Add ability to set the time on a GEM by @sdwilsh in #28
- Update documentation to reflect new ways to call API by @sdwilsh in #30
- Add tests and documentation for API methods by @sdwilsh in #31
- Add a number of APIs to set things on the GEM by @sdwilsh in #29
- Bump black from 21.9b0 to 21.10b0 by @dependabot in #34
- Bump flake8 from 3.9.2 to 4.0.1 by @dependabot in #33
- Bump pyyaml from 5.4.1 to 6.0 by @dependabot in #32
- Add support and testing for Python 3.10 by @sdwilsh in #35
Full Changelog: https://github.com/sdwilsh/siobrultech-protocols/commits/v0.4.0
v0.3.0
- Drops support for Python 3.7
- Improved typing information
- Added helper methods on
Packet
to compute deltasdelta_seconds
delta_pulse_count
delta_absolute_watt_seconds
delta_polarized_watt_seconds
- Support bi-directional communication with a GEM. Currently supports only one command to get the serial number of the device. (docs)
v0.2.0
v0.1.1
v0.1.0
Initial version that currently only supports the GreenEye Monitor based off of jkeljo/greeneye-monitor.