• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    How to play an mp3 file on condition?

    Scripts
    2
    2
    44
    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.
    • skywatch
      skywatch 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.....

      jkandasa 1 Reply Last reply Reply Quote 0
      • jkandasa
        jkandasa @skywatch last edited by

        @skywatch You can follow this example

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        0
        Online

        638
        Users

        495
        Topics

        3.2k
        Posts

        Copyright © 2015-2022 MyController.org | Contributors | Localization