Wykres commitów

116 Commity (a5804815904851d222548eb6d861cc1d77b99813)

Autor SHA1 Wiadomość Data
Konstantin Gründger a580481590 Test AprsClient gets an empty string 2017-12-13 20:01:33 +01:00
Meisterschueler 483b25d4fa
Merge pull request #45 from Meisterschueler/fix/UnicodeDecodeError
Fix for fortyfour #44
2017-12-13 19:37:06 +01:00
Konstantin Gründger c2b82817c7 Fix for fortyfour #44 2017-12-13 19:26:56 +01:00
Meisterschueler 7d738931e2
Merge pull request #43 from Meisterschueler/parser_classes
Parser classes
2017-12-02 10:43:30 +01:00
Konstantin Gründger d1e394c1d7 Added installation instructions 2017-12-02 10:33:45 +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
Meisterschueler 53ecdb251e Merge pull request #36 from Meisterschueler/prepare/release
Prepare/release
2017-10-02 20:12:04 +02:00
Konstantin Gründger 382eae4ef7 Release v0.8.0 2017-10-02 19:43:06 +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
Meisterschueler 1226e2679c Merge pull request #34 from Meisterschueler/fix/ogntrk_beacon
Fix/ogntrk beacon
2017-10-01 14:30:18 +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
Meisterschueler cd6b5a62c9 Merge pull request #33 from Meisterschueler/fix/+parser
Fix/+parser
2017-09-30 19:29:04 +02:00
Konstantin Gründger c7eb914f40 Updated readme 2017-09-30 19:27:46 +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
Meisterschueler 94a9150a22 Merge pull request #32 from Meisterschueler/feature/+tracker_receiver_parser
Feature/+tracker receiver parser
2017-09-30 14:28:53 +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
Meisterschueler dd40892ca4 Merge pull request #31 from Meisterschueler/feature/+naviter_beacons
Feature/+naviter beacons
2017-09-30 09:46:09 +02:00
Konstantin Gründger d122fc1d3f Update readme 2017-09-30 09:45:50 +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 4f1f6c09ae Added group 'relay' 2017-09-30 09:45:50 +02:00
Konstantin Gründger 76a45bc531 Each dstcall gets a separate treatment 2017-09-30 09:45:50 +02:00
Konstantin Gründger 5fcaf04125 If we have a dstcall other than "APRS" the pattern must match 2017-09-30 09:45:50 +02:00
Konstantin Gründger 63d8d2fc4e Implemented Naviter parser 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 e91f755e57 Fix badge 2017-09-15 21:28:01 +02:00
Konstantin Gründger fecfe5dd98 Update changelog and contributors 2017-09-09 11:35:20 +02:00
Konstantin Gründger 1ec36c4d17 Merge branch 'master' of https://github.com/Meisterschueler/python-ogn-client 2017-09-09 11:29:10 +02:00
Konstantin Gründger 9ae25a4500 Added support for heared aircrafts 2017-09-09 11:28:22 +02:00
Konstantin Gründger 238fb322c1 Added support for heared aircrafts 2017-09-09 10:53:07 +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