silvanmelchior / RPi_Cam_Web_Interface

A web interface for the RPi Cam
MIT License
1.52k stars 489 forks source link

Motion event.sh #652

Open Nic97 opened 2 years ago

Nic97 commented 2 years ago

Hi everyone, i tried to lauch the motion_event.sh to detect motion and notify via telegram bot. But where i execute the script i have this error: /var/www/html/macros/motion_event.sh: 21: [: -eq: unexpected operator

Anyone had the same problem?

Thanks

mlambi commented 2 years ago

No. I have a bash script that send a Matt meager via mosquito. Can you run the script from the CLI?

On Thu, Mar 3, 2022 at 5:36 PM Nic97 @.***> wrote:

Hi everyone, i tried to lauch the motion_event.sh to detect motion and notify via telegram bot. But where i execute the script i have this error: /var/www/html/macros/motion_event.sh: 21: [: -eq: unexpected operator

Anyone had the same problem?

Thanks

— Reply to this email directly, view it on GitHub https://github.com/silvanmelchior/RPi_Cam_Web_Interface/issues/652, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADJTLWQNV3SPYN7RV2JAMLDU6E5GLANCNFSM5P3Z3XXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

Nic97 commented 2 years ago

I attach the the script that cause

Motion_event.sh.txt

The link of project is: https://www.moreware.org/wp/blog/2022/03/03/raspberry-pi-cam-bot-telegram-che-rileva-movimenti/

Thanks in advance