omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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

    Pythonista
    3
    6
    2923
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ihf
      ihf last edited by

      notification.schedule("hello world",5,"circles")

      Notification fires but no sound. Volume is up. What am I missing?

      1 Reply Last reply Reply Quote 0
      • techteej
        techteej last edited by

        Are you sure "circles" is the name of a sound file Built-In To Pythonista?

        1 Reply Last reply Reply Quote 0
        • ihf
          ihf last edited by

          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.

          techteej 1 Reply Last reply Reply Quote 0
          • techteej
            techteej @ihf last edited by techteej

            @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.

            1 Reply Last reply Reply Quote 0
            • ihf
              ihf last edited by

              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?

              1 Reply Last reply Reply Quote 0
              • JonB
                JonB last edited by

                try

                import datetime
                dt_sec=(datetime.datetime(2015,9,5,0,0,0,0)-datetime.datetime.now()).seconds
                
                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Powered by NodeBB Forums | Contributors