A few years ago I bought a cheap IP cam, this cam is now functioning as live cam. It doesn’t record anything.
There is a snapshot trigger input on the back of the cam to make a snapshot which I can set to save on ftp-server on my raspberry pi (which is also my blynk server).
I don’t know if there is an option to remotely trigger a snapshot.
I now have a AC doorbell triggering my wemos mini pro when pressed. The wemos will send a webhook http post to a telegram-bot link to send a notification in the family group chat.
I would like to make a feature to include a snapshot of the moment when the doorbell was pressed.
Yeah, that’s a possibility… But I was hoping on a wireless solution… Maybe there is a custom new firmware for this device to trigger the shutter by http request?
I believe that would be a request outside of the Blynk forum
And as it is an unbranded camera, your guess as too where to search is as good as mine.
PS, at least your camera has the remote trigger option… mine doesn’t, otherwise I would have already made my own Video Doorbell to replace my absolutely craptastic SkyBell
Sometimes the url will need to include a username and password in the first part or last part of the url.
Also some urls are specific to certain browsers but I think snapshot.cgi is universal.
Therefore I think your requirement might be possible.
Hmm, yes, that will work just as well (another DOH! on my part)… it is nice to have another point of view, to point out the obvious… but I bet you are not allowed to be around when someone is playing solitaire
There is also a ftp function to save the picture to a remote server. I am going to send it to my raspberry pi and let him send it straight to my telegram chat with the telegram api http request.
Or it is possible with the ipcam uploading it straight to the telegram chat link.
@hutje I have used the ftp facility but don’t know about telegram.
Currently I can send the Webhook and the log shows a 200 OK response. The image was created but unfortunately it looks like webhook is also trying to retrieve the “document” (jpeg) file and even at just 22Kb it is way too big to go via Blynk.
Debug gives:
[43987] Packet too big: 46010
And drops the connection to the server.
You could make the request via Blynk but outside of webhooks but I’m still struggling to get the jpeg.
I think it’s possible to request the snapshot from the wemos and the picture will save on the ftp server. Then I can make a python script to send the picture with the http request api of Telegram to get the picture.
@hutje I have a bash script that takes a snapshot and then emails it to me. It’s not based on movement though, simply on demand (or I run the screenshots in a loop and just email on demand).
Just need to work out how I can call the script from a WeMos / Blynk.
@hutje an @Gunner Blynk Webhook is now taking snapshots from my camera and emailing them to me.
Built a very basic php page that runs the bash "snapshot and email " script when the page is loaded. Added the php url to Webhooks and all working fine.
For me it is quite useful because I use a WISP that doesn’t allow port forwarding so this particular camera is not normally accessible via the internet.
What command do I add to webhook to include the .jpg into my email?
BTW, I know diddly about PHP (Pretty Hard Programming?) and a script is what I don’t use when making a YouTube video … so please use very big words when explaining the steps, hah!
@Costas Ahh, I miss-understood… I thought the webhook widget had been modded in the last update to allow direct image link/download to app (not that we have a viewer widget yet ;))
Thank you for the basic data flow requirements… I will eventually look into other programming languages… but still dragging my way through C/C++ functions that Arduino uses (not to mention Blynk command structure).
And yes Google is very handy… I tried Googling Irony in relation to your answer