gut-space / satnogs

The goal of this project is to create a functional satellite ground station, able to receive VHF transmissions from NOAA sats and more!
https://aquarius.klub.com.pl
MIT License
10 stars 0 forks source link

Observation API #20

Closed tomaszmrugalski closed 4 years ago

tomaszmrugalski commented 4 years ago

We need a new API that will:

It seems that over time more and more parameters will be provided when adding observation. The schema should be easily extensible. One good example would be a POST method with a JSON data and JSON response. This would also ensure easy adaptation by third parties.

tomaszmrugalski commented 4 years ago

One more thing - the lastobs field in the stations table should be updated.

fivitti commented 4 years ago

receive an observation from reporting ground station

We have now API for receive the observations. It accept form-data or JSON formats. It required PNG file with observation and some metadata. After receiving server creates thumbnail.

rename uploaded file rename file using a scheme that ensures no conflicts

Received file is renamed. We merge original filename with UUID (version 4). It allow us to avoid conflicts.

store an observation in a DB

Received observation is inserted to existing DB shema.

fivitti commented 4 years ago

lastobs field in the stations table should be updated

Ready.

tomaszmrugalski commented 4 years ago

This seems to be complete. Resolving.