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

[fiware-askbot] REST API URL to subscribe orion from Cepheus cep

    Details

    • Type: Monitor
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2021
    • Component/s: None
    • Labels:

      Description

      Created question in FIWARE Q/A platform on 09-08-2018 at 12:08
      Please, ANSWER this question AT https://ask.fiware.org/question/1026/rest-api-url-to-subscribe-orion-from-cepheus-cep/

      Question:
      REST API URL to subscribe orion from Cepheus cep

      Description:
      An entity is created at orion and we want to subscribe it from cepheus cep.
      i am using /v1/subscribeContext url for subscription. Body of this POST method url is below
      {
      "entities": [

      { "type": "Room", "isPattern": "false", "id": "Room1" }

      ],
      "attributes": [
      "pressure","temperature"
      ],
      "reference": "http://localhost:8080",
      "duration": "P1M",
      "notifyConditions": [

      { "type": "ONCHANGE", "condValues": [ "pressure","temperature" ] }

      ],
      "throttling": "PT5S"
      }

      Now in reference tag i have to give URL where this subscribed value will be published. If i give simple 'localhost:8080' then it will not work. i have to give a specific URL. Can anyone please let me know what may the URL of CEP where orion will publish.

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2018-08-10 09:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-08-10 09:05|CREATED monitor | # answers= 0, accepted answer= False
        Hide
        martial.granger Martial Granger added a comment -

        Hi,

        is your orion server on the same machine ?
        If not, I think that the problem is that your localhost machine is not accessible from the orion server...
        you must provide an url that the orion server can access to (http://myserver/ or http://192.1.1.1/)

        Best Regards

        Show
        martial.granger Martial Granger added a comment - Hi, is your orion server on the same machine ? If not, I think that the problem is that your localhost machine is not accessible from the orion server... you must provide an url that the orion server can access to ( http://myserver/ or http://192.1.1.1/ ) Best Regards

          People

          • Assignee:
            martial.granger Martial Granger
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: