Mindsphere 48 hour monitoring

0
Hello everyone,   Currently i’m working on a project for fun and i run into a problem. When i try to visualize the data  coming from Mindsphere ( value of an aspect)  it only shows the last 15 or 16 minutes. How can I set up a “filter?” to show more than 15 minutes?   Basically this is the microflow I use to get the data and i use a line chart to visualize it and the time series filter.
asked
3 answers
1

There is a limit on the timeseries api. It will return max 2000 values.
Depending on the frequency of your data ingest this could be the reason why you only see 15 min.
If you want to visualize the 48h you could also use the aggregates api.
See also 
https://gettingstarted.mendixcloud.com/link/path/93/Build-a-MindSphere-App---Continued
there the timeseries and aggregates api is used.


Or just use the aggregate Chart from the WebComponent from here:
https://appstore.home.mendix.com/link/app/110119/
It does all the heavy lifting...
 

answered
0

I suspect the input parameter values aren't making it correctly to the URL parameters in the REST call. What's happening in DS_TimeSeriesDateFromToParameter? It may be helpful to log exactly what URL (and params) are being sent to MindSphere.

answered
0

Let me add it here aswell

 

'from='+formatDateTime(parseDateTime(formatDateTimeUTC($TimeSeriesFilter/From, 'MM/dd/yyyy''T''HH:mm:ss.SSS'), 'MM/dd/yyyy''T''HH:mm:ss.SSS'), 'yyyy-MM-dd''T''HH:mm:ss.SSS''Z''')
+
'&to='+formatDateTime(parseDateTime(formatDateTimeUTC($TimeSeriesFilter/To, 'MM/dd/yyyy''T''HH:mm:ss.SSS'), 'MM/dd/yyyy''T''HH:mm:ss.SSS'), 'yyyy-MM-dd''T''HH:mm:ss.SSS''Z''')
 

answered