Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-20

FIWARE.Request.Tech.Apps.ApplicationMashup.HowToSubscribeToOrion

    Details

    • HD-Chapter:
      Apps
    • HD-Enabler:
      Wirecloud

      Description

      Buenos días,

      Estoy intentando generar una subscripcion desde un operator del wireCloud y
      necesitaría anadir una cabecera oauth en la request. esta parte no me esta
      funcionando muy bien y querría saber como debería hacerlo...

      Hasta ahora, el codigo para la subscripcipon es:

      var doInitialSubscription = function doInitialSubscription() {

      ngsi_server = MashupPlatform.prefs.get('ngsi_server');
      ngsi_proxy = MashupPlatform.prefs.get('ngsi_proxy');

      /*
      connection = new NGSI.Connection(ngsi_server,

      { ngsi_proxy_url: ngsi_proxy }

      );
      */

      connection = new NGSI.Connection(ngsi_server, {
      requestHeaders:

      {X-Auth-Token: 'Em_RZ3UvtN9EJedfQrJCX-sA60NSwr9mk6tNha5n3EsmZypfLQ'}

      });

      var entityIdList = [

      {type: 'pragmation', id: '.*', isPattern: true}

      ];
      var attributeList = ['aciertos'];
      var duration = 'P1M';
      var throttling = null;
      var notifyConditions = [

      { type: 'ONTIMEINTERVAL', condValues: ['PT10S'] }

      ];
      var options = {
      flat: true,
      onNotify: process_entities,
      onSuccess: function (data)

      { //ngsi_subscriptionId = data.subscriptionId; //ngsi_refresh_interval = setInterval(refreshNGSISubscription, 1000 * 60 * 60 * 2); // each 2 hours }

      };
      connection.createSubscription(entityIdList, attributeList,
      duration, throttling, notifyConditions, options);
      };

      Gracias de antemano por vuestra atención.

      Un saludo,
      Juan Carlos Hdez.

      _______________________________________________
      Fiware-lab-help mailing list
      Fiware-lab-help@lists.fi-ware.org
      https://lists.fi-ware.org/listinfo/fiware-lab-help

        Activity

        FIWARE-LAB-HELP FIWARE-LAB-HELP created issue -
        mev Manuel Escriche made changes -
        Field Original Value New Value
        Assignee Manuel Escriche [Administrator] [ mev ] Rafael Fernández (UPM) [ rfernandez ]
        mev Manuel Escriche made changes -
        Component/s FIWARE-LAB-HELP [ 10279 ]
        mev Manuel Escriche made changes -
        Workflow Basic Workflow [ 12378 ] FW eRequest Workflow [ 16122 ]
        Status To Do [ 10001 ] Open [ 1 ]
        Issue Type Question [ 10004 ] eRequest [ 10101 ]
        FI-WARE Environment FI-LAB [ 10100 ]
        aarranz Álvaro Arranz made changes -
        Assignee Rafael Fernández (UPM) [ rfernandez ] Álvaro Arranz García [ aarranz ]
        mev Manuel Escriche made changes -
        Workflow FW eRequest Workflow [ 16122 ] eRequest Workflow-2 [ 16356 ]
        mev Manuel Escriche made changes -
        Workflow eRequest Workflow-2 [ 16356 ] FW eRequest Workflow [ 16927 ]
        mev Manuel Escriche made changes -
        Reporter FIWARE-LAB-HELP [ fiware-lab-help ] FW External User [ fw.external.urser ]
        aarranz Álvaro Arranz made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        aarranz Álvaro Arranz made changes -
        Resolution Done [ 10000 ]
        Status In Progress [ 3 ] Done [ 10000 ]
        mev Manuel Escriche made changes -
        Fix Version/s Sprint 4.1.2 [ 10738 ]
        aarranz Álvaro Arranz made changes -
        Summary [Fiware-lab-help] ayuda para generar una subscripcion a Orion/context broker FIWARE.Request.Lab.ApplicationMashup.HowToSubscribeToOrion
        aarranz Álvaro Arranz made changes -
        Summary FIWARE.Request.Lab.ApplicationMashup.HowToSubscribeToOrion FIWARE.Request.Lab.Apps.ApplicationMashup.HowToSubscribeToOrion
        aarranz Álvaro Arranz made changes -
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Component/s FIWARE-LAB-HELP [ 10279 ]
        mev Manuel Escriche made changes -
        Summary FIWARE.Request.Lab.Apps.ApplicationMashup.HowToSubscribeToOrion FIWARE.Request.Tech.Apps.ApplicationMashup.HowToSubscribeToOrion
        mev Manuel Escriche made changes -
        Workflow FW eRequest Workflow [ 16927 ] FW extRequest Workflow-II [ 40714 ]
        Status Done [ 10000 ] Closed [ 6 ]
        Issue Type eRequest [ 10101 ] extRequest [ 10104 ]
        mev Manuel Escriche made changes -
        HD-Enabler Wirecloud [ 10857 ]
        HD-Chapter Apps [ 10836 ]

          People

          • Assignee:
            aarranz Álvaro Arranz
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: