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)
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
I'm following tutorials in order. The link you send is the tutorial after my part :).
i think i found the solution, partially.
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.
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)
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.