Hi there,
Today I installed the new iOS app and really wanted to try out the new features straight away.
Among other things, how to send a short video, as announced in the release notes for 4.2.
So far I have been using the ip cam binding to save a 5 sec video in tmpfs and then send it via Telegram after creating this video, but when I try to change this rule to cloud notification I fail miserably.
rule "kamera-3"
//Mail mit 5 Sekunden MP4 von Haustuer verschicken wenn bewegung
when
Item Kamera_Haustuer_MP4_Recording changed to 0
then
if( Mail_Cam_Eingang_Bewegung.state==ON ) {
val videoFilePath = "file:///tmpfs/cam_front/ipcamera.mp4"
val caption = "Bewegung an der Haustür"
val telegramAction_1 = getActions("telegram", "telegram:telegramBot:Andreas")
telegramAction_1.sendTelegramVideo(videoFilePath, caption)
val telegramAction_2 = getActions("telegram", "telegram:telegramBot:Manu")
telegramAction_2.sendTelegramVideo(videoFilePath, caption)
Mail_Cam_Eingang_Bewegung.sendCommand(OFF)
}
end
I was trying to place the path to the tmpfs file in the rule, but it only shows text:
sendNotification("xxx@icloud.com", "Bewegung an der Haustür", "motion", "Motion Tag", "Bewegung erkannt", "motion-id-1234", "///tmpfs/cam_front/ipcamera.mp4", null, null, null, null)
I also tried this:
sendNotification("xxx@icloud.com", "Bewegung an der Haustür", "motion", "Motion Tag", "Bewegung erkannt", "motion-id-1234", "http://192.168.1.206:8080/ipcamera/Haustuer/snapshots.mjpeg", null, null, null, null)
But this of course only works locally and gives me a live view but not the recorded video.
I cannot figure out how to fetch the last video recorded and saved to file:///tmpfs/cam_front/ipcamera.mp4, maybe somebody can assist me.
THX in advance.
BR Andreas