• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login

    How to play an mp3 file on condition?

    scheduled pinned locked moved Scripts
    2 posts 2 posters 595 views 1 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • skywatchS offline
      skywatch
      global:last-edited-by,

      Hej!

      I have made some sound files so that mycontroller can 'talk' to me when certain conditions arise.

      So how would I go about triggering the pi to play a sound sample from mycontroller. It should only need to be able to execute a bash command to play the required sound file.

      This way I can hear directly which sensor has triggered or what has changed or even if the fridge gets too warm.....

      jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
      • jkandasaJ offline
        jkandasa @skywatch
        global:last-edited-by,

        @skywatch You can follow this example

        one-reply-to-this-post last-reply-time reply quote 0
        • first-post
          last-post

        1

        online

        644

        users

        532

        topics

        3.4k

        posts
        Copyright © 2015-2025 MyController.org | Contributors | Localization