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

Revision history [back]


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/ngsi-source-operator), 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-widget) by converting entities into PoIs (https://github.com/wirecloud-fiware/ngsi-entity2poi-operator if data is using FIWARE DataModels, or the generic https://github.com/wirecloud-fiware/ngsi-datamodel2poi-operator 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/highcharts-widget) 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-dashboards, look for all whose name ends in generator-operator). There are others (https://github.com/wirecloud?utf8=%E2%9C%93&q=generator&type=&language=).

For displaying basic information you can use the generic panel widget (https://github.com/Wirecloud/panel-widget), easily feeded filtering info from an entity using the panel filter operator (https://github.com/Wirecloud/panel-filter-operator). This information can also come from some statistical calculations that can be generated by the calculate tendency operator (https://github.com/Wirecloud/agile-dashboards/tree/develop/calculate-tendency-operator), 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/ckan-source-operator), 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