Siemens MindSphere Pump Asset Example App: Is it possible to automatically refresh the charts within this app

0
Hello, is it possible that the charts within the Siemens MindSphere Pump Asset Example App are refreshed automatically every 5 seconds or as soon as there are new values available in mindsphere? I tried to use the “refresh interval” and “dynamic series” within the lineChart widget, I cound see the refresh but there are no new values and timestamps within the chart (only the old values). Maybe I have to call a microflow with a timer (for example every 5sec), but I’m not sure if this could work and I’m also not sure which microflow should be called. Are there any ideas? Thanks.
asked
5 answers
0

Sure this is posssible, but the Pump Asset Example is designed for the case that the user is selecting a fix time range.

A good example how you create a more dynamic application you can find in our tutorial https://gettingstarted.mendixcloud.com/link/path/80. Hope you have fun following this tutorial and to figure out how you can create dynamic updates and maybe some more insights you will need for your MindSphere / Mendix journey.

answered
0

Thank you very much.

It worked with the data ingest module. Now I tried it with my own asset and I get the following error, when I tried to submit the URL (http://localhost:8080/api/iottimeseries/v3/timeseries/<YOUR_ASSET_ID>/Metrics, 6.1.1 Step 5 in the Learning Path):

“Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Wed Feb 26 12:44:25 UTC 2020

There was an unexpected error (type=Not Found, status=404).

[6410] Unable to find the property set - Metrics"

Do you have any idea?

 

Thank you in advance!

answered
0

Does your asset have an Aspect called “Metrics”?
If not then please use the Aspect which is part of your asset.

answered
0

Thank you very much, Heiko. This was the problem, my aspect isn’t called “Metrics”. Now the URL (http://localhost:8080/api/iottimeseries/v3/timeseries/<YOUR_ASSET_ID>/<YOUR_ASSET>) works.

But I can’t see the mindsphere data in my mendix app. The app is commited, deployed and pushed to cloud foundry. In the MindSphere FleetManager I can see the data, but not in my mendix app. (Using the data ingest module  a few days ago it worked)

Do you have any idea?

answered
0

Hi Ramona,
does the app work locally? If yes then i assume that you have forgotten to grant the needed roles for your app via “Developer Cockpit → Authorization Management” .
For timeseries you need the MindSpher API Role: ‘mdsp:core:iot.timUser’ granted to your application roles.
regards

Heiko

answered