Luflosi
d4dcc75711
Avoid "DeprecationWarning: invalid escape sequence"
...
Without this change, many warnings like this will be generated while running pytest:
```
test/test_template.py:3
/build/source/test/test_template.py:3: DeprecationWarning: invalid escape sequence '\/'
"""!
```
This can also be seen when manually running python with warnings enabled.
This happens because the comment uses a multiline string and Python interprets the backslash in the logo as an escape character and complains that \/ is not a valid escape sequence. To fix this, prepend the string with the letter r to indicate that the backslash should be treated as a literal character, see https://docs.python.org/3/reference/lexical_analysis.html#index-20 .
I also applied this change to all the comment strings since that shouldn't break anything and to establish it as a pattern for the future so this problem hopefully never happens again.
This is what I did specifically:
- Change the comment at the top of bw_client.py and bw_server.py to start with `"""!` since that seems to be the pattern here
- Search-and-Replace all occurances of `"""!` with `r"""!`
- Manually change the strings in `logoToLog()` in boswatch/utils/header.py
2023-09-19 17:49:09 +02:00
Schrolli91
ef01fe51e8
add decoder for test mode
2021-01-09 09:24:10 +01:00
Schrolli91
f3f188f93b
move decoding to InputBase.addToQueue()
2021-01-08 21:39:41 +01:00
B-Watch
7f35d0592e
Added PulseAudio as Source
2020-06-29 21:11:07 +02:00
kirschbaump
c2aab648c8
Neue InputSource - LineIn ( #38 )
...
* Line-In input Source - code
* bugfix
* Docs
* code cleanup
* cleanup
* code cleanup
* Update docu/docs/config.md
Co-Authored-By: Jan Speller <janspeller1@gmail.com>
* fixes
Co-authored-by: Jan Speller <janspeller1@gmail.com>
2020-04-20 08:18:29 +02:00
Jan Speller
78958b1795
add assert and warning for python version
2020-04-11 22:04:08 +02:00
Bastian Schroll
bf16a5c82f
adding sdrInput and inputBase classes
2019-10-28 21:24:09 +01:00
Bastian Schroll
2e188e6f7a
remove log messages
2019-10-25 23:26:12 +02:00
Bastian Schroll
543719a917
fix some not defined warnings
2019-10-24 19:01:35 +02:00
Bastian Schroll
41a8fc740d
add encoding for testdata reader
2019-10-24 13:29:16 +02:00
Bastian Schroll
a3494b54a6
improve testmode
2019-10-24 08:59:33 +02:00
Bastian Schroll
6233e9fbd4
added testmode to bw_client
2019-10-24 08:45:18 +02:00
Bastian Schroll
361afe2ff1
fix bug
2019-10-23 08:28:26 +02:00
Bastian Schroll
3cdd0297dd
fix some pep8 in bw_client
2019-10-22 17:31:01 +02:00
Bastian Schroll
0d338dc10d
stderr of process to logfile
2019-10-22 17:16:38 +02:00
Bastian Schroll
2a139aeb29
add config for rtl and mm bin-path
2019-10-21 09:43:25 +02:00
Bastian Schroll
a92bd2c4fa
fix typo
2019-10-20 21:37:51 +02:00
Bastian Schroll
6f364b8e6a
fix server client issues
...
- add test for server stops until clients connected
- add header for data packets
- check header on read and read only data size in
- make readings non blocking
2019-10-20 17:21:03 +02:00
Bastian Schroll
8db940bf8c
remove multi-freq support
2019-10-18 22:28:50 +02:00
Bastian Schroll
088be32a62
add decoding start log
2019-10-18 21:34:01 +02:00
Bastian Schroll
8a948597d4
some changes in bw_client
2019-10-18 21:07:14 +02:00
Bastian Schroll
bc35dc5e2e
read decoder from config
2019-10-18 13:34:47 +02:00
Bastian Schroll
806a0d476a
add rtl_fm using in bw_client
2019-10-18 09:19:13 +02:00
Bastian Schroll
bbe02b7459
use config in input thread
2019-10-10 20:55:35 +02:00
Bastian Schroll
2f948b9e2d
improve bw_client input thread
2019-10-10 19:36:11 +02:00
Bastian Schroll
0b6814d7fb
fix some pep8 violations
2019-10-08 20:29:00 +02:00
Bastian Schroll
48b1dd56f2
add rtl_fm
2019-09-21 20:11:51 +02:00
Bastian Schroll
87457392ea
refactor server/client
2019-09-21 17:35:26 +02:00
Bastian Schroll
4f389723c0
some refactorings
2019-03-11 07:54:11 +01:00
Bastian Schroll
36e02eca4c
some fixes in processManager
2019-03-09 11:42:50 +01:00
Bastian Schroll
fc6e0111af
Merge branch 'develop' into process_manager
2019-03-08 07:54:49 +01:00
Bastian Schroll
bb1fd118f5
little improvements in processManager class
2019-03-08 07:44:44 +01:00
Bastian Schroll
bfa25d124a
rename testdata file - cause pytest err
2019-03-05 12:41:27 +01:00
Bastian Schroll
66e0ede4c0
add testdata to the client
2019-03-05 12:32:56 +01:00
Bastian Schroll
7256cfca3a
fix pylint in server and client (imports)
...
# pylint: disable=wrong-import-position
# pylint: disable=wrong-import-order
2019-03-03 19:24:05 +01:00
Bastian Schroll
3feda678e2
some little fixes
2019-03-03 19:14:00 +01:00
Bastian Schroll
f19bf7a96a
remove bad exception catching in client and server
2019-03-03 00:58:53 +01:00
Bastian Schroll
39d88f3e3d
implement new router system in server
2019-03-02 09:17:20 +01:00
Bastian Schroll
a42676010e
some reworks
...
- rework configYaml
- rework router mechanism test
- move plugin and module files
2019-03-01 12:09:12 +01:00
Bastian Schroll
cc680b578f
simplify server and and client
2019-02-27 22:05:59 +01:00
Bastian Schroll
e2ca436e5d
make client ready for broadcast function
2019-02-27 12:08:55 +01:00
Bastian Schroll
60912ce705
first tests with yaml config
2019-02-27 08:39:54 +01:00
Bastian Schroll
90ccbf9d0d
use new yaml config loader in client
2019-02-27 08:02:40 +01:00
Bastian Schroll
c2b3093bb5
Merge branch 'develop' into server_queue
2018-09-21 12:53:06 +02:00
Bastian Schroll
5c6039ef71
rework server class (added python queue support)
2018-09-20 23:35:56 +02:00
Bastian Schroll
d95ab7781e
combine some todos
2018-09-19 14:53:56 +02:00
Bastian Schroll
f1bf468c2a
make decoder classes <<static>>
2018-09-09 16:34:44 +02:00
Bastian Schroll
a1e1be6275
change decoder strategy
2018-09-09 16:17:49 +02:00
Bastian Schroll
19796ab746
add test files for server and client
2018-06-15 22:20:20 +02:00