Welcome to Winddata Time Series Service. This is a back-end application built in Java and Spring. It is an extension of predix-microservice-cf-jsr. The application exposes Rest APIs for getting time series tags, data points for one year, and the latest data point.
NOTE: This application relies on setting up of UAA and Time Series service instances in the Predix Cloud. For further information on how to set up, please visit our [Exploring Time Series Guide](https://www.predix.io/resources/tutorials/journey.html#Journey.Exploring Time Series).
Winddata has the following structure, which mirrors that of a Microservice Template found at predix-microservice-cf-jsr
-
Ensure you have set up your predix.io username/encrypted password in the maven settings.xml. Instruction are found here.
-
Edit config/application.properties as follows. For further information on configuring Predix Time Series service, please refer to the tutorials called [Exploring Time Series](https://www.predix.io/resources/tutorials/journey.html#Journey.Exploring Time Series).
predix.oauth.issuerId.url=put.your.uaa.issuerId.here
#you may put client:secret as unencoded cleartext by setting predix.oauth.clientIdEncode=true
predix.oauth.clientIdEncode=false
predix.oauth.clientId=you.should.base64encode(put.your.clientId:put.your.clientSecret separated by a colon)
predix.timeseries.queryUrl=https://put.your.timeseries.service.instance.here/v1/datapoints
predix.timeseries.zoneid=put.your.timeseries.zoneid.aka.instanceid.here
predix.timeseries.websocket.uri=wss://put.your.timeseries.ingest.uri.here/v1/stream/messages
- Edit the manifest.yml with the names of your UAA and Time Series service instances. Also specify the client_id, and secret.
- From the command line, go the the project directory.
- Run as
mvn spring-boot:run
NOTE: For more info on what to set up, look at manifest.yml.template
- Set up the manifest.yml for Cloud deployment. Edit the manifest.yml with the names of your UAA and Time Series service instances. Also specify the client_id, and secret.
- NOTE: For more info on what to set up, look at manifest.yml.template
- From the command line, login to your Cloud Foundry org and space where you would like to deploy.
- Run as
cf push <appName> -f manifest.yml
- Spring
- SpringBoot
- SpringTest
- Maven
[Exploring Time Series](https://www.predix.io/resources/tutorials/journey.html#Journey.Exploring Time Series)