Forge CSV数据适配器 - 参考应用程序数据可视化

发布于 2025-02-12 23:43:58 字数 286 浏览 0 评论 0原文

我希望大家一切都好。我最近一直在尝试修改Autodesk参考应用程序,以使我可以使用自己的传感器数据和自己的模型创建热图。但是,我一直很困难。有人做过类似的事情吗?您是否必须创建两个单独的.env文件,还是只需更改forge_id部分的凭据和同一部分中的CSV部分? 谢谢,(我附上了仅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.)

Changed CSV portion

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

三生路 2025-02-19 23:43:58

.env文件必须是唯一的,因为它由 dotenv 软件包加载,以将所有这些值添加为环境变量(nodejs访问这些变量,process.env。 [variable_name])。

为了确保您的.env文件由 dotenv 使用,如果您查看/server/server/路由器/index.js,您会找到以下行:

if (process.env.ENV == "local") {
    require("dotenv").config({
        path: __dirname + "/../.env",
    });
}

当您在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 with process.env.[VARIABLE_NAME]).

To ensure your .env file is used by dotenv, you must set your ENV to local, if you look at /server/router/index.js, you will find these lines :

if (process.env.ENV == "local") {
    require("dotenv").config({
        path: __dirname + "/../.env",
    });
}

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文