KSP-Telemachus / Telemachus

KSP telemetry in the web browser
189 stars 50 forks source link

Support requesting a whole dict at a time #59

Open ec429 opened 8 years ago

ec429 commented 8 years ago

When requesting an array, such as "?a=r.resource", without specifying a key, it would be nice if the value was returned as a dict of all resources on board. JSON should be able to handle this fine. Similarly, "?a=b.name" should return a list of the names of all bodies, in order of their body id. Currently, one instead gets a 500 with an index out of range exception, for both of these requests.

This would help interoperability with mods like RealFuels that greatly proliferate the number of different resources.

larkin commented 8 years ago

Similar point here, it would be great to have a way to list all of the available telemetry points on a vehicle so that we could easily allow exploration in a front end interface. We have a lot of people interested in using Telemachus to integrate with Open MCT and this would be a great way to keep in sync.

See related comments in https://github.com/nasa/openmct/issues/1064

richardbunt commented 8 years ago

The a.api API string will dump all available endpoints.

hudsonfoo commented 8 years ago

For any Telemachus users who are interested in integrating with OpenMCT: https://github.com/nasa/openmct/pull/1146