We use proprietary and third party´s cookies to improve your experience and our services, identifying your Internet Browsing preferences on our website; develop analytic activities and display advertising based on your preferences. If you keep browsing, you accept its use. You can get more information on our Cookie Policy
Cookies Policy
Ask Your Question

mjimenezganan's profile - activity

2018-09-12 13:16:32 +0200 answered a question Create historic graph using Orion Context Broker data in wirecloud or other dashboard

Hi,

On WireCloud there are several options, that rely on having (or installing) widgets and operators.

For displaying data from Orion itself, the easiest way is using the NGSI-source operator (https://github.com/wirecloud-fiware/n...), configured with NGSI details and the URL of an NGSI Proxy (usually deployed together with WireCloud) for receiving asynchronous notifications to subscriptions from WireCloud. This widget does output the received entities (initial full query and subscriptions to attribute changes on certain entities) in the form of JSON-formatted entities sent through wiring. You can, for example, display them on a map (https://github.com/Wirecloud/ol3-map-...) by converting entities into PoIs (https://github.com/wirecloud-fiware/n... if data is using FIWARE DataModels, or the generic https://github.com/wirecloud-fiware/n... configuring longitude and latitude). Outputs of the map (visible POIs) are also entities that can be used for graphical display (serving the map as a geo-filter). Read below.

You can, of course, use NGSI embedded library, ngsijs, to access a context broker, but this is more aligned with building a custom widget or operator hiding the "complexity" of the wiring or enhancing the NGSI-source-operator capabilities. It does require, of course, javascript coding.

For graphs, you can use Highcharts Widget (https://github.com/Wirecloud/highchar...) and some of the multiple chart generator operators that receive some data and prepare them for such widget. You have plenty of them here (https://github.com/Wirecloud/agile-da..., look for all whose name ends in generator-operator). There are others (https://github.com/wirecloud?utf8=%E2...).

For displaying basic information you can use the generic panel widget (https://github.com/Wirecloud/panel-wi...), easily feeded filtering info from an entity using the panel filter operator (https://github.com/Wirecloud/panel-fi...). This information can also come from some statistical calculations that can be generated by the calculate tendency operator (https://github.com/Wirecloud/agile-da...), that generates max, min, means, medians, modes, standard deviations, counts and sums. Its output can be shown in panels or in simple graphs like gauge chart (gauge-chart-generator-operator + highcharts-widget).

Finally, when bringing data from CKAN, easiest option is using CKAN source operator (https://github.com/wirecloud-fiware/c...), that is configured with url and dataset ID, and brings data (relying on the DataStore CKAN extension).

If you want more detailed information, chapter 4.2 of next document does detail these and other WireCloud components (only document title and summary are in spanish, all the rest is in english): http://oa.upm.es/51467/1/TFMALEJANDRORODRIGUEZ_FRAGA.pdf

Best regards, Miguel

2018-05-25 07:39:48 +0200 answered a question How to fetch data to wirecloud from orion contrext broker?

This question was already answered on the mailing list.

Configuration of NGSI Source was incorrect, so details were provided about how to set up the URL of the CB, the URL of a ngsi proxy (for asynchronous updates). And the connection with a map using NGSI Entity2Poi was also shown, using a correct parameter in such operator for indicating the propertie(s) where geographical information was contained inside entities. Besides, a problem with Context Broker not handling some characters inside entities correctly, such as \n, arose.

RegardingTable Viewer widget, CKAN source operator does generate the required input, but getting such structure from NGSI data requires an specific operator.

Best regards, Miguel

2017-11-13 09:05:32 +0200 answered a question Connecting wirecloud mashup to a mobile sensor

Hello,

From the point of view of WireCloud, it is enough if you can access your sensors' data through a REST call (cross-domain issues are automatically solved using embedded WireCloud proxy) or such data has been uploaded to the Context Broker.

In the former case, you would need an REST API wrapping your sensors, I ignore wether you have it or are able to implement it.

In the latter, you can program the access to the data using the API for accessing Context Broker entities, or more easily, you could use NGSI source operator, or other NGSI-compliant components for WireCloud such as the ones present in the Orion Context Broker Starter Kit (https://store.lab.fiware.org/#/offeri...).

For the sensors'd data to be available at the Context Broker, it can be flexibly done using IDAS (https://catalogue.fiware.org/enablers...).

Best regards, Miguel