Wykres commitów

64 Commity (a8a83e960b16d955208ab501c594f3cad33d2a44)

Autor SHA1 Wiadomość Data
Konstantin Gründger a8a83e960b Introduce generic APRS pattern 2018-04-10 08:33:48 +02:00
Konstantin Gründger aa682a9e10 Let the parser parse comments 2018-03-18 17:55:01 +01:00
Konstantin Gründger 8f8974446c Parse (server) comments 2018-03-17 11:19:34 +01:00
Konstantin Gründger 7ca937a17d Skylines parser, fixes #38 2018-03-10 09:17:13 +01:00
Konstantin Gründger 48d0faf374 Renamed beacon_types and LT24, Spider and Spot parsers, fixes #37, #38, #40 2018-03-10 08:58:32 +01:00
Konstantin Gründger b1d26ce0c0 Better altitude validation 2018-01-13 13:49:26 +01:00
Konstantin Gründger 41e7128253 Allow valid timestamp only 2018-01-13 13:23:18 +01:00
Konstantin Gründger caffdabb4e Allow valid lat/lon only 2018-01-13 08:54:39 +01:00
Konstantin Gründger 1607738b12 IDs must be hexadecimal 2018-01-12 08:26:38 +01:00
Konstantin Gründger 9a90c347fa Test keepalive 2017-12-26 10:42:50 +01:00
Konstantin Gründger b309cfe805 Test unknown dstcall 2017-12-13 22:06:45 +01:00
Konstantin Gründger a580481590 Test AprsClient gets an empty string 2017-12-13 20:01:33 +01:00
Konstantin Gründger c2b82817c7 Fix for fortyfour #44 2017-12-13 19:26:56 +01:00
Konstantin Gründger 85b7ae5adb Refactoring 2017-12-02 09:31:03 +01:00
Konstantin Gründger 2ccdcd90be put parser functions in classes 2017-10-05 08:10:28 +02:00
Konstantin Gründger 0c73709058 Better test output 2017-10-02 19:22:34 +02:00
Konstantin Gründger 0cf71b99af Refactoring 2017-10-02 19:22:34 +02:00
Konstantin Gründger 49fb94272d Dont let fail the online test if we get a beacon where the parser is not implemented yet 2017-10-02 19:22:34 +02:00
Konstantin Gründger 384f0edc7e Fixes #25 2017-10-02 19:22:34 +02:00
Konstantin Gründger 8857a31e78 Allow negative altitudes 2017-10-02 19:19:39 +02:00
Konstantin Gründger 44454c8676 Make pytest work with nosetest 2017-10-01 14:29:45 +02:00
Konstantin Gründger 447af69337 Fixed AprsClient test 2017-10-01 13:00:03 +02:00
Konstantin Gründger e613abdbcb Fixed OGNTRK parser 2017-10-01 12:59:53 +02:00
Konstantin Gründger e1247467e5 Added test for receiver OGNSDR 2017-09-30 19:27:46 +02:00
Konstantin Gründger 7361ea7392 Fixed createTimestamp 2017-09-30 18:25:02 +02:00
Konstantin Gründger 054c9eeed0 Fixed ddhhmm vs. hhmmss problem 2017-09-30 14:28:00 +02:00
Konstantin Gründger 33a7690f7d Added Tracker (OGNTRK) and Receiver (OGNSDR) parser 2017-09-30 11:42:16 +02:00
Konstantin Gründger 127f3935d2 Separated parser in separate files 2017-09-30 09:45:50 +02:00
Konstantin Gründger d995f0320b Cosmetics 2017-09-30 09:45:50 +02:00
Konstantin Gründger ca5636456a Add APRS type to message 2017-09-30 09:45:50 +02:00
Konstantin Gründger 6044e58773 Tests for OGFLR, OGNTRK and OGNSDR 2017-09-30 09:45:50 +02:00
Konstantin Gründger 5faf78b239 Test beacon_type 2017-09-30 09:45:50 +02:00
Konstantin Gründger a57a17e644 Split naviter test into aprs part and comment part 2017-09-30 09:45:50 +02:00
Konstantin Gründger e63b746504 parser: distinguish between different dstcalls 2017-09-30 09:45:50 +02:00
Konstantin Gründger a36d2a76ff Added APRS beacons for LT24, Naviter, Skylines, Spider, SPOT 2017-09-30 09:45:50 +02:00
Konstantin Gründger c2c38bb337 Timestamp zulu can also be a z instead h and other small improvements 2017-09-30 09:45:50 +02:00
Konstantin Gründger 5694ddad8a Same tests as in ogn-commons-java 2017-09-17 14:32:31 +02:00
Konstantin Gründger 9ae25a4500 Added support for heared aircrafts 2017-09-09 11:28:22 +02:00
Anze Kolar 83aa5a5e79 Update tests to work with python versions < py3.6 2017-07-20 15:49:26 +02:00
Anze Kolar 13cc75cf03 Allow client to do sequential connect-disconnect
With introduction of the kill switch it was impossible to restart the
consumption of the OGN messages after a .disconnect() method has been
called.

This commit resets the kill flag after .connect() has been called.

Minimal example:

```
client = AprsClient(aprs_user='testuser', aprs_filter='')
client.connect()
client.run(callback=lambda x: x, autoreconnect=True)
...
client.disconnect()
client.connect()
client.run()
```
2017-07-20 15:28:01 +02:00
Anze Kolar 182f9518a4 Add kill flag to AprsClient
When starting an AprsClient with AprsClient.run(...) the client enters
a loop without an exit condition (i.e. a while True loop).  If autoreconnect
is set to True, it is impossible to exit the aforementioned loop even if
AprsClient.disconnect() is called.

This causes problems when running the client in a thread (or as a
background service, etc.) as the process will not join nor terminate
unless explicitly shutdown with SIGKILL.

Minimal example:

```
import signal

from ogn.client import AprsClient
from ogn.parser import parse_aprs, parse_ogn_beacon, ParseError

def process_beacon(raw_message):
    print('Received message')

client = AprsClient(aprs_user='N0CALL')
signal.signal(signal.SIGTERM, lambda signo, stackno: client.disconnect())
client.connect()
client.run(callback=process_beacon, autoreconnect=True)
```

This commit fixes such issues by adding a kill flag that is raised when
calling AprsClien.disconnect() to the while conditions of both loops inside
AprsClient.run().

Note: the outermost loop could still remain a while True loop as the
exit condition is checked at the end of the loop body.
2017-07-20 11:12:04 +02:00
Konstantin Gründger d0044deb47 Release v0.7.1 2017-06-05 10:07:04 +02:00
Konstantin Gründger 36ce45fe20 Empty APRS comment belongs to a receiver beacon 2017-05-16 14:36:38 +02:00
Konstantin Gründger 44cc855d6c Regex patterns are more tolerant, so remove the „incomplete xy“ tests
Remove unused imports
2017-05-07 13:13:21 +02:00
Konstantin Gründger c98c8eca04 The comment is just optional 2017-05-07 12:56:06 +02:00
Konstantin Gründger 00eaffd2aa Protocol parts not available will set to None instead of 0.0 2017-05-07 11:47:58 +02:00
Konstantin Gründger 5465f23c83 „heared aircrafts“ not supported yet 2017-05-07 11:37:39 +02:00
Konstantin Gründger c3742b874c Added tests for 0.2.6
no message
2017-05-07 11:34:11 +02:00
Fabian P. Schmidt 56caf6fed3 parser/test_v025: Add missing reference_date 2016-10-17 00:48:46 +02:00
Konstantin Gründger 43f2f344f5 Renaming signal_strength -> signal_quality, power -> signal_power 2016-10-13 19:34:34 +02:00