lucapinello / pyacaia

Python module to interact with Acaia scales via Bluetooth (BLE)
GNU Affero General Public License v3.0
48 stars 15 forks source link

Add timer and settings support #6

Closed danbodoh closed 3 years ago

danbodoh commented 3 years ago

This PR adds support for reading and writing the scale timer, and for reading (some) of the settings. To support new API that communicates with the scale, a new CommandQUeue is added so that all scale communication is done in the heartbeat thread to avoid clashes. Some effort was made to allow for nice disconnects if the scale is turned off or moved out of range.

See the README.md example for the expanded API

lucapinello commented 3 years ago

Amazing job!!! I will test these new functionalities and then I will create a new pip package (0.4) so other people can benefit from all these new improvements!