I wasn’t being ironic that is seriously how I do much of my coding work.
I know, I was being facetious (my natural state of being)… sorry
I live in Google for most everything tech related… it has better memory recall than I do
I finally have the time to work on this project again. I was told by a friend, maybe this could be done with node.js. I don’t know anything about this.
I found the link my cam works with. This was easy to find working with inspect element with chrome.
Now I want to give with the esp8266 the request to my Pi to request the picture and send it with the Telegram http-api to my phone.
Just solved the problem.
I installed Node-red and made a http get for triggering my raspberrypi. Then it will execute a bash file with:
#!/bin/sh
SnapFile="/var/tmp/snapshot.jpg"
# Get snapshot via IPCAM
wget -O $SnapFile "http://xxx.xxx.x.xxx:81/snapshot.cgi?loginuse=xxxxxxxx&loginpas=xxxxxxx"
# Send Telegram message with image
curl -s -X POST "https://api.telegram.org/bot1234567:ABCDEFGHIJKLMN/sendMessage" -F chat_id=12345678 -F text="That is the doorbell"
curl -s -X POST "https://api.telegram.org/bot1234567:ABCDEFGHIJKLMN/sendPhoto" -F chat_id=-12345678 -F photo="@$SnapFile"
# Remove Image
/bin/rm $SnapFile
Hello,
I would like to try and implement a similar thing. I’ve got Jamin’s Smartgate set up on a nodemcu and that will send a webhook.
I’ve created a Telegram bot and sent it a message from my pi and I’ve installed node-red.
I’m having trouble setting up the flow to implement your script, any chance you could send a few tips please…
Danjewel