Feature: Schedule devices turning on/off
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-11-17 00:01:13 +01:00
parent 0154d19b71
commit db17b68e90
9 changed files with 144 additions and 3 deletions

47
Cargo.lock generated
View File

@@ -98,6 +98,7 @@ dependencies = [
"serde_yaml",
"thiserror",
"tokio",
"tokio-cron-scheduler",
"tracing",
"tracing-subscriber",
"wakey",
@@ -292,6 +293,17 @@ dependencies = [
"cfg-if",
]
[[package]]
name = "cron"
version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ff76b51e4c068c52bfd2866e1567bee7c567ae8f24ada09fd4307019e25eab7"
dependencies = [
"chrono",
"nom",
"once_cell",
]
[[package]]
name = "crossbeam-channel"
version = "0.5.8"
@@ -919,6 +931,17 @@ dependencies = [
"winapi",
]
[[package]]
name = "num-derive"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "876a53fff98e03a936a674b29568b0e605f06b29372c2489ff4de23f1949743d"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "num-traits"
version = "0.2.16"
@@ -1637,6 +1660,21 @@ dependencies = [
"windows-sys",
]
[[package]]
name = "tokio-cron-scheduler"
version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "de2c1fd54a857b29c6cd1846f31903d0ae8e28175615c14a277aed45c58d8e27"
dependencies = [
"chrono",
"cron",
"num-derive",
"num-traits",
"tokio",
"tracing",
"uuid",
]
[[package]]
name = "tokio-io-timeout"
version = "1.2.0"
@@ -1877,6 +1915,15 @@ dependencies = [
"percent-encoding",
]
[[package]]
name = "uuid"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "88ad59a7560b41a70d191093a945f0b87bc1deeda46fb237479708a1d6b6cdfc"
dependencies = [
"getrandom",
]
[[package]]
name = "valuable"
version = "0.1.0"