Wykres commitów

209 Commity (b812b9b38f6eaa6a087064f9c52831b64e2cd29e)

Autor SHA1 Wiadomość Data
Konstantin Gründger f047f0967c Added dstcall 2016-09-28 11:41:51 +02:00
dspreitz 9a00422b26 Modified reference_date which is passed 2016-09-28 11:41:51 +02:00
Fabian P. Schmidt 2b69ef5cac import_logfile: Add reference_date argument 2016-09-28 11:41:44 +02:00
dspreitz ac03cc2ab6 Added parameter passing of datetime 2016-09-28 11:37:57 +02:00
dspreitz 039f402d64 Added function import_logfile 2016-09-28 11:31:40 +02:00
Konstantin Gründger 759026b015 Delete entries before import new device infos 2016-07-17 22:57:54 +02:00
Konstantin Gründger 41bbecd8aa Insert takeoff/landings only if they not already exist 2016-07-17 10:25:56 +02:00
Konstantin Gründger 943203804f Optional: filter airports by country 2016-07-14 21:14:55 +02:00
Konstantin Gründger a039ee3185 Better detection with multiple receivers in sight 2016-07-14 21:03:55 +02:00
Konstantin Gründger 08c0a73d54 Update: complete flights only 2016-07-06 19:34:55 +02:00
Konstantin Gründger d857f88512 Fixed tests... 2016-07-04 22:54:37 +02:00
Konstantin Gründger acd606aa2e Calculate end id 2016-07-03 09:56:02 +02:00
Konstantin Gründger 634e196f1e Fixed task settings 2016-07-03 09:25:40 +02:00
Konstantin Gründger 910a8788d4 Remove logbook constraint 2016-07-02 20:18:20 +02:00
Konstantin Gründger acd1128dc0 Split logbook and make it testable 2016-07-02 20:07:22 +02:00
Konstantin Gründger 6d1d68e948 Get airports by relationship 2016-07-02 17:59:57 +02:00
Konstantin Gründger 72d8445570 Query fixes 2016-07-02 16:31:33 +02:00
Konstantin Gründger 89a3a659ac Refactoring 2016-07-01 07:19:31 +02:00
Konstantin Gründger 5446ff6ffd Fix ddb import 2016-07-01 07:00:17 +02:00
Konstantin Gründger f9c88a9cd7 Update existing logbook entries 2016-06-30 22:43:09 +02:00
Konstantin Gründger d8d4cd5c41 Refactoring 2016-06-30 21:10:46 +02:00
Konstantin Gründger 49b8a0b81f Extract window parameters 2016-06-30 20:31:24 +02:00
Konstantin Gründger 90911bf1b2 Fix: max altitude query 2016-06-30 07:13:36 +02:00
Konstantin Gründger f08bf220c8 Persist logbook 2016-06-29 23:26:30 +02:00
Konstantin Gründger 998cbf4990 Use utc_timedelta only for splitting of takeoff and landing 2016-06-28 20:00:24 +02:00
Konstantin Gründger 76b5827778 Bugfix: use AircraftBeacon.id for sorting 2016-06-28 19:52:49 +02:00
Konstantin Gründger e495d52234 flake8 beautifications 2016-06-26 17:59:43 +02:00
Konstantin Gründger 7a9db4f97f Instead of timestamp use id for computation 2016-06-26 17:46:09 +02:00
Konstantin Gründger 475364fd0c Fixed stats about Device and DeviceInfo 2016-06-24 08:03:22 +02:00
Konstantin Gründger b80b5d9720 Replace Device with DeviceInfo 2016-06-21 20:24:15 +02:00
Konstantin Gründger 98489cdba5 Added DeviceInfo, fixes #53 2016-06-21 19:34:05 +02:00
Konstantin Gründger 9768229993 Create PostGIS extension 2016-06-05 08:33:13 +02:00
Konstantin Gründger 7464b546af Remove unused fields from TakeoffLanding 2016-06-03 20:21:12 +02:00
Konstantin Gründger f935f0b583 Improve recognition of different takeoff and landing dates 2016-06-03 19:08:12 +02:00
Konstantin Gründger 3e2b5455a1 Fixed get_ddb test 2016-06-02 20:32:04 +02:00
Konstantin Gründger cb28d56cea Flake8 fixes 2016-06-02 19:53:53 +02:00
Konstantin Gründger 894cf3183b Optional date filter 2016-06-01 19:41:32 +02:00
Konstantin Gründger 69cce3a57b Better receiver update informations 2016-06-01 08:36:14 +02:00
Konstantin Gründger 2b59894664 Remark if different airport used for takeoff or landing 2016-05-31 21:27:24 +02:00
Konstantin Gründger afd46eeb32 Add aircraft_type 2016-05-31 20:56:09 +02:00
Konstantin Gründger 31a1282afc more accurate takeoff location 2016-05-30 21:24:46 +02:00
Konstantin Gründger 6ab3d1a392 Consider landable points only 2016-05-30 21:24:46 +02:00
Konstantin Gründger 829f52f658 Fix: get country code only if we have a valid position 2016-05-30 21:24:46 +02:00
Konstantin Gründger 70ce7eebff Import Welt2000 waypoints instead of germany 2016-05-30 21:24:46 +02:00
Konstantin Gründger 89b9daf26c Changed address origin handling 2016-05-30 21:24:46 +02:00
Konstantin Gründger 132ae96499 Introduce relations - scheme refactoring 2016-05-30 21:24:46 +02:00
Konstantin Gründger 61f6194d8c Added airport manager 2016-05-30 21:24:46 +02:00
Konstantin Gründger dbda5a9c4b Speed up takeoff / landing detection 2016-04-29 14:03:21 +02:00
Konstantin Gründger b5f111c257 Remove obsolete pre postgis stuff
Removed obsolete test
2016-04-28 21:51:03 +02:00
Konstantin Gründger f812b0af4d Fixed logbook.show
Cosmetics
2016-04-28 21:51:01 +02:00
Konstantin Gründger 84cb2d264f From lat/lon to POINT
Flake8 suggestions

Add shapely

Fixed update_receivers

migrate table takeoff_landing
2016-04-28 21:50:59 +02:00
Konstantin Gründger 201c41f12f Introduce Airport 2016-04-22 10:44:39 +02:00
Fabian P. Schmidt 86f2a606e5 Use python-ogn-client and remove duplicated code
This repository splitted up into two separate repositories:
- python-ogn-client, including an APRS- & OGN-Parser and an APRS-Client
- ogn-python (the repository this commit belongs to), including a database, CLI and logbook
2016-03-18 22:58:49 +01:00
Konstantin Gründger ba7ae37ef2 Bugfix for getting receiver names 2016-02-21 15:28:19 +01:00
Konstantin Gründger 76362ddfbf Parse hardware version as hex 2016-02-19 17:59:23 +01:00
Fabian P. Schmidt d69476158b ogn.gateway: Remove implicit sqlalchemy dependency
The callback gets the beacon data by a python dict instead of a sqlalchemy class
2016-02-18 22:49:56 +01:00
Fabian P. Schmidt 6a31a648cb Move parsing from 'ogn.model.*' to 'ogn.parser'
Use named capture groups for parsing.
Regular expressions for receiver and aircraft beacons are from ruby ogn-client.
The separated regular expressions for parsing of aircraft beacons were
concatenated to harmonize with other ogn clients (at zero costs,
currently all packets stick to the common token sequence).

regexp for receiver and aircraft beacons:
Copyright (c) 2015 Sven Schwyn; licensed under The MIT License
2016-02-18 22:49:56 +01:00
Fabian P. Schmidt 1b8f27331e exceptions: Add common ancestor class ParseError 2016-02-18 22:35:52 +01:00
Fabian P. Schmidt 2012310ad2 Rename module ogn.exceptions to ogn.parser.exceptions 2016-02-18 16:01:06 +01:00
Fabian P. Schmidt 756ac0e337 Rename module ogn.aprs_utils to 'ogn.parser.utils' 2016-02-18 15:49:55 +01:00
Fabian P. Schmidt 37ab7991f3 Move function 'create_aprs_login' to ogn.gateway 2016-02-18 15:42:21 +01:00
Fabian P. Schmidt ea75b2a4ea Release v0.2.1 2016-02-17 20:20:58 +01:00
Konstantin Gründger 9b4a0124e8 flake8 fixes 2016-02-11 08:08:11 +01:00
Konstantin Gründger f3da85576c Fix: receiver sometimes not added 2016-02-11 07:40:36 +01:00
Konstantin Gründger eb772bdc92 Fix: "" is not "null()" (sqlalchemy) or "None" (python) 2016-02-05 07:20:58 +01:00
Fabian P. Schmidt 65aefc39a4 collect/receiver: Improve formatting 2016-02-04 23:12:16 +01:00
Konstantin Gründger 23a364761f fixed flake8 2016-02-04 19:14:31 +01:00
Konstantin Gründger 0cd46d2be2 Moved receiver update from ogn.collect.database to ogn.collect.receiver 2016-02-04 18:31:58 +01:00
Konstantin Gründger 528bcd8e91 Removed obsolete string formatting operations 2016-02-03 23:22:04 +01:00
Konstantin Gründger 018ea8c549 Changed obsolete string formatting operations 2016-02-03 23:19:25 +01:00
Konstantin Gründger b135a9dfd0 Update receivers 2016-02-03 23:09:11 +01:00
Fabian P. Schmidt d8046043ae CLI: Add command db.upgrade
This command is a shortcut for "alembic upgrade head".
2016-01-31 02:25:21 +01:00
Fabian P. Schmidt 81f05c2102 celery: Add missing ogn.collect.heatmap 2016-01-29 08:12:28 +01:00
Fabian P. Schmidt 31b2aaddda celery: Add scheduled task update_beacon_receiver_distance
Celery beat is used to call update_beacon_receiver_distance_all
every five minutes.
The time interval is configurable by adjusting the configuration file.
2016-01-29 06:42:56 +01:00
Fabian P. Schmidt ae3788764d celery: Add task update_beacon_receiver_distance
Replaces ogn.commands.dbutils.update_receiver_childs
2016-01-29 06:42:56 +01:00
Fabian P. Schmidt d3c38924e2 ogn/utils.py: Rename wgs84_to_sphere to haversine_distance 2016-01-29 06:42:56 +01:00
Konstantin Gründger 6cc6378496 Add (slow) [radius, theta, phi] calculation 2016-01-29 03:47:58 +01:00
Fabian P. Schmidt e22e6a619e gateway: Add logging of dropped packets 2016-01-29 03:44:21 +01:00
Fabian P. Schmidt 794ab5748f CLI: Move alembic imports inside the calling function
Reduces execution time of "manage.py" a bit.

An import of alembic.config takes a relatively long time and
"manage.py" by itself is slow.
2016-01-29 03:44:21 +01:00
Fabian P. Schmidt 6aec9ee35d Add central configuration by python modules
Configuration module is loaded from environment variable
OGN_CONFIG_MODULE, defaults to "config/defaults.py".
2016-01-29 03:44:20 +01:00
Konstantin Gründger 539630ea91 persist relevant receiver_beacon data 2016-01-21 23:18:02 +01:00
Fabian P. Schmidt d5dfbc6ea1 logbook.py: Add missing keyword "return"
Bug introduced in 15bcbc2971.
2016-01-12 22:33:37 +01:00
Fabian P. Schmidt 15bcbc2971 logbook.py: Fix PEP8
"Always use a def statement instead of an assignment statement  that
binds a lambda expression directly to a name."
2016-01-12 22:27:23 +01:00
Fabian P. Schmidt 07bde91c59 Add "NOT IMPLEMENTED" to show.receiver.list_all
In fact, the command is correctly implemented
but the receiver table is always empty.
2016-01-12 19:28:03 +01:00
Fabian P. Schmidt 0d30b141c6 CLI: Add command db.drop 2016-01-12 18:36:08 +01:00
Fabian P. Schmidt 6222e13225 Stamp alembic version at db.init 2016-01-12 18:35:33 +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
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 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
Konstantin Gründger 15d12d0d82 Fix test 2015-12-16 18:29:08 +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
Konstantin Gründger 60745fb6f3 Bugfixed createTimestamp 2015-12-10 07:43:18 +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