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.
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!
Does your asset have an Aspect called “Metrics”?
If not then please use the Aspect which is part of your asset.
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?
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