iris
iris copied to clipboard
Enhancement: Add Apprise support as a vendor
Hey guys,
This looks awesome, but it would be great if you included support for Apprise as a notification vendor This would add out of the box support for many many more providers like Teams, twitter, telegram, etc.
Apprise has python libraries for easy integration
import apprise
# Create an Apprise instance
apobj = apprise.Apprise()
# Add all of the notification services by their server url.
# A sample email notification:
apobj.add('mailto://myuserid:[email protected]')
# A sample pushbullet notification
apobj.add('pbul://o.gn5kj6nfhv736I7jC3cj3QLRiyhgl98b')
# A sample Microsoft Teams notification
apobj.add('msteams:///T1JJ3T3L2@DEFK543/A1BRTD4JD/TIiajkdnlazkcOXrIdevi7F/')
# Then notify these services any time you desire. The below would
# notify all of the services loaded into our Apprise object.
apobj.notify(
body='what a great notification service!',
title='my notification title',
)