motioneye-project / motioneye

A web frontend for the motion daemon.
GNU General Public License v3.0
3.93k stars 653 forks source link

recieving blank attachements on telgram notifications #2785

Closed orbit80 closed 1 year ago

orbit80 commented 1 year ago

Hello , the issue is pretty simple telegram notifactions are working , i do get the test message from the TG boot but only a few motion images are beeing sent successfully

most of the messages are just : Motion has been detected by camera "Office/DietPi" at 2023-06-29 20:49:54 (local time). with no images attached

only a few motion images are attached successfully.

my configuration : attached images time : 30 no email notifications no web hooks no running commands

on still images section : enable manual snapshots - off capture mode - auto

zagrim commented 1 year ago

There is no such capture mode as "auto", at least not in the current dev or rather ancient 0.42-rc1 which are the ones I had readily available for testing. Do you get any saved pictures for the camera when motion is triggered (please check using the web interface)?

Anyway, I just tested Telegram notification with current dev branch (still image capture mode = "Motion triggered", attached images time for Telegram = 30) and I did get plenty of pics (well, plenty of messages with one pic per message). I had capture mode set to "Motion triggered" which seems to produce one pic per second - probably better use "Motion triggered (one picture)" to have Motion save only the one which it estimates being the "best" (most changed pixels). However, since the "best" frame can only be selected after the motion event ends, if you have really long lasting events it might take a while for Motion to re-evaluate all the frames to select the one to save. But I'd guess 30 secs is rather safe bet for Attached images time, if you just get any pictures saved in the first place.

orbit80 commented 1 year ago

Thanks zagrim indeed , the problem was with capture mode definition , it was configured as "Motion Triggered [ One Picture ] " after changing it to "Motion triggered" , it starts to send bursts of images every single motion detedcted event.

as far as i concern , it fullfils my demands . so thanks again , appriciate it.