Predix_Logo
  • Categories
    • Questions
    • Predix | Updates
      • Pricing
      • Product
    • Deloitte - Private
    • How-To
    • Accenture-Private
  • Explore
    • Topics
    • Questions
    • Articles
    • Feedback or Feature Requests
  • Sign in
  • Home /
  • Questions /
avatar image
0
Question by jfournie6@gmail.com · Mar 02, 2017 at 05:05 AM · time-series-servicetutorial

[Problems][Tuto][TimeSeries] cf env app_name

Hi !

I work on this tutorial : Exploring Time Series: Introduction to the Time Series API

But i'm stuck when i want to see the environment variables for predix-nodejs-starter. The command return :

  No running env variables have been set
  No staging env variables have been set

How can i fix the problem ?

Thanks.

EDIT : Update the right error name.

EDIT2 :

I found a part of my solution.

I'm stuck in time series ingest, i need to inform the predix-zone-id, i think i found the right one (text with **) :

 [predix@predix-devbox ~]$ predix service-info jftest-timeseries-instance
 Getting info for service instance jftest-timeseries-instance
 {
   "ingest": {
     "uri": "wss://gateway-predix-data-services.run.aws-usw02-pr.ice.predix.io/v1/stream/messages",
     "zone-http-header-name": "Predix-Zone-Id",
     "zone-http-header-value": "**d5e95693-2f50-4d45-babe-7ce8b9afbf85**",
     "zone-token-scopes": [
       "timeseries.zones.d5e95693-2f50-4d45-babe-7ce8b9afbf85.user",
       "timeseries.zones.d5e95693-2f50-4d45-babe-7ce8b9afbf85.ingest"
     ]
   },
   "query": {
     "uri": "https://time-series-store-predix.run.aws-usw02-pr.ice.predix.io/v1/datapoints",
     "zone-http-header-name": "Predix-Zone-Id",
     "zone-http-header-value": "d5e95693-2f50-4d45-babe-7ce8b9afbf85",
     "zone-token-scopes": [
       "timeseries.zones.d5e95693-2f50-4d45-babe-7ce8b9afbf85.user",
       "timeseries.zones.d5e95693-2f50-4d45-babe-7ce8b9afbf85.query"
     ]
   }
 

But when i open a socket i have this :

 HTTP Response Code: 200 OK
 
 {
   "socketId": 5006863387749136000,
   "readyState": "OPEN"
 }

And in Time Series Query the result is empty :/

(i think my problems with the running and staging environment will be fix when i finished the tutorial)

Comment
Add comment · Show 2
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Katya Talluri · Mar 02, 2017 at 10:00 AM 0
Share

I am not sure if you are following the guides in order, but there is more info on setting up your predix-nodejs-starter here: https://www.predix.io/resources/tutorials/tutorial-details.html?tutorial_id=1570&tag=1605&journey=Build%20a%20basic%20application&resources=1580,1544,1547,1549,1556,1553,1570

For the complete list of guides to set up a basic app, please look here: https://www.predix.io/resources/tutorials/journey.html#1605

avatar image jfournie6@gmail.com Katya Talluri · Mar 03, 2017 at 01:43 AM 0
Share

I'm following tutorials in order. The link you send is the tutorial after my part :).

i think i found the solution, partially.

3 Replies

  • Sort: 
avatar image
0
Best Answer

Answer by Tom Turner · Mar 03, 2017 at 01:44 PM

Yeah, so in your case this is the instance id. aka zone-id.

d5e95693-2f50-4d45-babe-7ce8b9afbf85

So, you need to complete the tutorial series to see the timeseries data. We have you insert some using the Predix Tool Kit and then query it back.

Also, when you launch the winddata-timeseries-service it auto-injects some timeseries data in to the time series datastore.

The last tutorial is where you visualize it.

Comment
Add comment · Show 1 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jfournie6@gmail.com · Mar 06, 2017 at 12:20 AM 0
Share

Thanks, it was very helpful !

avatar image
0

Answer by jfournie6@gmail.com · Mar 03, 2017 at 02:02 AM

my time series is already bind to my predix-nodejs-starter.

I have updated my post with my problem (other than running/staging env)

Comment
Add comment · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Tom Turner · Mar 02, 2017 at 08:51 AM

Are you trying to get the Time Series info like instanceId etc?

Try this. Install predix-cli. https://github.com/PredixDev/predix-cli

 predix service-info {name of timeseries instance here}

Otherwise you'll need to bind time series to the node js starter using the cf bind command.

Comment
Add comment · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

76 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Stale repository URL for winddata-time-series-service jar in Build a Basic Application fast install script 2 Answers

Edge-to-cloud (DataSubscription) question 1 Answer

Unable to import sample data as described in "Getting Started with Mobile Up" documentation. 3 Answers

OPC UA TimeSeries error on Predix machine 2 Answers

time series logs 1 Answer

GE Monogram
  • Legal
  • Cookies
  • Forum Terms
  • Contact Us
  • Copyright © 2017 General Electric Company. All rights reserved.


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Submit your feedback or feature request
  • Categories
  • Questions
  • Predix | Updates
    • Pricing
    • Product
  • Deloitte - Private
  • How-To
  • Accenture-Private
  • Explore
  • Topics
  • Questions
  • Articles
  • Feedback or Feature Requests