Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wis2download test and wis2box downloader commands to manage topics #693

Closed
wants to merge 23 commits into from

Conversation

maaikelimper
Copy link
Collaborator

@maaikelimper maaikelimper commented Jun 10, 2024

rename 'wis2-downloader' to 'wis2downloader' for consistency in all files and documentation

update test to enable subscribe to self and add test with count check per topic

add 'wis2box downloader' commands to manage subscriptions

improve downloader dashboard and cleanup old dashboards

@maaikelimper
Copy link
Collaborator Author

maaikelimper commented Jun 11, 2024

@david-i-berry this (currently in draft) PR is used to test your wis2downloader-PR wmo-im/wis2downloader#18

@maaikelimper maaikelimper marked this pull request as ready for review June 12, 2024 14:30
fh.write('DOWNLOAD_BROKER_USERNAME=everyone\n')
fh.write('DOWNLOAD_BROKER_PASSWORD=everyone\n')
fh.write('# download transport mechanism (tcp or websockets)\n')
fh.write('DOWNLOAD_BROKER_TRANSPORT=tcp\n')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why tcp and not websockets by default? Port 8883 is often blocked.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok I will make websocker port=443 the default

def remove_subscription(ctx, topic):
"""remove a subscription"""

topic = topic.replace('%23', '#')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the correct way around?

"""remove a subscription"""

topic = topic.replace('%23', '#')
topic = topic.replace('%2B', '+')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the correct way around?

@@ -358,6 +358,17 @@ def create_wis2box_env(config_dir: str) -> None:
fh.write('MINIO_NOTIFY_MQTT_TOPIC_WIS2BOX=wis2box/storage\n')
fh.write('MINIO_NOTIFY_MQTT_QOS_WIS2BOX=1\n')
fh.write('\n')
# downloader settings
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What role do the ENV variables have? Should they not be used here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I write the default values to the wis2box.env to make it easier for the users to edit them

@maaikelimper
Copy link
Collaborator Author

closing, changes have been merged into gts-headers-mapping branch to be reviewed in PR 691

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants