Forge CSV数据适配器 - 参考应用程序数据可视化
我希望大家一切都好。我最近一直在尝试修改Autodesk参考应用程序,以使我可以使用自己的传感器数据和自己的模型创建热图。但是,我一直很困难。有人做过类似的事情吗?您是否必须创建两个单独的.env
文件,还是只需更改forge_id部分的凭据和同一部分中的CSV部分? 谢谢,(我附上了仅CSV部分更改的示例。)
I hope you are all doing well. I've been recently trying to modify the AutoDesk reference application to allow me to create a heat-map with my own sensors data and my own model. However, I have been having difficulties. Has anyone done something similar before? Do you have to create two separate .env
files or do you just change both the credentials for the FORGE_ID portion and the CSV portion in the same one?
Thank You, (I attached an example of what it looks like with only the CSV portion change.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
.env
文件必须是唯一的,因为它由 dotenv 软件包加载,以将所有这些值添加为环境变量(nodejs访问这些变量,process.env。 [variable_name]
)。为了确保您的
.env
文件由 dotenv 使用,如果您查看/server/server/路由器/index.js
,您会找到以下行:当您在MacOS上时,您可以尝试此命令:
Export Env = local&&& NPM运行DEV
以Dev模式启动服务器。您显示的 csv 部分应该有效,只需将所有这些行放入当前
.env
文件中,就应该能够使用自己的模型并添加自己的传感器数据。The
.env
file must be unique as it is loaded by the dotenv package to add all these values as environment variable (NodeJS access these variables withprocess.env.[VARIABLE_NAME]
).To ensure your
.env
file is used by dotenv, you must set yourENV
to local, if you look at/server/router/index.js
, you will find these lines :As you are on MacOS you could try this command :
export ENV=local && npm run dev
to start your server in dev mode.The CSV portion you showed should work, just put all these lines into your current
.env
file and you should be able to use your own model AND add your own sensors data.