Skip to content

Commit

Permalink
Add MQTT announcer
Browse files Browse the repository at this point in the history
  • Loading branch information
DanNixon committed May 23, 2024
1 parent 60d21c9 commit 6ff4d99
Show file tree
Hide file tree
Showing 10 changed files with 521 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
package:
- emfcamp-schedule-api-adapter
- emfcamp-schedule-cli
- emfcamp-schedule-mqtt-announcer

steps:
- uses: actions/checkout@v4
Expand Down
207 changes: 200 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ members = [

"adapter",
"cli",
"mqtt-announcer",
]

[workspace.package]
Expand All @@ -25,11 +26,13 @@ emfcamp-schedule-api = { path = "./client/" }
metrics = "0.22.3"
metrics-exporter-prometheus = { version = "0.14.0", default-features = false, features = ["http-listener"] }
reqwest = { version = "0.11.27", default-features = false, features = ["json", "rustls-tls"] }
rumqttc = "0.24.0"
serde = { version = "1.0.202", features = ["derive"] }
serde_json = "1.0.117"
serde_with = "3.8.1"
termcolor = "1.4.1"
thiserror = "1.0.61"
tokio = { version = "1.37.0", features = ["rt-multi-thread", "macros"] }
tokio = { version = "1.37.0", features = ["rt-multi-thread", "macros", "signal"] }
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
url = { version = "2.2.2", features = ["serde"] }
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ Includes:
- A Rust client library
- A CLI
- An adapter that sits between the official API, adding some nice development features and fixing the fucky timestamps
- A tool to send event announcements via MQTT

Still very much a work in progress, and very much subject to change until the 2024 schedule API is a thing.
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@

packages =
import ./adapter {inherit pkgs rustPlatform version gitRevision;}
// import ./cli {inherit pkgs rustPlatform version gitRevision;};
// import ./cli {inherit pkgs rustPlatform version gitRevision;}
// import ./mqtt-announcer {inherit pkgs rustPlatform version gitRevision;};
}
);
}
Loading

0 comments on commit 6ff4d99

Please sign in to comment.