# Sending .gif and/or .mp4 files to iOS devices

**URL:** <https://community.openhab.org/t/sending-gif-and-or-mp4-files-to-ios-devices/101170>\
**Category:** Actions\
**Created:** [June 22, 2020, 1:37pm UTC](https://community.openhab.org/t/sending-gif-and-or-mp4-files-to-ios-devices/101170 "2020-06-22T13:37:16Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![bgilmer](https://community.openhab.org/letter_avatar_proxy/v4/letter/b/9de0a6/32.png) [@bgilmer](https://community.openhab.org/u/bgilmer)\
**Post date:** [June 22, 2020, 1:37pm UTC](https://community.openhab.org/t/sending-gif-and-or-mp4-files-to-ios-devices/101170/1 "2020-06-22T13:37:16Z")

</div>

Are there any actions available in OpenHAB that would allow someone to send a .gif file or a .mp4 file to an iOS device? I know Telegram will do this, but that functionality is not currently supported in the Telegram action add-on.

Written as a user story:  
“As an OpenHAB user running the ipcamera binding, I want to be able to write a rule that, when motion from a camera is detected, sends a short animation as a GIF consisting of the motion event video to an iOS device, so that I can not only receive a text motion alert, but so that I can also see what caused the alert.”

---

<div class="post-metadata">

**Author:** ![mstormi](https://community.openhab.org/user_avatar/community.openhab.org/mstormi/32/55857_2.png) [@mstormi](https://community.openhab.org/u/mstormi)\
**Post date:** [June 22, 2020, 5:18pm UTC](https://community.openhab.org/t/sending-gif-and-or-mp4-files-to-ios-devices/101170/2 "2020-06-22T17:18:24Z")

</div>

> [@bgilmer](#):
>
> I know Telegram will do this, but that functionality is not currently supported in the Telegram action add-on.

Use of the v1 action is deprecated. There is a v2 binding of the same name and I have not tried but [sending a photo](https://www.openhab.org/addons/bindings/telegram/#actions-to-send-messages-to-all-configured-chats) _is_ said to be supported. Remember you can have file:// URLs, too.

---

<div class="post-metadata">

**Author:** ![bgilmer](https://community.openhab.org/letter_avatar_proxy/v4/letter/b/9de0a6/32.png) [@bgilmer](https://community.openhab.org/u/bgilmer)\
**Post date:** [June 22, 2020, 7:29pm UTC](https://community.openhab.org/t/sending-gif-and-or-mp4-files-to-ios-devices/101170/3 "2020-06-22T19:29:15Z")

</div>

Thanks @mstormi! I can verify that it does work to send a photo. I can also verify that if you send a GIF as sendPhoto, the first frame of the GIF animation displays on the iOS app. However, as far as I have been able to determine, you cannot send an animation or a .mp4.

And you are correct Markus, I can verify that you can specify a file:// url to send a local file. That does work.

Best

---

<div class="post-metadata">

**Author:** ![psyciknz](https://community.openhab.org/user_avatar/community.openhab.org/psyciknz/32/17347_2.png) [@psyciknz](https://community.openhab.org/u/psyciknz)\
**Post date:** [June 22, 2020, 7:33pm UTC](https://community.openhab.org/t/sending-gif-and-or-mp4-files-to-ios-devices/101170/4 "2020-06-22T19:33:05Z")

</div>

I think mp4 might be a hard ask of any ios notification platform. Pushover does images as well and possibly gif, but unsure about mp4.

Slack might work? but it requires the set up of the slack server (I have one for all my notifications from openhab and other systems here at home, which important must see stuff going to pushover as well). Including images, but I don’t push any video.

The old standby of email might be the best… Or host them somewhere and notify out a link to it?

---

<div class="post-metadata">

**Author:** ![mstormi](https://community.openhab.org/user_avatar/community.openhab.org/mstormi/32/55857_2.png) [@mstormi](https://community.openhab.org/u/mstormi)\
**Post date:** [June 22, 2020, 7:39pm UTC](https://community.openhab.org/t/sending-gif-and-or-mp4-files-to-ios-devices/101170/5 "2020-06-22T19:39:51Z")

</div>

IIRC Telegram recently announced sort of an upgrade on its media capabilities but I don’t recall how much video was in there. Guess we need to wait for that to ‘trickle down’ into the binding.  
You could probably help and eventually animate the maintainer by providing him with a pointer to infos on those new capabilities.

---

<div class="post-metadata">

**Author:** ![matt1](https://community.openhab.org/user_avatar/community.openhab.org/matt1/32/19930_2.png) [@matt1](https://community.openhab.org/u/matt1)\
**Post date:** [June 23, 2020, 12:21pm UTC](https://community.openhab.org/t/sending-gif-and-or-mp4-files-to-ios-devices/101170/6 "2020-06-23T12:21:39Z")

</div>

Pushover works well on iOS with gif and the overview message that pops up is animated with the gif which is handy. I’m sure I put an Example in the ipcamera readme.

Telegram can do mp4 just never tried it, a few have posted recently in the forum about it. Advantage of telegram is that you can display an unlock button in a push message to unlock a door whilst looking at the video of who rang the doorbell.

---

<div class="post-metadata">

**Author:** ![bgilmer](https://community.openhab.org/letter_avatar_proxy/v4/letter/b/9de0a6/32.png) [@bgilmer](https://community.openhab.org/u/bgilmer)\
**Post date:** [June 23, 2020, 4:04pm UTC](https://community.openhab.org/t/sending-gif-and-or-mp4-files-to-ios-devices/101170/7 "2020-06-23T16:04:07Z")

</div>

> [@psyciknz](#):
>
> I think mp4 might be a hard ask of any ios notification platform.

Thanks @psyciknz. I have verified that Telegram does both animations and .mp4s. In fact, GIF files (animations) are converted to .mp4 video by Telegram before they are pushed to the client. So at least that part of the solution works. Unfortunately this is relatively recent, I believe, so our OH2 binding does not support it (yet). I have raised an issue on GitHub addons, so I hope the OH2 Telegram developer will pick that up. Fingers crossed.

---

<div class="post-metadata">

**Author:** ![bgilmer](https://community.openhab.org/letter_avatar_proxy/v4/letter/b/9de0a6/32.png) [@bgilmer](https://community.openhab.org/u/bgilmer)\
**Post date:** [June 23, 2020, 4:05pm UTC](https://community.openhab.org/t/sending-gif-and-or-mp4-files-to-ios-devices/101170/8 "2020-06-23T16:05:33Z")

</div>

I have recently raised an issue on the GitHub OH addons project. Is this the right place to hopefully bring this to the maintainer’s attention?

---

<div class="post-metadata">

**Author:** ![bgilmer](https://community.openhab.org/letter_avatar_proxy/v4/letter/b/9de0a6/32.png) [@bgilmer](https://community.openhab.org/u/bgilmer)\
**Post date:** [June 23, 2020, 4:06pm UTC](https://community.openhab.org/t/sending-gif-and-or-mp4-files-to-ios-devices/101170/9 "2020-06-23T16:06:05Z")

</div>

Thanks @matt1. I may give Pushover a try.

---

<div class="post-metadata">

**Author:** ![mstormi](https://community.openhab.org/user_avatar/community.openhab.org/mstormi/32/55857_2.png) [@mstormi](https://community.openhab.org/u/mstormi)\
**Post date:** [June 23, 2020, 4:45pm UTC](https://community.openhab.org/t/sending-gif-and-or-mp4-files-to-ios-devices/101170/10 "2020-06-23T16:45:54Z")

</div>

> [@bgilmer](#):
>
> Is this the right place to hopefully bring this to the maintainer’s attention?

yup. Mind naming it [telegram] or the like.

---

<div class="post-metadata">

**Author:** ![bgilmer](https://community.openhab.org/letter_avatar_proxy/v4/letter/b/9de0a6/32.png) [@bgilmer](https://community.openhab.org/u/bgilmer)\
**Post date:** [June 23, 2020, 5:55pm UTC](https://community.openhab.org/t/sending-gif-and-or-mp4-files-to-ios-devices/101170/11 "2020-06-23T17:55:18Z")

</div>

Thanks. Already done [here](https://github.com/openhab/openhab-addons/issues/7971).

---

<div class="post-metadata">

**Author:** ![roy\_liao](https://community.openhab.org/user_avatar/community.openhab.org/roy_liao/32/37047_2.png) [@roy\_liao](https://community.openhab.org/u/roy_liao)\
**Post date:** [June 23, 2020, 8:14pm UTC](https://community.openhab.org/t/sending-gif-and-or-mp4-files-to-ios-devices/101170/12 "2020-06-23T20:14:02Z")

</div>

We’re currently using pushover for our Android devices integrated with the pushover binding and blue iris to accomplish this. Works very reliability.

Different platform, but the principles are the same for iOS.

I did a full write-up on the process here:

> [@Blue Iris integration- HTTP binding, REST api](https://community.openhab.org/t/blue-iris-integration-http-binding-rest-api/10838/26):
>
> Summary Send animated GIFs from Blue Iris to your phone. Overview Blue Iris gives you tons of different ways to work with your videos. I chose to animate JPEGs instead of video since I assume most people on Blue Iris use the proprietary \*.bvr format and JPEGs are easier to convert. The JPEG method has the benefit of being less disruptive for most BI users. On the other hand, if you record in MP4 in BI, there are probably more efficient ways to create GIF files. In my example below, GIF conve…

---

<div class="post-metadata">

**Author:** ![bgilmer](https://community.openhab.org/letter_avatar_proxy/v4/letter/b/9de0a6/32.png) [@bgilmer](https://community.openhab.org/u/bgilmer)\
**Post date:** [June 24, 2020, 9:34pm UTC](https://community.openhab.org/t/sending-gif-and-or-mp4-files-to-ios-devices/101170/13 "2020-06-24T21:34:40Z")

</div>

Thank you @roy_liao! I just tried it and it works just fine with the following in the OH2 rules file.

```auto
sendPushoverMessage(pushoverBuilder("test").withAttachment("/tmpfs/back3/ipcamera.gif"))

```

If you do not mind, one stupid question. What do you use BI for? Is it functioning as an NVR similar to Zoneminder?

---

<div class="post-metadata">

**Author:** ![roy\_liao](https://community.openhab.org/user_avatar/community.openhab.org/roy_liao/32/37047_2.png) [@roy\_liao](https://community.openhab.org/u/roy_liao)\
**Post date:** [June 24, 2020, 11:15pm UTC](https://community.openhab.org/t/sending-gif-and-or-mp4-files-to-ios-devices/101170/14 "2020-06-24T23:15:05Z")

</div>

Glad it worked.

Yes, I use BI for NVR functions. It’s pretty neat as BI has a ton of flexibility and you can integrate lots of OH features with it. For instance, here are some ideas:

- Send animated notifications (as you asked in this topic)
- Integrate AI functions to trigger activities (if your car pulls in, do something in OH)
- Change recording profiles if alarm is tripped
- Send motion detected from blueiris to OH and trigger items (turn on lights)
- Overlay item status from OH on top of video in BI. Here’s a sample I posted in an old topic:

 ![](https://community-openhab-org.s3-eu-central-1.amazonaws.com/original/2X/5/53750e0cc0ea49b58bb13feaf1b5d079c245161a.jpg)
