Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/willglynn/emwin-tg
https://github.com/willglynn/emwin-tg
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/willglynn/emwin-tg
- Owner: willglynn
- Created: 2022-02-05T05:01:39.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-13T05:53:10.000Z (almost 3 years ago)
- Last Synced: 2024-11-30T02:51:28.746Z (about 1 month ago)
- Language: Rust
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `emwin-tg`
A Rust client for the [NWS Emergency Managers Weather Information Network](https://www.weather.gov/emwin/)
telecommunications gateway.EMWIN is [one of several](https://www.weather.gov/nwws/dissemination) platforms through which the National Weather
Service distributes text products. EMWIN is transmitted via radio to [GOES
satellites](https://noaasis.noaa.gov/GOES/HRIT/broadcast.html) for re-broadcast, and published as files on the
[NWS telecommunications gateway](https://www.weather.gov/tg/anonymous) service.The NWS telecommunications gateway permits anonymous access from the general public over the Internet. Usage of this
crate therefore requires no setup.## Features
* `#![forbid(unsafe_code)]`
* Pure Rust
* Async (using [Tokio](https://tokio.rs))## Example
```rust
let mut stream = emwin_tg::TextStream::new();while let Some(event) = stream.next().await {
match event {
Ok(product) => {
// Handle the product
println!("{}: {}", product.filename, product.into_string_lossy());
},
Err(error) => {
// Stream continues, automatically retrying as needed
eprintln!("uh oh: {}", error);
},
}
}
```