Pushover - Bild zu groß?
Verfasst: 17.11.2022, 20:33
Hallo,
kann es sein das es bei Pushover ein großes Bild nicht funktioniert? Mit einem kleinen Bild funktioniert alles.
Wenn ich das Bild manuell convertiere funktioniert alles. So aber nicht, warum?
kann es sein das es bei Pushover ein großes Bild nicht funktioniert? Mit einem kleinen Bild funktioniert alles.
Wenn ich das Bild manuell convertiere funktioniert alles. So aber nicht, warum?
Code: Alles auswählen
dom.GetObject("CUxD.CUX2801001:1.CMD_EXEC").State("wget --no-check-certificate -O /tmp/Tor1.jpg 'https://172.16.1.1:4001/webapi/entry.cgi?api=SYNO.SurveillanceStation.Camera&method=GetSnapshot&version=7&cameraId= 12&_s'");
dom.GetObject("CUxD.CUX2801001:1.CMD_EXEC").State("/bin/convert -resize 80% /tmp/Tor1.jpg /tmp/Tor2.jpg");
string MESSAGE = " <font color='red'>Eingang</font>";
string ATTACHMENT ="/tmp/Tor1.jpg";
string TOKEN = "TOKEN"; ! mein Token
string USERKEY = "KEY"; ! mein Usercode
string DEVICE = "HANDY";
var RETRY = "30"; !wiederholungen des Alarm bei prio >1
var EXPIRE = "120"; ! wie lange bis verfaellt
dom.GetObject(ID_DATAPOINTS).Get("CUxD.CUX2801001:11.CMD_EXEC").State("/usr/local/addons/cuxd/extra/curl -s -k -F html=1 -F token='"#TOKEN#"' -F user='"#USERKEY#"' -F device='"#DEVICE#"' -F message='"#MESSAGE#"' -F attachment=@'"#ATTACHMENT#"' -F sound=siren -F priority=1 http://api.pushover.net/1/messages.json");