Filtering a satnogs database query


#1

Hi,
I just wanted to know whether there is an easy way to get a list of all the scheduled observations for a specific satellite that will be processed in the future?

The following URL gives me all observations for a specific satellite but how to filter by something like
‘start >= 2018-11-28:00:00:00’ ??

https://network-dev.satnogs.org/api/observations/?format=json&satellite__norad_cat_id=28654


#2

Hi!

You can filter for

  • start time greater or equal to a specified time
  • end time smaller or equal to a specified time

example: https://network-dev.satnogs.org/api/observations/?format=json&satellite__norad_cat_id=28654&start=2018-11-29T00:00:00

no documentation yet. The server-side implementation can be found here: https://gitlab.com/librespacefoundation/satnogs/satnogs-network/blob/dev/network/api/filters.py#L7

Sincerely, Fabian


#3

Hi @kerel ,
I searched for this in the source code but could not find it.

Thanks for your help, it works :+1: