UPDATE: Solved by changing the extention of the picture!!!
snap.jpeg does not work
snap.jpg WORKS. crazy…
Hi there,
The following notification in the rule works fine and the message pushes through.
sendPushoverMessage(pushoverBuilder(“activated”))
But when I add the withAttachment bit it refuses to work and gives me 400 BadRequest in the logs
sendPushoverMessage(pushoverBuilder(“activated”).withAttachment("/tmp/snap.jpeg"))
[WARN ] [ab.action.pushover.internal.Pushover] - Method failed: HTTP/1.1 400 Bad Request.
I have tried using the pushover API directly with curl and it works from the commandline, but if
I call it from within the executeCommanLine the message never gets pushed.
curl -s --form-string “token=mytoken” --form-string “user=mytext” --form-string “message=here is an image attachment” -F “attachment=@/tmp/snap.jpeg” https
://api.pushover.net/1/messages.json"
Any ideas where to dig?