使用 API 密钥和位置配置天气代理
Configuring Weather Agent with API Key and Location
这些步骤顺利进行,直到:使用 API 密钥和位置配置天气代理
$ nano services/core/weather/settings.py
输入上述脚本后首先显示此消息:
[ Directory 'services/core/weather' does not exist ]
即使我进入目录并键入:ls
它显示目录和文件存在。
init.py settings.py weatheragent.py
从 weather underground 插入键值后,我尝试使用 (ctrl+x = exit)
保存修改后的文件 (settings.py)
尝试退出后首先显示此消息:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ?
Y Yes
N No
^C Cancel
我输入了 Y ,然后
File Name to Write: services/core/weather/settings.py
我按下回车键
我收到错误消息:
[ Error writing services/core/weather/settings.py: No such file or directory ]
如图link
http://i.imgur.com/31hi9E7.png
Ubuntu:16.04 LTS
知道了!!这是目录:
nano /home/user_name/volttron/services/core/WeatherAgent/weather/settings.py
这些步骤顺利进行,直到:使用 API 密钥和位置配置天气代理
$ nano services/core/weather/settings.py
输入上述脚本后首先显示此消息:
[ Directory 'services/core/weather' does not exist ]
即使我进入目录并键入:ls
它显示目录和文件存在。
init.py settings.py weatheragent.py
从 weather underground 插入键值后,我尝试使用 (ctrl+x = exit)
保存修改后的文件 (settings.py)尝试退出后首先显示此消息:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ?
Y Yes
N No
^C Cancel
我输入了 Y ,然后
File Name to Write: services/core/weather/settings.py
我按下回车键
我收到错误消息:
[ Error writing services/core/weather/settings.py: No such file or directory ]
如图link http://i.imgur.com/31hi9E7.png
Ubuntu:16.04 LTS
知道了!!这是目录:
nano /home/user_name/volttron/services/core/WeatherAgent/weather/settings.py