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

PIR detected #35

Open
bmburi opened this issue Nov 28, 2022 · 5 comments
Open

PIR detected #35

bmburi opened this issue Nov 28, 2022 · 5 comments

Comments

@bmburi
Copy link

bmburi commented Nov 28, 2022

is there a way while the AVI is enabled to send a message saying that motion detected and send u the video instead of what is happening now which sends the pic that says pir event and u get the video
thanks in advance!

@FBMinis
Copy link

FBMinis commented Nov 28, 2022

is there a way, while the AVI is enabled, to send a message saying that motion detected and send u the video, instead of what is happening now, which sends the pic that says pir event and u get the video

Meaning, you don't want to receive the photo before the video? You only want to receive a message before the video?

I would comment line 1494 send_the_picture(); and paste under it bot.sendMessage(chat_id, "motion detected", "");

@bmburi
Copy link
Author

bmburi commented Nov 28, 2022

well now it sends me the picture the message and the video
how can i make it only the message and the video?

@bmburi
Copy link
Author

bmburi commented Nov 28, 2022

plus on enavle pir it sends only the message not the pic?

@jameszah
Copy link
Owner

Out of town for a while ... catching up on discussions

The pir interrupt starts a task, which sets a variable:

Then in the loop, it checks the variable, and does something

In the code it calls send-the-picture, instead, put in this code

    String hi = "Got a pir interrupt ";
    bot.sendMessage(chat_id, hi, "Markdown");
    client.setHandshakeTimeout(120000);

You also need to delete the picture that would be sent -- this line from send-the-picture

esp_camera_fb_return(vid_fb);

... that was allocated in the camera_loop

vid_fb = get_good_jpeg();

@hakam007
Copy link

hello sir please guide me and I will be highly thankful to you....
whenever any PIR event happened thn its send the pic, but the pic is not live it is long time ago taken. please help in this regard

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

4 participants