[英]How can I create a history graph in Wirecloud using history measurements?
I am developing a Fiware application and I am using many Fiware GEs (Wirecloud, IoT Agent, Orion, Cygnus, MondoDB, MySQL) that are integrated locally on my linux pc using docker. 我正在开发一个Fiware应用程序,我正在使用许多Fiware GE(Wirecloud,IoT Agent,Orion,Cygnus,MondoDB,MySQL),它们使用docker在我的linux pc上本地集成。
I managed to make Orion to receive measurements from a temperature sensor and store them in a MySQL database through Cygnus. 我设法让Orion从温度传感器接收测量数据并通过Cygnus将它们存储在MySQL数据库中。
Now, I would like to create a history graph in Wirecloud using those measurements. 现在,我想使用这些测量在Wirecloud中创建历史图表。 I tried to use a History Module to Linear Graph operator that intermediates between an NGSI source operator and a Linear graph widget but I don't know what URL should I use for the HistoryMod Server URL. 我尝试使用历史模块到线性图操作符,该操作符介于NGSI源操作符和线性图窗口小部件之间,但我不知道我应该使用哪个URL用于HistoryMod服务器URL。
I've tried to open the user manual for the History Module operator but the link is broken so I can not read it. 我试图打开历史模块运算符的用户手册,但链接已断开,所以我无法读取它。
I am posting some images with the wiring , HistoryModule settings , NGSI source settings and the Linear Graph error that I am receiving, for better understanding. 为了更好地理解,我发布了一些带有布线 , HistoryModule设置 , NGSI源设置和我收到的线性图形错误的图像 。
My questions are the following: 我的问题如下:
What URL should I use for the HistoryMod Server URL? 我应该将哪个URL用于HistoryMod服务器URL?
Am I wiring the components correctly or am I missing something? 我是正确连接组件还是我遗漏了什么?
I don't know the History Module operator, but I think that your wiring is correct: data resource, operator that request it and a widget to show the results. 我不知道历史模块运算符,但我认为你的接线是正确的:数据资源,请求它的运算符和显示结果的小部件。
In your HistoryModule settings try to change your URL for: http://130.206.82.141:8666/STH/v1/contextEntities/ 在HistoryModule设置中,尝试更改以下URL: http : //130.206.82.141 :8666 / STH / v1 / contextEntities /
Did you try to change your Linear Graph widget for a table? 您是否尝试更改表格的“线性图”小部件? (for test that the problem is in the operator and isn't in your widget). (用于测试问题在操作员中并且不在您的小部件中)。
How do you please managed to connect to the database (mysql). 你怎么设法连接到数据库(mysql)。 I have almost same configuration using postgres
instead, on a remote server and managed via docker-compose.
我在远程服务器上使用postgres
进行了几乎相同的配置,并通过docker-compose.
管理docker-compose.
I can configure everything from the docker-compose
file, but I don't know how to start postgres
running, so as to create the database to use. 我可以从docker-compose
文件配置所有内容,但我不知道如何启动postgres
运行,以便创建要使用的数据库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.