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

DBus Monitor to pass events to input modules: First cut #64

Open
wants to merge 8 commits into
base: packaging-process-and-systemd-service
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 85 additions & 15 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ members = [
"ledmatrix",
"fl16-inputmodules",
"inputmodule-control",
"dbus-monitor"
]
# Don't build all of them by default.
# Because that'll lead to all features enabled in `fl16-inputmodules` and it
Expand All @@ -36,7 +37,7 @@ usbd-serial = "0.1.1"
usbd-hid = "0.6.1"
fugit = "0.3.7"
# LED Matrix
is31fl3741 = { git = "https://github.com/FrameworkComputer/is31fl3741-rs", branch = "sw-enablement" }
is31fl3741 = { git = "https://github.com/FrameworkComputer/is31fl3741-rs", branch = "is31fl3743a" }
# B1 Display
st7306 = { git = "https://github.com/FrameworkComputer/st7306-rs", branch = "update-deps" }
embedded-graphics = "0.8"
Expand Down
21 changes: 21 additions & 0 deletions dbus-monitor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[package]
edition = "2021"
name = "framework-inputmodule-dbus-monitor"
version = "0.0.1"

[dependencies]
dbus = { version = "0.9.7", features = ["vendored"] }
clap = { version = "4.4.6", features = ["derive"] }
log = "0.4"
env_logger = "0.10.0"
serde = { version="1.0", features = ["derive"] }
serde_json = "1.0"
lazy_static = "1.4"

[dependencies.libdbus-sys]
default-features = false
features = ["vendored"]
version = "0.2.5"

[dependencies.inputmodule-control]
path = "../inputmodule-control"
10 changes: 10 additions & 0 deletions dbus-monitor/src/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"dbus_interface": "org.freedesktop.Notifications",
"dbus_member": "Notify",
"scan_args_for": "calendar.google.com",
"run_inputmodule_commands": [
"led-matrix --pattern all-on --blink-n-times 3",
"led-matrix --brightness 0"
]
}

Loading
Loading