简体   繁体   English

fiware-figway python IDAS4仍在工作吗?

[英]fiware-figway python IDAS4 is still working?

I'm new to FIWARE and I have started learning FIWARE IOT capabilities by running this example: https://github.com/telefonicaid/fiware-figway . 我是FIWARE的新手,我已经通过运行以下示例开始学习FIWARE IOT功能: https : //github.com/telefonicaid/fiware-figway

The python RegisterDevice.py of python-IDAS4 does not work. python-IDAS4的python RegisterDevice.py无法正常工作。 I have followed all required steps: create the token, and fulfilled the config.ini with the required information, but I still get this error: 我已经按照所有必需的步骤进行操作:创建令牌,并使用所需的信息实现了config.ini ,但是仍然出现此错误:

..."requests.exceptions.ConnectionError: HTTPConnectionPool(host='130.206.80.47', port=5371): Max retries exceeded with url: /m2m/v2/services/OpenIoT/assets (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 10060] Se produjo un error durante el intento de conexion ya que la parte conectada no respondio adecuadamente tras un periodo de tiempo, o bien se produjo un error en la conexion establecida ya que el host conectado no ha podido responder',))" ...“ requests.exceptions.ConnectionError:HTTPConnectionPool(host ='130.206.80.47',端口= 5371):url超过了最大重试次数:/ m2m / v2 / services / OpenIoT / assets(由NewConnectionError(':导致失败建立新的连接:[Errno 10060]在错误的持续性生产过程中发生错误,并且在持续性的生产过程中发生错误,在错误的持续性运行中发生错误响应者,))”

As this example was written in 2015 maybe something has changed in FIWARE configuration, or maybe I'm missing something.... 正如本示例在2015年编写的那样,FIWARE配置中的某些内容可能已更改,或者我可能丢失了某些内容。

I'm running python 2.7 in Windows 7. Thanks for any help. 我在Windows 7中运行python 2.7。感谢您的帮助。

Probably yes, although the latest commit at this github was at: 7 Jan 2016 . 可能是的,尽管对此github的最新提交是在: 2016年1月7日

The problem you are facing is that the services' addresses, configured at config.ini file , have changed: 您面临的问题是config.ini文件中配置的服务地址已更改:

[contextbroker]
host=130.206.80.47

[idas]
host=130.206.80.47

What can you do? 你能做什么?

  1. Since this host has changed, you have to identify where is the new one on FIWARE Services; 由于该主机已更改,因此您必须确定FIWARE Services上的新主机。
  2. Or you can deploy local instances of context broker and idas by yourself. 或者,您可以自己部署上下文代理和idas的本地实例。

If you opt by 2º option, you have to change the config.ini to your services's addresses (ips). 如果选择按2º选项,则必须将config.ini更改为服务的地址(ips)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM