wmo-im / wis2box

WIS2 in a box is a reference implementation of a WMO WIS2 Node
https://docs.wis2box.wis.wmo.int
Apache License 2.0
37 stars 14 forks source link

wis2box pubsub issues #391

Closed alimand closed 1 year ago

alimand commented 1 year ago

User story

As a wis2box message subscriber(I build wis2box A for subscribing), I want to subscribe message from another wis2box (I build wius2box B for publishing) , so that I can real test message pubsub functionality by using wis2box.

Acceptance criteria

Definition of done

tomkralidis commented 1 year ago

The broker to which wis2box is subscribing to is not providing valid notification messages. Is broker you are subscribing to a wis2box based broker? If yes, what version of wis2box is installed? wis2box should be emitting valid messages.

Else if the broker is not based on wis2box, suggest this issue is filed in https://github.com/wmo-im/wis2pilot/issues for discussion.

alimand commented 1 year ago

Hi Tom,

1.Yes,I think so. (I'm following the official documentation:https://docs.wis2box.wis.wmo.int/en/latest/user/downloading-data.html, 79368c216dc1c573ac02a4b07408153 following theses steps: a. modify local.yml like this: 4714463eb66ec57660cfd2fe98c55b6 b.run docker-compose -f docker-compose.subscribe-download.yml up -d --build). c.follow acceptance criteria steps before, then have this issue.

2.The version of wis2box I installed is 1.0.beta1. 2fab586ac2b2ab6116fc4e81cab7fdf

Looking forward to your kind reply! Really thanks.

tomkralidis commented 1 year ago

Thanks for the feedback @alimand. Can you copy/paste the notification messages that are being produced by wis2box?

alimand commented 1 year ago

Hi,Tom. Thanks for your reply! Sure. The complete notification message wis2box produces is as follows:

{
  "id": "WIGOS_0-454-2-AWSBALAKA_20211118T095500",
  "type": "Feature",
  "version": "v04",
  "geometry": {
    "type": "Point",
    "coordinates": [
      15.0,
      35.0,
      618.0
    ]
  },
  "properties": {
    "data_id": "origin/a/wis2/mwi/mwi_met_centre/data/core/weather/surface-based-observations/synop/WIGOS_0-454-2-AWSBALAKA_20211118T095500.bufr4",
    "pubtime": "2023-02-08T09:53:34Z",
    "integrity": {
      "method": "sha512",
      "value": "f247f9cccedbd60dd03d2aec028c20626dfdafd436883e528ea8188e07c1fba9b558c5ff6323702b792bd2b79161f014379f739643d022865a75e69dd5812de3"
    },
    "wigos_station_identifier": "0-454-2-AWSBALAKA"
  },
  "links": [
    {
      "rel": "canonical",
      "type": "application/x-bufr",
      "href": "http://10.0.49.23:8999/data/2021-11-18/wis/mwi/mwi_met_centre/data/core/weather/surface-based-observations/synop/WIGOS_0-454-2-AWSBALAKA_20211118T095500.bufr4",
      "length": 247
    }
  ]
}
tomkralidis commented 1 year ago

Hi @alimand this has been fixed in #394 and will be part of the 1.0.b2 release.