Problem hiding notification with CancelAlarm built-in function
#1
Question 
Hi,

I'm currently having an issue with using the CancelAlarm built-in function. For some reason I can't seem to get the notification that the alarm is being cancelled hidden from the user.

Please see below, line 34:
https://github.com/drewzh/xbmcfilecleane...default.py

I think maybe it's just me being new to python so please let me know if I'm doing anything wrong (I've only been learning for 2 days), or maybe there's an issue with the current implementation?

Thanks,
Drew
Reply
#2
CancelAlarm builtin automaticly show notification - there's nothing You can do about it
Reply
#3
Cheers for the response, but as you can see from the following page CancelAlarm takes a second optional parameter. This seems to work fine for creating an alarm, just not cancelling.

http://wiki.xbmc.org/?title=List_of_Built_In_Functions

Does anybody know of a work around or can point out the actual cause of the notification (I'm running latest Dharma release).

Cheers,
Drew
Reply
#4
Quote:CancelAlarm(name[,silent]) Cancel a running alarm. Set silent to true to hide the alarm notification. only available in trunk >r35674

it was added after dharma
Reply
#5
Ah that would explain it then, I thought as dharma was released a few days back it'd already have it in but thought it could be a possibility, thanks for clearing that up. I've since changed the script to run in a loop based on the condition of 'Service Enabled' in settings. I have a 60 second sleep on every iteration.

Is there any downside to what I'm doing? It seems to be chugging along fine and haven't noticed any issues yet.

Thanks,
Drew
Reply

Logout Mark Read Team Forum Stats Members Help
Problem hiding notification with CancelAlarm built-in function0