This library provides a client for interacting with the API that powers the DSN Now webpage.
First, add the package as a dependency in your project:
Maven:
<dependency>
<groupId>net.adambruce</groupId>
<artifactId>dsn-now-client</artifactId>
<version>${version}</version>
</dependency> Gradle:
implementation("net.adambruce:dsn-now-client:${version}")To use the client, create an instance of the client and call one of the following methods:
The DSN Now configuration contains basic information about DSN's ground stations, dishes and tracked spacecraft.
DeepSpaceNetworkClient client = DeepSpaceNetworkClient.newDeepSpaceNetworkClient();
Configuration configuration = client.fetchConfiguration();The DSN Now state contains up-to-date state information about ground stations, dishes, spacecraft and communications.
DeepSpaceNetworkClient client = DeepSpaceNetworkClient.newDeepSpaceNetworkClient();
State state = client.fetchState();Combines the above two queries to create a single coherent model hierarchy.
DeepSpaceNetworkClient client = DeepSpaceNetworkClient.newDeepSpaceNetworkClient();
MergedData data = client.fetchMergedData();To build from source, you will require:
- Java 8+
- Maven
Run the following command (use -Prelease to generate source JAR):
mvn clean install