Meisterschueler
bbe66553f2
Merge pull request #27 from kerel-fs/pypi/+package
...
Add setup.py to create a package
2016-01-12 14:07:37 +01:00
Fabian P. Schmidt
3a0a91527f
Add setup.py to create a package
...
Fixes glidernet/ogn-python#16 .
2016-01-12 13:56:18 +01:00
Meisterschueler
0e49511127
Merge pull request #26 from kerel-fs/travis/+flake8
...
Travis CI: Replace pep8 with flake8
2016-01-09 09:25:39 +01:00
Fabian P. Schmidt
2febeb11f4
ogn/model: suppress 'unused import' warnings
...
Ignore 'unused import' warnings from flake8 for ogn/model/__init__.py
2016-01-06 00:37:54 +01:00
Fabian P. Schmidt
8eb87ee7ee
Travis CI: Replace pep8 with flake8
2016-01-06 00:37:47 +01:00
Fabian P. Schmidt
aaa75e2fdc
ogn/collect/database: Fix imports
2016-01-06 00:36:38 +01:00
Fabian P. Schmidt
4baeb83516
Cleanup
2016-01-06 00:23:45 +01:00
Fabian P. Schmidt
d5dc94903d
utils: Remove unused wgs84_to_sphere
...
Use an external package[1] instead.
[1]: eg. https://pypi.python.org/pypi/haversine
2016-01-06 00:06:27 +01:00
Konstantin Gründger
7fb4763422
Forgotten debug statement
2015-12-16 19:58:05 +01:00
kerel-fs
37b7250de9
Merge pull request #25 from glidernet/fix/default_utc_now
...
Fix/default utc now
2015-12-16 19:35:37 +01:00
Konstantin Gründger
15d12d0d82
Fix test
2015-12-16 18:29:08 +01:00
Konstantin Gründger
c284272109
Test default reference_date
2015-12-16 18:28:03 +01:00
Konstantin Gründger
661f174f38
Fixed test
2015-12-10 21:56:06 +01:00
Meisterschueler
eb738d232c
Merge pull request #24 from kerel-fs/aprs/+AmbigousTimeError
...
Add user-defined exception AmbigousTimeError
2015-12-10 21:35:56 +01:00
Fabian P. Schmidt
757e9143a8
aprs_utils: Raise AmbigousTimeError for outdated packets
...
The aprs string only contains time information, no date.
Manual date correction is applied +-one hour around midnight.
Thus, packets older than one hour are dropped.
2015-12-10 17:44:13 +01:00
Fabian P. Schmidt
2e224a16b5
Add user-defined exception AmbigousTimeError
2015-12-10 17:40:23 +01:00
kerel-fs
a0a84fb6e4
Merge pull request #23 from Meisterschueler/master
...
Bugfixed createTimestamp
2015-12-10 17:39:54 +01:00
Konstantin Gründger
60745fb6f3
Bugfixed createTimestamp
2015-12-10 07:43:18 +01:00
Konstantin Gründger
e62203638e
Separated valid OGN messages
2015-12-09 23:16:21 +01:00
Meisterschueler
d65e8c6d97
Merge pull request #21 from kerel-fs/cli/-celery
...
Model: Fix AddressOrigin; CLI: Remove celery dependency
2015-12-09 13:46:44 +01:00
Fabian P. Schmidt
b3e1f7b0a7
CLI: Remove celery dependency for simple tasks
...
Only `logbook.compute` still requires a running celery backend.
The celery tasks 'update_ddb_from_*' were renamed to
'database.import_ddb' and 'database.import_file'.
2015-12-09 12:07:55 +01:00
Fabian P. Schmidt
27db22d8c8
CLI: Rename 'db.stats' to 'show.devices.stats'
2015-12-09 12:07:55 +01:00
Fabian P. Schmidt
5e01e235cb
Remove duplicated example file 'custom_ddb.txt'
...
The other example file remains at './tests/custom_ddb.txt'.
2015-12-09 12:07:55 +01:00
Fabian P. Schmidt
8313ac180c
Model: Fix hyphenation of keyword 'user_defined'
2015-12-09 12:07:47 +01:00
Fabian P. Schmidt
cb3ebf4988
Model: Change type of AddressOrigin again.
...
Fixes db.update_ddb_ogn by removing the type Enum of AddressOrigin.
Partly reverts commit 04137acaf6
since
this commit broke db.update_ddb_ogn.
2015-12-09 02:50:27 +01:00
Meisterschueler
cfab8ececf
Merge pull request #15 from Turbo87/patch-1
...
README: Fix list rendering
2015-12-05 11:34:51 +01:00
Tobias Bieniek
8ba39a1d76
README: Fix list rendering
...
The list was previously rendered with "1. ... / 1. ... / 1. ..." instead of "1. ... / 2. ... / 3. ...". I've also removed the `$` prefixes to make it easier to copy-paste the commands.
2015-12-05 10:04:26 +01:00
Meisterschueler
3f41c6b808
Merge pull request #19 from kerel-fs/model/addressorigin
...
Change AddressOrigin type to Enum; Add ddb stats
2015-12-02 21:47:26 +01:00
Konstantin Gründger
93ac44e574
Devices stats
2015-12-02 12:52:16 +01:00
Fabian P. Schmidt
04137acaf6
Model: Change type of AddressOrigin to Enumeration.
2015-12-02 12:51:08 +01:00
Meisterschueler
6234a4aa11
Merge pull request #17 from kerel-fs/feature/+gettrackable
...
ogn.utils: Add get_trackable.
2015-12-01 21:33:32 +01:00
Fabian P. Schmidt
bebf11edf3
ogn.utils: Add get_trackable.
2015-12-01 20:41:29 +01:00
Fabian P. Schmidt
49104499d9
Merge pull request #14 from kerel-fs/logging
...
Improve logging in manage.py and fix ogn.gateway
2015-11-30 18:02:06 +01:00
Fabian P. Schmidt
eb7ccf3ab9
Tests: Add tests for ogn.gateway.client.ognGateway
2015-11-30 17:29:20 +01:00
Fabian P. Schmidt
e77ce6db0a
Tests: Remove test_run_multiple_errors
...
Since commit 81fccc154e
,
the class ognGateway catchs all socket exceptions,
thus this test is obsolete now.
2015-11-30 17:23:19 +01:00
Fabian P. Schmidt
ff02699f7c
gateway: Use the correct aprs port.
...
For client-defined filters, use port 14580;
for full-feed, use port 10152.
2015-11-30 15:26:20 +01:00
Fabian P. Schmidt
81fccc154e
gateway: Add callback 'process_beacon'
...
This change enables us to define a custom callback which is
called when the gateway receives a packet
(e.g. save the incoming beacon in a database and generate
some statistics/aggregate data).
2015-11-30 15:11:10 +01:00
Fabian P. Schmidt
851559aced
Logging: Enable custom logfile location.
2015-11-30 15:03:38 +01:00
Fabian P. Schmidt
76ec41a2ae
Merge pull request #13 from kerel-fs/fix/dependencies
...
Fix dependencies; add pep8 check; move gateway to a separate file.
2015-11-29 22:49:50 +01:00
Fabian P. Schmidt
6af31fe7a7
Move ogn client (gateway) to a separate file.
...
The documentation[1] says:
> In the simplest case, __init__.py can just be an empty file,
> but it can also execute initialization code for the package or
> set the __all__ variable, described later.
A class like 'ognGateway' can't be considered 'initialization code'.
[1]: https://docs.python.org/3/tutorial/modules.html#packages
2015-11-29 21:59:34 +01:00
Fabian P. Schmidt
57f51ec111
Fix pep8 again.
2015-11-29 21:52:21 +01:00
Fabian P. Schmidt
ec80b90863
travis ci: Add pep8 check.
2015-11-29 21:42:16 +01:00
Fabian P. Schmidt
316f71c8e4
Fix pep8.
2015-11-29 21:37:41 +01:00
Fabian P. Schmidt
b391fca45b
Fix show.receiver statistics.
...
Use current time for calculations,
not the start-time of celery.
2015-11-29 21:23:25 +01:00
Fabian P. Schmidt
fe83440eb4
Add missing dependency on alembic.
2015-11-29 20:56:59 +01:00
Meisterschueler
ce692e4194
Merge pull request #11 from Meisterschueler/master
...
Changed id to address
2015-11-28 10:58:11 +01:00
Konstantin Gründger
cfe54802e5
adjust db scheme
2015-11-28 10:52:41 +01:00
Konstantin Gründger
c5693ba00e
IDs to address
2015-11-27 21:29:00 +01:00
Konstantin Gründger
9f054b5b80
Update todos
2015-11-26 08:35:41 +01:00
Meisterschueler
6a84c0f9de
Merge pull request #10 from Meisterschueler/master
...
Fixed Logbook
2015-11-25 20:25:33 +01:00