i want to send a notification to my phone when my 3d printer is done and use this script:
Code: Select all
return {
on = {
devices = {
'3d printer energy'
}
},
execute = function(dz, device)
local energy = dz.devices("3d printer energy")
local notify = dz.devices("notify 3d printer")
if energy.actualWatt < 10 and energy.actualWatt ~= 0 and notify.lastUpdate.minutesAgo > 60 then
dz.notify('3d printer', 'de 3d printer is klaar', dz.PRIORITY_NORMAL, '', '824', dz.NSS_GOOGLE_CLOUD_MESSAGING)
notify.switchOn()
end
end
}
is it possible that it only sends a push notification to my phone only?
i hope someone will have an answer.