HixField
HixField

Reputation: 3796

IBM/BlueMix iOT dashboard line graph not using database (only works in realtime)?

(See picture)

  1. I have successfully connected my iOT device to the BlueMix IoT platform
  2. I can see all the events nicely flowing into the dashboard
  3. I now enabled the extension in BlueMix IoT to store all data in "Historical Data Storage" (refer to https://developer.ibm.com/recipes/tutorials/cloudant-nosql-db-as-historian-data-storage-for-ibm-watson-iot-parti/#r_step3)
  4. I can see the data correctly being written in the database
  5. When I put a line graph on the dashboard in BlueMix IoT it does show a graph but only for the realtime data, it seams its not using the historical data now stored in the database. (refer to https://developer.ibm.com/recipes/tutorials/cloudant-nosql-db-as-historian-data-storage-for-ibm-watson-iot-partiii/)

enter image description here

enter image description here

Upvotes: 1

Views: 308

Answers (2)

HixField
HixField

Reputation: 3796

After being in contact with IBM using Skype with screen sharing we found the solution.

Turns out that I did not enter an event in the cards config; I only entered a property and for some reason this is ok for realtime data but not for fetching the historical data out of the DB!

As soon as I entered my event (In my case it was 'status' but this should match your MQTT event name specifically) al worked ok!

Upvotes: 0

ValerieLampkin
ValerieLampkin

Reputation: 2636

Can you confirm per the details in the recipe - https://developer.ibm.com/recipes/tutorials/cloudant-nosql-db-as-historian-data-storage-for-ibm-watson-iot-partiii/, that your Window Size was configured while creating line chart card to display the data for the time period it was gathered in the database?

For example, Data from Last 24 Hours, in this case, window size is 24 Hours and we should see the data from historian only for last 24 Hours not beyond that whether data is in real time / data is stored in historian.

Be sure the window size configured for your chart encompasses the historical time for when you expected to see data.

Upvotes: -1

Related Questions