Commit graph

29 commits

Author SHA1 Message Date
Thomas Kolb
de3b7026a8 Improved handling of unavailable devices 2020-01-20 22:06:37 +01:00
Thomas Kolb
f53dbe9be4 First version of collectd plugin 2020-01-20 22:06:37 +01:00
80e6bbaaed Merge branch 'fix/zerodivision' of sqozz/sem6000 into master 2020-01-20 21:31:30 +01:00
6f810c949b Fix ZeroDivisionError if plug is powered off 2020-01-20 21:31:30 +01:00
34b1e667af Merge branch 'features/total_power' of sqozz/sem6000 into master 2020-01-20 21:27:19 +01:00
101d4f4149 Add parsing of the total consumed power 2020-01-20 21:26:22 +01:00
1b1b5d8562 Merge branch 'gitignore' of cfr34k/sem6000 into master 2020-01-20 21:10:05 +01:00
Thomas Kolb
63b066511a Ignore some files in Git
Specifically compiled Python code and Vim swap files.
2020-01-20 21:10:05 +01:00
d91813497f Merge branch 'power_factor' of cfr34k/sem6000 into master 2020-01-20 21:09:35 +01:00
Thomas Kolb
7b82461f03 example: restart on BrokenPipeError 2020-01-19 17:48:02 +01:00
Thomas Kolb
2f13d6f6a5 example: print power factor 2020-01-19 17:46:55 +01:00
Thomas Kolb
01cc1ed9b7 example: removed invalid constructor argument 2020-01-19 17:34:57 +01:00
Thomas Kolb
8f06b28f31 Added power factor calculation 2020-01-19 17:34:18 +01:00
d824a93c5b Merge branch 'remove_reconnect' of sqozz/sem6000 into master 2020-01-17 11:43:45 +01:00
e38d6abb12 Remove automatic reconnect 2020-01-17 11:43:45 +01:00
d0a57f483e Merge branch 'shebang' of cfr34k/sem6000 into master 2020-01-16 19:08:41 +01:00
Thomas Kolb
50cb935f80 Add shebang to example script 2020-01-16 18:50:34 +01:00
60199338bf Merge branch 'improved_reconnect' of cfr34k/sem6000 into master 2020-01-16 18:43:20 +01:00
Thomas Kolb
2378f52a7e Reliable reconnect in user script 2020-01-16 14:50:48 +01:00
a91eb91ac6 Instantiate Peripheral on class initialization 2019-11-13 18:48:46 +01:00
8b7e88db74 Merge branch 'btledev_private' of sqozz/sem6000 into master
This cleans up some rough edges of the initial version.

1. Reconnect support introduces better handling of missing or misbehaving wall sockets.
2. Variable visibility for the internally used ble characteristics just give the reader a slight clue about their (un)importance for them.
3. Variable access was cleaned up to use the provided setter for cmd and payload.
4. Some spaghetti code got slightly more readable.
5. Finally, graceful handling of disconnects is now possible. This allows short lived scripts (e.g. home-assistant components) to access multiple sockets with the same BLE adapter.
2019-11-13 18:13:36 +01:00
bc34c9dd8f Add proper connect and disconnect functions
This makes it possible to only open a short lived connection to the
physical SEM6000 socket. A few old artefacts referencing __reconnect do
still exist in the code.
2019-11-13 17:57:24 +01:00
6c83bccbde Use setter for init BTLE payload data 2019-06-14 19:51:47 +02:00
4f8b698a14 Change visibility of some properties 2019-02-27 22:53:08 +01:00
5c06fc131a Add timeout and reconnect support 2019-02-27 22:01:46 +01:00
21433a3d20 Merge branch 'master' of ssh://git.geekify.de:1421/sqozz/sem6000 2018-08-13 18:48:03 +02:00
3673e31ffc Add change password function and fix checksum 2018-08-13 18:47:46 +02:00
eb626bedd5 Add README 2018-08-11 00:39:26 +02:00
3df74980e3 Add PoC lib 2018-08-11 00:32:33 +02:00