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

samedec: add more environment variables #35

Merged
merged 3 commits into from
Feb 24, 2024
Merged

Conversation

cbs228
Copy link
Owner

@cbs228 cbs228 commented Feb 24, 2024

Add the following new environment variables to spawned child processes:

  • SAMEDEC_IS_NATIONAL: "Y" for national activations; otherwise present but empty
  • SAMEDEC_SIG_NUM: a numeric representation of the significance level

The samedec README is updated to account for Ubuntu's migration from pulseaudio to PipeWire.

This is an API-expanding and CLI-expanding change.

Report valid national periodic tests and national emergencies
via `MessageHeader::is_national()`. Both the event and location
codes are checked.

These messages are reported to samedec child processes via the
`$SAMEDEC_IS_NATIONAL` environment variable, which is set to "`Y`"
for national messages and is empty otherwise.

This is an API-expanding and CLI-expanding change.
Add the `$SAMEDEC_SIG_NUM` environment variable, which contains a
numeric representation of the significance level.

This is a CLI-expanding change.
Update the samedec README to use the new environment variables.

Many distros have replaced pulseaudio with PipeWire, and `paplay`
is no longer available on Ubuntu 23.10. While we could switch to
`pw-play`—the PipeWire equivalent—rewrite the tutorial around sox
instead.
@cbs228 cbs228 merged commit b9e8d03 into develop Feb 24, 2024
10 checks passed
@cbs228 cbs228 deleted the feature/more_samedec_vars branch February 24, 2024 20:24
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.

1 participant