source: ammosreader/org/README.md@ c0573d4

guix
Last change on this file since c0573d4 was efb5900, checked in by Enrico Schwass <ennoausberlin@…>, 2 years ago

README.md updated

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[7e96694]1# AmmosReader
2
[efb5900]3Project containing necessary File- or SocketStream-Reader to read the
4various datastreams of Ammos
[7e96694]5
6# Installation
7
[efb5900]8## Standard pip install (not tested on all platforms)
[7e96694]9
[efb5900]10``` shell
11git clone http://gitlab.kid.local/kidzg/ammosreader.git
12cd ammosreader
13python3 -m pip install .
14```
[7e96694]15
[efb5900]16## Using the guix functional package manager
[7e96694]17
[efb5900]18First subscribe to the GUIX oai channel (see Chapter Add channel to
19system) in
20<https://gitlab.kid.local/kidzg/guix-deployment/-/blob/master/DevOps.org>)
[7e96694]21
[efb5900]22Then install using the guix
[7e96694]23
[efb5900]24``` shell
25guix package -i python-ammosreader
26```
[7e96694]27
[efb5900]28# Usage
[7e96694]29
[efb5900]30There are two scripts, which demonstrate the usage of the ammosreader
31package.
[7e96694]32
[efb5900]33## iqdw_reader.py
[7e96694]34
[efb5900]35``` shell
36python3 iqdw_reader.py 'path_to_iqdw_file'
37```
[7e96694]38
[efb5900]39## pdw_reader.py
[7e96694]40
[efb5900]41``` shell
42python3 pdw_reader.py 'path_to_pdw_file'
43```
[7e96694]44
[efb5900]45To minimize depencencies of the core package other scripts
46(audio_reader, ammos_viewer) are now stored in separate packages.
[7e96694]47
[efb5900]48# Logging
[7e96694]49
[efb5900]50If you use ammosreader in your own scripts a logger can be imported and
51used as follows:
[7e96694]52
[efb5900]53``` python
54from ammosreader import logger
55logger.warning("Put your warning here")
56```
[7e96694]57
[efb5900]58The name of the logfile is ammos.log The logger uses the directory
59stored in the AMMOS_LOG_DIR environment variable. If this variable is
60not set, /tmp is used as default. If the logfile is not writable, the
61standard logger config is used and the logs go directly to console
62(tty). (see ammos_logging.conf file in this repository)
Note: See TracBrowser for help on using the repository browser.