From 13081f745fd554b14ff387b02a58a88f6264bed7 Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Thu, 24 Oct 2024 11:49:17 +0700 Subject: [PATCH] Remove push notifications for now --- .gitignore | 2 +- Cargo.toml | 2 +- README.md | 10 ++++++++-- crates/fcm-push-listener | 1 - crates/pushnoti/Cargo.toml | 1 - 5 files changed, 10 insertions(+), 6 deletions(-) delete mode 160000 crates/fcm-push-listener diff --git a/.gitignore b/.gitignore index 8ecf383..9443b4e 100644 --- a/.gitignore +++ b/.gitignore @@ -27,4 +27,4 @@ token.toml # Debug FCM build -./crates/fcm-push-listener/ \ No newline at end of file +crates/fcm-push-listener diff --git a/Cargo.toml b/Cargo.toml index e7d79c5..218de72 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,7 +47,7 @@ validator = {version="0.18.1", features = ["derive"] } tikv-jemallocator = "0.5" [features] -default = ["gstreamer", "pushnoti"] +default = ["gstreamer"] gstreamer = [ "dep:gstreamer", "dep:gstreamer-app", diff --git a/README.md b/README.md index 70bcd93..316f653 100644 --- a/README.md +++ b/README.md @@ -455,6 +455,10 @@ after it stops being used. Neolink considers it as being used if there is an active stream running, or if there is motion being detected or an mqtt command being run +[Because google remove the api for the push notifications we cannot +reliably use push notifications to wake up, so motion won't wake +up neolink anymore] + You can make neolink stop active streams when there are no rtsp clients using ```toml @@ -465,9 +469,11 @@ You can make neolink stop active streams when there are no rtsp clients using Once in the disconnected state. Neolink will stay disconnected until there is a new requested activation such as a client connecting or an mqtt command -Neolink will also wake up on push notifications from the camera. These are usually +~Neolink will also wake up on push notifications from the camera. These are usually sent by the camera on motion or PIR alarms. To disable this you can set -`push_notifications = false` in the `[[cameras]]` config +`push_notifications = false` in the `[[cameras]]` config~ + +[Google removed the apis we were using for push notifications] ### Docker diff --git a/crates/fcm-push-listener b/crates/fcm-push-listener deleted file mode 160000 index 07eff6b..0000000 --- a/crates/fcm-push-listener +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 07eff6b087f865262963bdf1ef774d75533572dd diff --git a/crates/pushnoti/Cargo.toml b/crates/pushnoti/Cargo.toml index 47fa05c..7b82fc8 100644 --- a/crates/pushnoti/Cargo.toml +++ b/crates/pushnoti/Cargo.toml @@ -9,7 +9,6 @@ edition = "2021" anyhow = "1.0.71" clap = { version = "4.2.2", features = ["derive", "cargo"] } env_logger = "0.10.0" -# fcm-push-listener = { path = "../fcm-push-listener" } fcm-push-listener = { version = "2.0.3" } lazy_static = "1.4.0" log = { version = "0.4.17", features = [ "release_max_level_debug" ] }