1
0
Fork 0
Commit Graph

315 Commits (2a84aacbe70f13fadad95b90e78f98a706899047)

Author SHA1 Message Date
Ansgar Schmidt 81549264cf Adding UTC in header, fixing #267
Signed-off-by: Ansgar Schmidt <ansgar.schmidt@gmx.net>
2019-02-12 11:27:25 +01:00
Vasilis Tsiligiannis 58b0cc9bfd Fix invalid quoting in InfluxDB query
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-24 21:33:44 +02:00
Alfredos-Panagiotis Damkalis b24d292fc8 Add Blank=True for decayed date in satellite model 2019-01-21 15:34:02 +02:00
Pierros Papadeas 6d5e1db09c
Add decayed field in Satellite model 2019-01-19 19:27:48 +02:00
Vasilis Tsiligiannis a6b79bace0 Fix InfluxDB query to drop whole measurements
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-16 15:04:59 +02:00
Corey Shields a05a614dd9 hack our way around the django cache
Signed-off-by: Corey Shields <cshields@gmail.com>

In django cache we are storing a full queryset of the satellites with their data count and last payload time. By trying to filter on this (sat_cache = sats_cache.filter(norad_cat_id=norad)) we cause django to re-evaluate the queries for that specific satellite. For CAS-4a this results in 2 queries that exceed 5 mins each.

This does not impact the /stats/ page as it iterates through the whole list of satellites in cache. This change mimics that behavior to find the satellite cache we care about in the template.  Its a huge hack but its the only way we can show a count and bring the page view back for !237 quickly...  This needs refactoring, big time..

I also pulled an unused has_telemetry_data which caused a db count

This leaves behind a query to pull the last payload to show who submitted the last payload, as without this query there is no connection between the cached satellite info and the actual observer (because the /stats/ page was not meant to make that connection). If this query continues to be prohibitive we may just need to remove the "last frame submitted by.." blob.
2019-01-12 14:00:59 -05:00
Corey Shields 9ea72f808a stop triggering a cache update on page load 2019-01-11 23:52:49 -05:00
Corey Shields 3adf7a2f35 fix satellite slow queries
In this change we continue using the cache for the frame count, but instead of using the cache for the latest frame as discussed in IRC we grab the latest frame based on the ID.  In my test environment this was a reasonable query time.

I'd rather we try this route before resorting to the cache for latest frame as it will be a better user experience.

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-01-11 21:28:52 -05: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 7f16a16ee2 Add telemetry fixtures
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-09 17:51:26 +02:00
Vasilis Tsiligiannis 5780fb8ebb Update fixtures
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-09 17:49:43 +02:00
Pierros Papadeas a8f5e53647 Add UI for transmitter UUID 2019-01-07 18:21:39 +00:00
Pierros Papadeas 6a1f145c07 Add more fields and filters on satellite admin view 2019-01-07 16:28:33 +00: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
Pierros Papadeas c2efc8cee2
Use case for home page statistics 2019-01-07 14:23:12 +02:00
Corey Shields f8496b5899 use cached payload count in satellite view 2019-01-06 15:40:54 -05:00
Pierros Papadeas afd69f13ac
Remove unused view counts from Satellite view 2019-01-06 10:38:50 +02:00
Vasilis Tsiligiannis 453c7a77a6 Fix invalid template error due to missing application
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-03 00:05:20 +02:00
Corey Shields ba4cdd7d60 Catch TLE ValueError
Catch and handle ValueError when loading new TLE (in the case of a syntax error in the TLE)

resolves https://gitlab.com/librespacefoundation/satnogs/satnogs-db/issues/257

Signed-off-by: Corey Shields <cshields@gmail.com>

Kudos to kerel for the idea
2019-01-02 11:24:33 -05:00
Fabian P. Schmidt bfef1527de api/views: Use queryset exists syntax instead of exception handling 2019-01-01 22:03:55 +01: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
Pierros Papadeas a1d8357763
Change model of transmitter to include drift and type 2018-12-25 21:15:18 +02:00
Corey Shields 2277dd5f97 fix logouturl
Auth0 logout does not clear the session. This fixes.

Signed-off-by: Corey Shields <cshields@gmail.com>
2018-12-15 16:10:17 +00:00
Corey Shields 04b8f815c7 case LOGIN_URL for AUTH0
Signed-off-by: Corey Shields <cshields@gmail.com>

The auth0 change forces an auth0 LOGIN_URL. This fixes that with an if statement

See also https://gitlab.com/librespacefoundation/satnogs/satnogs-db/issues/248
2018-12-15 09:33:20 -05:00
Pierros Papadeas 1a84e97c6c
Add wiki link to header 2018-12-15 12:43:28 +02:00
Alfredos-Panagiotis Damkalis 2b6be2a4b1 Ignore "File not found" error on frames extraction 2018-12-13 14:57:56 +02:00
Pierros Papadeas bc878d2419
Remove stats counters 2018-12-13 11:07:49 +02:00
Corey Shields ccc18b6c29 fix for sentry 804899643
Signed-off-by: Corey Shields <cshields@gmail.com>
2018-12-12 13:09:27 -05:00
Alfredos-Panagiotis Damkalis f83988fc05 Ignore re-entered satellites during TLE update 2018-12-12 18:05:19 +02:00
Vasilis Tsiligiannis 7006e2add4 Support configuration of mailing options via variables
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2018-12-11 19:49:05 +02:00
Vasilis Tsiligiannis 017fb6f2f9 Cast Sentry enable switch to bool
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2018-12-11 19:48:51 +02:00
Pierros Papadeas 2a90bad4b2
Add sentry-sdk for logging 2018-12-11 17:21:19 +02:00
Fabian P. Schmidt 221f2b6f1f Fetch TLEs only for officially assigned NORAD IDs
Due to Celestrak returning the TLE of 00005 when asked for TLEs for
satellites with NORAD IDs in the 999xx range, satellites with
temporary NORAD IDs get assigned a wrong TLE.
This commit adds a workaround by skipping satellites with temporary
NORAD IDs when updating TLEs.
2018-12-10 20:42:21 +01:00
Fabian P. Schmidt c405f781c4 Add additional TLE sources via python-satellitetle 2018-11-29 20:04:19 +00:00
Fabian P. Schmidt 8cb0f12077 fixtures: Remove duplicated satellite introduced in 50f6b93 2018-11-25 20:13:30 +01:00
Vasilis Tsiligiannis c99ac79487 Allow configuration of static and media root directories via environment variables
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2018-11-22 21:36:21 +02:00
Vasilis Tsiligiannis 96fd370157 Clean up settings and 'env-dist'
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2018-11-21 13:49:16 +02:00
Corey Shields 704bc18e76 initial auth0 support for db 2018-11-18 12:55:13 -05:00
Fabian P. Schmidt cfede128e5 Remove unused satellite_position endpoint
Endpoint unused since 30dd47cc.
2018-11-12 16:06:08 +01:00
Fabian P. Schmidt 801596a60d Remove satellite progration with pyephem in satellite_postion endpoint
This endpoint is legacy as of 30dd47cc.

Fixes #234.
2018-11-12 16:06:08 +01:00
Fabian P. Schmidt d8c3c9a348 Remove unused attribute data-url from satellite view
Commit 30dd47cc remove the usage of the value in this attribute.
This commit removes the attribute itself, as it's no longer used.
2018-11-12 14:01:46 +01:00
Vasilis Tsiligiannis a138bc7d15 Fix relative paths of templates and static files directories
This makes static files and templates source paths relative to the
application instead of current working directory.

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2018-11-09 19:41:12 +02: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
Pierros Papadeas c1bdf25613 Enhance email for satellite suggestions 2018-11-07 13:09:41 +00:00
Pierros Papadeas 84d4a76e88 Add counters on stats page 2018-11-07 13:09:41 +00:00
Fabian P. Schmidt 0e10569938 Update requirements
Steps performed:
```
npm install
./node_modules/.bin/gulp
```

Update of gpredict.js to 0.2.0 included, fixes #214.
2018-11-07 13:59:24 +01:00
Vasilis Tsiligiannis 4d08cdb6e4 Create an initial 'satnogs-db' package with no requirements specified
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2018-11-06 13:32:43 +02:00
Ansgar Schmidt f4dca9a787 Kaitai decoder for QBEE (NORAD 42708)
Signed-off-by: Ansgar Schmidt <ansgar.schmidt@gmx.net>
2018-10-30 23:05:03 +01:00
Patrick Dohmen 753be85dcd Add AMSAT FOX DUV decoder struct
Signed-off-by: Patrick Dohmen <dl4pd@darc.de>
2018-10-26 20:26:41 +02:00