1
0
Fork 0
Commit Graph

16 Commits (d4fb5189d19aa7fc12e1adcfbc7b3ca07452fed6)

Author SHA1 Message Date
Corey Shields d4fb5189d1 future imports and remove unicode strings
adds from __future__ import unicode_literals, absolute_import, division, print_function to all files, removes unicode strings from RTD conf.py (none other were found in our codebase)

See also https://docs.djangoproject.com/en/1.11/topics/python3/#unicode-literals

fixes #290

tested locally in docker
2019-06-30 19:23:55 -04:00
Vasilis Tsiligiannis a7e80bb4e5 Save 'satnogs-decoders' version in decoded data structure
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-05-11 14:11:53 +03:00
Vasilis Tsiligiannis 655f98f39c Use 'isort' to fix order of imports
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-04-27 14:08:11 +03:00
Vasilis Tsiligiannis 140180b6b3 Reformat code with 'yapf', check format using 'tox'
Use configration based on Django coding style guidelines

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-04-27 12:32:33 +03:00
Corey Shields ff21847b52 rename demoddata.source to demoddata.app_source
We have a field in demoddata called "source" which stores the application source of the data (network, sids, manual). This causes a lot of confusion with the SiDS API format which has a "source" parameter (that we convert to "station")

As I'm working through documenting the API (and getting us ready for feature expansion), I'd like this field renamed to avoid future confusion.
2019-04-20 19:15:29 -04:00
Alfredos-Panagiotis Damkalis c2e378da4e Refactor transmitter model
Transmitter model has been refactored by changing the current schema
from Transmitter and Suggestion models to TransmitterEntry model and
two proxy models TransmitterSuggestion and Transmitter:

* TransmitterEntry model will hold all the entries and changes on
transmitter entries in db.

* TransmitterSuggestion model will be the proxy model of the unreviewed
transmitter entries.

* Transmitter model will be the proxy model of the latest approved and
reviewed transmitter entries.

There are also change on Transmitter model fields:

* alive field is now change to status field

* there are new fields: citation, user, reviewed and created
2019-04-08 21:21:46 +03:00
Vasilis Tsiligiannis e27e892fba Replace recursive 'dict' extraction with 'satnogs-decoders' docstring fields
This commit replaces the recursive 'dict' extraction functions with
'get_fields()' method which returns specific fields from Kaitai Struct
docstrings. The InfluxDB schema is also optimized to write multiple
fields per data point with the unique NORAD id used as the measurement
name.

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-09 20:51:26 +02:00
Vasilis Tsiligiannis 86df51b031 Remove unused import, fix line break before operator
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-07 17:15:28 +02:00
Corey Shields f8496b5899 use cached payload count in satellite view 2019-01-06 15:40:54 -05:00
Alfredos-Panagiotis Damkalis b0308ea8f1 Fix division by zero in trasmitters percentage 2018-12-30 22:24:47 +02:00
Corey Shields f0e8de3cc8 Support influxdb ssl connections
Adds a setting, INFLUX_SSL which when set to True will use SSL in the connection to influxdb.

Signed-off-by: Corey Shields <cshields@gmail.com>
2018-12-29 20:03:58 -05:00
Vasilis Tsiligiannis 1a037d875c Use decoders from 'satnogsdecoders' package
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2018-11-08 00:29:20 +02:00
Corey Shields 162c1e45d2 add recursion to the decode processes
refactored


Refactored db decoding for recursion

Should cover all cases for kaitai generated decoder files.
2018-08-25 12:04:36 -04:00
Corey Shields ad94d1bf12 keep going if a decode worker comes across a missing raw file 2018-08-19 19:15:09 -04:00
Corey Shields 8527564089 kaitai decoding and influxdb support
Introduces the following:

- decoding of DemodData through decoders that are compiled from kaitai structs and stored in base/decoders/*.py

- storage of the decoded data will either be in the payload_decoded field (default) or into influxdb if USE_INFLUX=True and the proper settings are met

- A scheduled task is set */15 to look for the last 4 hours of submitted frames for anything not decoded, and then decodes it. (we will want to tweak these numbers as we get a good feel for any race conditions that may occur)

- 2 new commands in the admin console, one that will reset all decoded data for a satellite, and another that will trigger decoding of all frames in the db for a satellite. These could be useful when making fixes or improvements to a decoder, or when a new decoder is initially added to the db.
2018-08-18 20:53:21 -04:00
Nikos Roussos fc8e8531e6
Cache statistics through a celery task 2017-11-13 12:27:24 +02:00