Many thanks for this article. I've been looking for something similar for a while, so am excited to get this going.
However, I'm getting an error from the 'r = requests.post' line which reads:
NameError: name 'new_filelink' is not defined
The Pi is sensing motion, taking an image, and uploading to Filestack. IFTTT is sending a post to Telegram but the image is not coming through (getting a 'file not found' image).
If I replace new_filelink.url in the r = requests.post line with "
https://cdn.filestackcontent.com/theimageurl" then the image gets posted to Telegram, so the IFTTT to Telegram connection is working.
It seems that there is an issue with the IFTTT post picking up the new_filelink.url.
Please can you help!?
Also the camera seems to be only triggering for the first motion sensor, and doesn't continue. Any ideas?
Thanks for your help!
Jan