Beta Version 0.5.0
For those keen to try/test have updated Plugin to allow creation of Animated Gifs. (Currently its a separate Branch DevImageIO - but will release Beta in releases tab soon)
This as above pictures enables per camera animated gifs to be sent - and then the plugin creates a animated gif of the recent events.
Essentially this is captured live - image at a time and then package/converted and sent. So if capturing 30 seconds of time - will take 30 seconds plus to send.
Hence best kept to 5-15 seconds or so. The options should be well commented. The images are in the same directory, but a new directory for each Camera is created.
The way I have done this is to use two external calls - one to build-in Sips app to convert jpg to Gif. The next is to package gifiscle within the plugin and this is called to create the Anims. Separate threads are created so there is no main-thread time impact for this.
There are no additional libraries required (I hope....)
Options:
These can then be sent via imsg very easily with the following Applescript action group.
- Code: Select all
delay 5
tell application "Messages"
set myid to get id of first service
set theBuddy to buddy "toemailaddress" of service "E:fromemailaddress note the E:"
send POSIX file "/Users/Username/Documents/Indigo-BlueIris/CameraNameShort/Animated.gif" to theBuddy
end tell
Would suggest this is best in a external script given the time to run aspects. Delay above depends on how long images are captured for.
To Do:
- Add action group to disable triggering overall/per camera; Add Custom Device State for Camera whether Plugin Triggering is enabled
This will be different to diabling/turning off motion at BI server end - will just effect whether the plugin runs triggers.
For example- home and don't want to get animgif's about motion; but still happy for BI to continue to record.
- Consider separate trigger post Animated gif creation - Avoid the need to add any delay to image sending.
Glenn