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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        32d 7h 22m 1 Martial Granger 11/Sep/18 4:28 PM
        In Progress In Progress Answered Answered
        5m 12s 1 Martial Granger 11/Sep/18 4:33 PM
        Answered Answered Closed Closed
        2s 1 Martial Granger 11/Sep/18 4:33 PM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        martial.granger Martial Granger made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        martial.granger Martial Granger made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        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
        martial.granger Martial Granger made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        fla Fernando Lopez made changes -
        HD-Enabler Cepheus [ 10883 ]
        Description
        Created question in FIWARE Q/A platform on 09-08-2018 at 12:08
        {color: red}Please, ANSWER this question AT{color} 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.
        Created question in FIWARE Q/A platform on 09-08-2018 at 12:08
        {color: red}Please, ANSWER this question AT{color} 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.
        fla Fernando Lopez made changes -
        Assignee Gilles Privat [ gprivat ] Martial Granger [ martial.granger ]
        veronika Veronika Vlnkova made changes -
        Field Original Value New Value
        Assignee Gilles Privat [ gprivat ]
        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
        backlogmanager Backlog Manager created issue -

          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: