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 ]
        Hide
        aarranz Álvaro Arranz added a comment -

        Hola Juan Carlos,

        siento responder tan tarde, ¿sigues teniendo problemas al crear la subscripción? En tal caso, ¿te importaría crear esta pregunta en StackOverflow usando la etiqueta fiware-wirecloud?

        Un saludo.
        Álvaro

        Show
        aarranz Álvaro Arranz added a comment - Hola Juan Carlos, siento responder tan tarde, ¿sigues teniendo problemas al crear la subscripción? En tal caso, ¿te importaría crear esta pregunta en StackOverflow usando la etiqueta fiware-wirecloud? Un saludo. Álvaro
        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 ]
        Hide
        aarranz Álvaro Arranz added a comment -

        This question was resolved via skype as it was generated by a hack4good participant (Henar put him in contact with me via skype)

        Show
        aarranz Álvaro Arranz added a comment - This question was resolved via skype as it was generated by a hack4good participant (Henar put him in contact with me via skype)
        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 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        To Do To Do Open Open
        28d 1h 28m 1 Manuel Escriche 22/Oct/14 4:01 PM
        Open Open In Progress In Progress
        11d 21h 14m 1 Álvaro Arranz 03/Nov/14 12:16 PM
        In Progress In Progress Done Done
        4s 1 Álvaro Arranz 03/Nov/14 12:16 PM
        Done Done Closed Closed
        434d 20h 52m 1 Manuel Escriche 12/Jan/16 9:08 AM

          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: