From: Dave-Baldwin <60361786+Dave-Baldwin@users.noreply.github.com> Date: Wed, 2 Oct 2024 19:56:32 +0000 (-0400) Subject: Update README.md (#17495) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=82ba5da24c23259590ca3d2dbdb191b0069d37f1;p=openhab-addons.git Update README.md (#17495) Add additional guidance around using Image-type item content in an attachment message. Signed-off-by: Dave-Baldwin <60361786+Dave-Baldwin@users.noreply.github.com> --- diff --git a/bundles/org.openhab.binding.pushover/README.md b/bundles/org.openhab.binding.pushover/README.md index afcbd476fc..2b7b93eb2c 100644 --- a/bundles/org.openhab.binding.pushover/README.md +++ b/bundles/org.openhab.binding.pushover/README.md @@ -56,7 +56,7 @@ One has to pass a `null` value if it should be skipped or the default value for - `sendMonospaceMessage(String message, @Nullable String title, @Nullable Duration ttl)` - This method is used to send a monospace message with TTL. -- `sendAttachmentMessage(String message, @Nullable String title, String attachment, @Nullable String contentType)` - This method is used to send a message with an attachment. It takes a local path or URL to the attachment (parameter `attachment` **mandatory**). Additionally you can pass a data URI scheme to this parameter. Optionally pass a `contentType` to define the content-type of the attachment (default: `image/jpeg` or guessed from image data). +- `sendAttachmentMessage(String message, @Nullable String title, String attachment, @Nullable String contentType)` - This method is used to send a message with an attachment. It takes a local path or URL to the attachment (parameter `attachment` mandatory). Additionally you can pass a data URI scheme to this parameter. The content of an Image-type item is also accepted (see demo.rules example). Optionally pass a `contentType` to define the content-type of the attachment (default: `image/jpeg` or guessed from image data). - `sendAttachmentMessage(String message, @Nullable String title, String attachment, @Nullable String contentType, @Nullable Duration ttl)` - This method is used to send a message with an attachment and TTL. See previous method for details.