Data Visualization Extension: Hyperion Data Adaptor (Type Error: Cannot read properties of undefined (reading 'forEach'))

127 Views Asked by At

in process of Data Visualization Extension, I made my dataset for sensors and adapted it to my Revit model. Also I used (Setting Up a SQLite Data Adapter).

https://forge.autodesk.com/en/docs/dataviz/v1/developers_guide/advanced_topics/sqlite_adapter/

Setting Up a SQLite Data Adapter

Unfortunately, after loading the model in localhost:9000, there is no sensor list and data. this error is on the console. Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'forEach')

Error

enter image description here

enter image description here

1

There are 1 best solutions below

13
Petr Broz On

Link to related answer: Setting Up an SQLite Data Adapter for Data Visualization Extension: I can’t connect my SQL data to model.

Please note that the Data Viz Extension tutorial is a work-in-progress. Before these tutorials are finished, I'd suggest that you take a look at a sample app that I've been working on: https://github.com/petrbroz/forge-iot-extensions-demo. It's also using the Data Visualization Extensions but it aims to be simpler and easier to reuse. By default, the IoT sensors, channels, and samples are defined in a simple JSON, but I've put together a separate code branch (sample/sqlite) where the IoT data is fetched from a sample sqlite database.