Volttron:我如何安装make-weather?

时间:2018-02-11 22:52:56

标签: volttron

我正在遵循weather agent installation的程序。

启动Weather Agent 部分,我尝试在scripts / core / make-listener中创建make-weather。但是,我不确定该路径是否存在,因为“make-listener”仅作为“shell脚本”提供。

它也不接受添加“make-listener”文件夹来创建“make-weather”脚本。

我还修改了天气代理路径(这是因为目录中的更改),编辑后的“make-weather”文件位于下方(文档中的唯一更改是第一个线):

export SOURCE=/services/core/WeatherAgent/Weather

export CONFIG=config/weatheragent.config

export TAG=weather

./scripts/core/make-agent.sh

# To set the agent to autostart with the platform, pass "enable"
#to make-agent.sh: ./scripts/core/make-agent.sh enable

这是我的天气代理配置(weatheragent.config):

{
    "agentid": "Weather1",
    "poll_time": 3600,
    "minute_threshold" : 5,
    "daily_threshold" : 500,
    "zip" : "99325",
    "on_request_only": false
}

我将路径更改为/ home / USER-NAME / volttron / scripts / core

之后使用了此命令
chmod +x make-weather

最后,运行此命令./make-weather我在第四行收到错误:

./make-weather: line 4: ./scripts/core/make-agent.sh: No such file or directory

0 个答案:

没有答案
相关问题