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

No notification with zmeventserver #4

Open
NOOH88 opened this issue May 2, 2021 · 5 comments
Open

No notification with zmeventserver #4

NOOH88 opened this issue May 2, 2021 · 5 comments

Comments

@NOOH88
Copy link

NOOH88 commented May 2, 2021

Hello,

the sending of notification does not work with zmnotification, but is functional as long as I do not detect a person.
Looking at the zm_telegram_alarm.sh script, the problem seems to come from the part with jq. Indeed, when you fill in the command in a shell, there is no return and the value is null.

Cordially.

@TheDave1022
Copy link
Owner

Did you install jq?

apt-get install curl git jq

@NOOH88
Copy link
Author

NOOH88 commented May 21, 2021

Yes jq is installed.

I modified the script to make it fonctionnal but it is perfectible.
zm_telegram_alert.txt

afterwards I realized that zmeventnotification has a push functionality so I switched to this solution.
pushapi_telegram.txt

@teunbruijnen
Copy link

teunbruijnen commented Jul 19, 2022

Yes jq is installed.

I modified the script to make it fonctionnal but it is perfectible. zm_telegram_alert.txt

afterwards I realized that zmeventnotification has a push functionality so I switched to this solution. pushapi_telegram.txt

Your pushapi_telegram script is the only one I found online, thanks a lot for sharing it! I still can't get zm to push notifications to telegram though. I'll add some more debug tracing to your script to see what's going on.

Update: managed to get it up and running. Had to hardcode the bot token & chat id into the script. Not optimal but working!

@dmshel
Copy link

dmshel commented Oct 12, 2023

Yes jq is installed.
I modified the script to make it fonctionnal but it is perfectible. zm_telegram_alert.txt
afterwards I realized that zmeventnotification has a push functionality so I switched to this solution. pushapi_telegram.txt

Your pushapi_telegram script is the only one I found online, thanks a lot for sharing it! I still can't get zm to push notifications to telegram though. I'll add some more debug tracing to your script to see what's going on.

Update: managed to get it up and running. Had to hardcode the bot token & chat id into the script. Not optimal but working!

Can u shared ur script version pushapi_telegram.txt?

@SmokeyBR
Copy link

i also wanted to have notifications on telegram, @NOOH88 sample inspired me to get it to work although his script didnt work for me..
if anyone else interested you can find it here https://github.com/SmokeyBR/zmes-telegram/tree/main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants