]> git.basschouten.com Git - openhab-addons.git/commitdiff
Update README.md (#17495)
authorDave-Baldwin <60361786+Dave-Baldwin@users.noreply.github.com>
Wed, 2 Oct 2024 19:56:32 +0000 (15:56 -0400)
committerGitHub <noreply@github.com>
Wed, 2 Oct 2024 19:56:32 +0000 (21:56 +0200)
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>
bundles/org.openhab.binding.pushover/README.md

index afcbd476fc27bc429aa9091de4f223e6c1f0d969..2b7b93eb2c7e97a04e0563fd3b4c88be7841e265 100644 (file)
@@ -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.