Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
No sound on Notification
-
notification.schedule("hello world",5,"circles")
Notification fires but no sound. Volume is up. What am I missing?
-
Are you sure "circles" is the name of a sound file Built-In To Pythonista?
-
I thought it was the name of notification sound (not like sound.play_effect). In any case, the docs say that if the sound doesn't exist, it will play the default notification.
-
@ihf It has to be named exactly like in sound.play_effect();
# coding: utf-8 import notification notification.schedule("hello world", 5, "Coin_5")
Works for me perfectly.
-
Yes, that works. Thanks. The notification. schedule function has the delay (sec) parm but it also returns a fire_date. Isit possible to set a notification for a future date other than putting it in as a delay?
-
try
import datetime dt_sec=(datetime.datetime(2015,9,5,0,0,0,0)-datetime.datetime.now()).seconds