Commit Graph

33 Commits

Author SHA1 Message Date
Felix Weiler
0311ad40cf Add reconnection to mqtt async publisher. (#73) 2024-02-17 12:23:11 +08:00
Felix Weiler
4ad5176847 Fix/resampler typecheck (#72)
* Add type checks to resampler.py, drops all non-numeric values.

* Single type check with ValueError raised if non-numeric.
2024-02-17 12:21:53 +08:00
Felix Weiler
1d1e762912 Add verbose and pretty flags to hkcli. (#71)
* Add verbose and pretty flags to hkcli.

Adds testing for console sink.

* Add argparse help strings to hkcli.
2024-02-17 12:20:45 +08:00
Felix Weiler
c3fcb395e9 Removed last remaining reference to MSB. Closes #49. (#63) 2024-02-12 08:21:05 +08:00
Aljoscha Sander
e987e6111c hotfix zmqbroker: adedd main() 2024-01-30 16:40:32 +01:00
Felix Weiler
f2809c26ee Fixed error handling in cli.py (#57)
* Fixed error handling in cli.py

* Removed reference to MSB_CONFIG_DIR

* Add annotations to joint.

* Release patch 0.4.5
2024-01-26 17:30:34 +01:00
Felix Weiler
bbcdbb624f Feature/command line interface (#54)
* Move scripts to dedicated run folder to be available from other sources.

* Additioal cmdline args for hkcli

* Add scripts.

* Remove deprecated PATH from factory.

* Skipping factory tests, need to redo.

* Add config options for hkcli.

* Bump patch version.
2024-01-22 19:00:17 +01:00
Felix Weiler
78ba98a587 Feature/async sources (#46)
* WIP: Added async file reader.

* Async resampling and synchronization refactored.

* Add async mqtt publisher. Remove queue from joint.

* Add async zmq publisher and subscriber.

* Modify integration tests for streaming.

* Name refactoring resampler.

* Added async source/sink to factory.

* Refactor joint and add integration tests.

* Add termcolor dev dependency

* Add conosole source and sink

* Add cli interface for different protocols

* Removed files unfit for merge.

* Fix review requests.

* Restore use of $MSB_CONFIG_DIR for now.

It seems that the default behaviour is not looking for
.config/heisskleber

* Remove version test, causing unnecessary failures.
2024-01-22 11:23:00 +01:00
Aljoscha Sander
43a6071ad3 fixed mixed up publisher subscriber addresses 2023-11-27 11:58:58 +01:00
Aljoscha Sander
07508d2899 WIP: working on zmq pub sub test 2023-11-27 09:27:07 +01:00
Aljoscha Sander
e1ef65ef66 WIP: pub and sub won't talk to each other (zmq) 2023-11-27 00:12:28 +01:00
Aljoscha Sander
7b6df59c10 bumped version up to 0.3.1 2023-11-26 18:13:51 +01:00
Aljoscha Sander
d16a4ce341 WHY THE FUCK DOES THE PRE-COMMIT RUFF HOOK PRODUCE A DIFFERENT OUTPUT THAN POETRY RUN RUFF>?@ 2023-11-25 18:51:16 +01:00
Aljoscha Sander
c754689c1f added broker test and removed signal handler from broker 2023-11-23 15:17:34 +01:00
Aljoscha Sander
cc64f823d0 WIP: fixed typo 2023-11-23 15:09:50 +01:00
Felix Weiler
efa3a504dd Replace black with ruff for formatting. 2023-11-15 15:36:41 +01:00
Felix Weiler
473a93ef9e Rename Subscriber to Source, Publisher to Sink. 2023-11-15 15:34:07 +01:00
Felix Weiler
3fe8d11a60 Add get_source and get_sink to heisskleber. 2023-11-15 14:57:23 +01:00
Felix Weiler
7f1b92f5cc Add more integration tests, run test on joint. 2023-11-13 20:31:31 +01:00
Felix Weiler
b055c68dfa Add Joint functionality and tests. 2023-11-13 20:06:41 +01:00
Felix Weiler
4ea5668db3 Cleaning up async mqtt subscriber. 2023-11-13 18:38:59 +01:00
Felix Weiler
1ea91f211d Tidy up messy merge conflict after stashing 2023-11-13 18:04:21 +01:00
Felix Weiler
03d1115c59 Fixed behaviour of streamer at f_in == f_out 2023-11-13 15:34:53 +01:00
Felix Weiler
0ba690cb4a WIP: Write more tests 2023-11-10 17:01:23 +01:00
Felix Weiler
55db1e325e Work in progress. 2023-11-09 12:56:09 +01:00
Felix Weiler
6ccc4d8f06 WIP: Async MQTT subscriber 2023-11-09 11:31:23 +01:00
Felix Weiler
7021eb1ab4 Fixed signature on zmq, added udp to factories. 2023-11-07 13:10:16 +01:00
Felix Weiler
774e0d8496 Breaking: Change signatures of Publisher.send and Subscriber.__init__.
This commit is a lot and adds breaking changes.
Also adds a UDP subscriber and publisher.
2023-11-07 12:41:07 +01:00
Felix Weiler
8cfc66ac45 WIP: Test, refactor 2023-11-06 22:52:48 +01:00
Felix Weiler
6729544f58 Minor fixes in network 2023-11-03 17:41:03 +01:00
Felix Weiler
6e53cbbf2a Add autodoc references and fix broker 2023-11-03 17:40:02 +01:00
Felix Weiler
8b44b61998 Add sources for network and config 2023-11-03 15:40:52 +01:00
felix
5e2cbb8cb8 Initial commit. 2023-10-31 14:37:16 +01:00