Skip to content

Releases: sdwilsh/siobrultech-protocols

v0.4.1

02 Nov 14:44
48e7de0
Compare
Choose a tag to compare

Fixes

  • Fix API Setting Methods (#39)
  • Make logging more useful in protocols (#38)

Full Changelog: v0.4.0...v0.4.1

v0.4.0

01 Nov 02:52
05fccb5
Compare
Choose a tag to compare

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 GEM
    • set_date_and_time to set the date and time on the connected GEM
    • set_packet_format to set the primary packet format (COM1) on the connected GEM
    • set_packet_send_interval to set the frequency in which packets are sent from the connected GEM
    • set_secondary_packet_format to set the secondary packet format (COM1) on the connected GEM
    • synchronize_time to synchronize the time on the connected GEM with the local device

Fixes

  • end_api_request was not callable immediately after begin_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 after begin_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

21 Oct 15:36
3b09253
Compare
Choose a tag to compare
  • Drops support for Python 3.7
  • Improved typing information
  • Added helper methods on Packet to compute deltas
    • delta_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

26 Sep 14:49
aa9ff8a
Compare
Choose a tag to compare

Corrects incorrect typing of Packet.polarized_watt_seconds from Optional[int] to Optional[List[int]].

v0.1.1

17 Sep 22:58
3db1d24
Compare
Choose a tag to compare

This fixes the minimum supported Python version from 3.8 to 3.7.

v0.1.0

17 Sep 22:44
ccc2b61
Compare
Choose a tag to compare

Initial version that currently only supports the GreenEye Monitor based off of jkeljo/greeneye-monitor.