canonn-science / EDMC-Canonn

Project Athens: EDMC plugin to automatically collect accurate science data from the galaxy and coordinate missions
GNU General Public License v3.0
80 stars 12 forks source link

[FEATURE] Add automated TB reporting #50

Closed derrickmehaffy closed 5 years ago

derrickmehaffy commented 5 years ago

Example from Codex Reports:

image

Required API POST Format:

POST /tbreports

{
  "userType": "pc",
  "reportType": "new",
  "systemName": "string",
  "systemAddress": 0,
  "regionID": 0,
  "coordX": 0,
  "coordY": 0,
  "coordZ": 0,
  "bodyName": "string",
  "latitude": 0,
  "longitude": 0,
  "type": "Journal Name",
  "cmdrName": "string",
  "isBeta": false,
  "clientVersion": "string",
  "reportStatus": "pending"
}
NoFoolLikeOne commented 5 years ago

Shouldn't this just be a case of adding the entry in the reporttypes model?

NoFoolLikeOne commented 5 years ago

tb model might require some changes to make it fit in with the other codex report types.

derrickmehaffy commented 5 years ago

Yeah I may need to remove the previous custom types and use the journal ones.

Considering the lack of user involvement I'm not sure our custom defined ones are warranted. There will still be some other data that will need user input so it will have to wait for Athena

NoFoolLikeOne commented 5 years ago

You can have have them in addition to the journal types. I'm going to take a look at recording the frontier id.

But not sure if I want to do that for geosites because you can get up to 50 on one body

derrickmehaffy commented 5 years ago

Right now I'm not sure of the mapping between them.

And that's the point for the frontier ID is to identify the site at a glance it will also help us determine if the entire system has been mapped for sites ;)

NoFoolLikeOne commented 5 years ago

Shame they wont put the id in the journal. It would eliminate the need for haversine

derrickmehaffy commented 5 years ago

Aye it would

derrickmehaffy commented 5 years ago

added: https://api.canonn.tech/tbreports