Skip to content

itmo-swm/fiware-cygnus

Repository files navigation

fiware-cygnus

To edit address of mongodb, modify agent_mongo.conf file

git clone https://github.com/itmo-swm/fiware-cygnus
cd fiware-cygnus
docker-compose up -d

To add subscribe for temperature of TempTest1:

(curl 192.168.1.199:1026/v1/subscribeContext -s -S --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Fiware-Service: my_test' --header 'Fiware-ServicePath: /' -d @- | python -mjson.tool) <<EOF
{
  "entities": [
  {
  "type": "thing",
  "isPattern": "false",
  "id": "TempTest1"
  }
  ],
  "attributes": [
  "temperature"
  ],
  "reference": "http://192.168.1.199:5050/notify",
  "duration": "P1M",
  "notifyConditions": [
  {
  "type": "ONCHANGE",
  "condValues": [
  "temperature"
  ]
  }
  ],
  "throttling": "PT1S"
}
EOF

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published