This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Simon Stürz 40b91f4dbd created cusom mail notification
changed googlemail plugin to mail notification plugin
2014-05-01 21:02:16 +02:00

8 lines
298 B
Bash
Executable File

#!/bin/bash
if [ -z $1 ]; then
echo "usage: $0 host deviceId subject body"
else
(echo '{"id":1, "method":"Actions.ExecuteAction","params":{"actionTypeId": "{054613b0-3666-4dad-9252-e0ebca187edc}", "deviceId":"{'$2'}","params":[{"subject":"'$3'"}, {"body":"'$4'"}]}}'; sleep 1) | nc $1 1234
fi