Git Product home page Git Product logo

winddata-timeseries-service's Introduction

view javadoc ย  view github pages

Predix Development Kit Winddata Time Series Service

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

Run integration tests

  1. Ensure you have set up your predix.io username/encrypted password in the maven settings.xml. Instruction are found here.

  2. 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 

Running locally

  1. Edit the manifest.yml with the names of your UAA and Time Series service instances. Also specify the client_id, and secret.
  2. From the command line, go the the project directory.
  3. Run as
mvn spring-boot:run

NOTE: For more info on what to set up, look at manifest.yml.template

Running in the cloud

  1. 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.
  2. NOTE: For more info on what to set up, look at manifest.yml.template
  3. From the command line, login to your Cloud Foundry org and space where you would like to deploy.
  4. Run as
cf push <appName> -f manifest.yml

Tech Stack

  • Spring
  • SpringBoot
  • SpringTest
  • Maven

More Details

[Exploring Time Series](https://www.predix.io/resources/tutorials/journey.html#Journey.Exploring Time Series)

Analytics

winddata-timeseries-service's People

Contributors

katyatalluri avatar turnerth avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.