本地设置CSV数据适配器
我正在尝试设置数据可视化扩展程序,以基于此示例将来自CSV文件中的数据用于传感器:
https://forge.autodesk.com/en/docs/dataviz/dataviz/v1/develoders_guide/advanced_topics/csv_adapter/文件夹服务器\ Gateways \ CSV中的默认Hyperion-1.csv。我还需要添加/更改其他一些设置吗?
它在Chrome Console中显示以下错误:
I am trying to set up the Data Visualization extension to use data from csv file for the sensors based on this example:
https://forge.autodesk.com/en/docs/dataviz/v1/developers_guide/advanced_topics/csv_adapter/
So the csv data I am trying to use is the default Hyperion-1.csv in folder server\gateways\csv. Do I need to add/change some other settings as well?
It is showing the following error in Chrome console:
I have these settings for the csv in .env file.
And these in devices.json in server\gateways\synthetic-data folder.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我刚刚采取了以下步骤来启用CSV数据适配器,该适配器似乎可以正常工作:
git克隆https://github.com/autodesk-forge/forge-dataviz-dataviz-iot-reference-app-
npm install
env = local npm run dev
在这些步骤成功运行之后,但是您会发现其他错误,因为服务器/网关/CSV 文件夹仅包含单个传感器的数据(Hyperion-1)。
顺便提一句。我一直在开发一个替代数据示例应用程序,该应用程序的目的更简单,更易于重复使用: https://github.com/petrbroz/forge-iot-extensions-demo (使用 https://github.com/petrbroz/forge-iot-extensions 在引擎盖下)。
I've just taken the following steps to enable the CSV data adapter which seemed to work fine:
git clone https://github.com/Autodesk-Forge/forge-dataviz-iot-reference-app
npm install
ENV=local npm run dev
After these steps the app is running successfully, however you'll get some other errors because the server/gateways/csv folder only contains data for a single sensor (Hyperion-1).
Btw. I've been working on an alternative DataViz sample app that aims to be simpler and easier to reuse: https://github.com/petrbroz/forge-iot-extensions-demo (which uses https://github.com/petrbroz/forge-iot-extensions under the hood).