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

[fiware-stackoverflow] fiware-Orion context broker subcription does not send every value even if same previous value

    Details

      Description

      Created question in FIWARE Q/A platform on 17-06-2021 at 14:06
      Please, ANSWER this question AT https://stackoverflow.com/questions/68021651/fiware-orion-context-broker-subcription-does-not-send-every-value-even-if-same-p

      Question:
      fiware-Orion context broker subcription does not send every value even if same previous value

      Description:
      I have a script and draco subscription . Script posts sensor values to orion CB and and draco writes sensor values to postgreSQL. I can send and write data succesfully. My problem is if the sequential sensor values comes same draco is not send new data to PSQL. timeStamp attribute keeps current date time and it also change every post. How can i send the same sequential values data to PSQL.
      my entity:
      "id": "sensor0",
      "type": "Sensor",
      "dataCount": {
      "type": "Number",
      "value": 11,
      "metadata": {}
      },
      "dateLastValueReported": {
      "type": "Text",
      "value": "01.05.2018-00:55:00",
      "metadata": {}
      },
      "name": {
      "type": "Text",
      "value": "Diswasher Power Sensor",
      "metadata": {}
      },
      "value": {
      "type": "Number",
      "value": 0.0000333,
      "metadata": {}
      },
      "time":

      { "type": "Text", "value": timeStamp, }

      }```

      my subscription
      ```{

      "subject": {
      "entities": [

      { "idPattern": ".*" }

      ],
      "condition":

      { "attrs": [ "value" ] }

      },
      "notification": {
      "attrs": [
      "dataCount",
      "value"
      ],
      "attrsFormat": "normalized",
      "http":

      { "url": "http://localhost:5050/v2/notify" }

      }
      }```

        Activity

        backlogmanager Backlog Manager created issue -
        Hide
        backlogmanager Backlog Manager added a comment -

        2021-06-18 05:31|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2021-06-18 05:31|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager made changes -
        HD-Enabler Unknown [ 10910 ]
        HD-Chapter Unknown [ 10845 ]
        HD-Node Unknown [ 10852 ]
        fla Fernando Lopez made changes -
        Assignee Fermín Galán [ fermin ]

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: