GithubHelp home page GithubHelp logo

drumfreak / homebridge-bluetooth-soundbutton Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 2.0 152 KB

A switch platform that plays sounds using a command for players such as omxplayer, vlcplayer, alsa play (aplay) and more, options, and file input over bluetooth potentially with alsa channels using bluealsa. Built based on Raspberry Pi 3 and Stretch bluetooth changes. See the readme.

License: MIT License

JavaScript 72.02% Shell 27.98%

homebridge-bluetooth-soundbutton's People

Contributors

drumfreak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

graystoneactual

homebridge-bluetooth-soundbutton's Issues

Trying to Get Your Plugin to Work

I have my Homebridge setup and my Raspberry Pi connected to an Amazon Echo Dot. But when I press the button to turn on a sound, it does not play at all. I know my Pi is connected because I can use terminal to play a sound file using mpg321.

{
"platform": "SoundButton",
"name": "SoundButton",
"debugging": true,
"defaultSoundPlayer": "/usr/bin/omxplayer.bin",
"enableAlsaOutput": true,
"accessories": [
{
"accessory": "SoundButton",
"id": "000000000001",
"name": "Jazz",
"soundFile": "/home/pi/Music/test.mp3",
"soundOptions": [
"-o",
"alsa:default"
],
"repeat": 0,
"loop": false,
"volume": 60,
"debugging": true,
"soundEnabled": true
}
]
}
],

Was wondering if you could help. Thanks.

MacOS?

I love the idea of this plugin, but I've got Homebridge running on a Mac. I can get the switch to appear in my Home app, but whenever I try to activate it I get the following error relating to not finding the OMXplayer. I know that's specific to Pi's...any way to get the sound to play via Mac you think?

[2/17/2019, 8:07:44 AM] [SoundButton] ******* Playing Sound.... /Users/guthrieboone/SoundFiles/FireplaceOn.mp3
events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: spawn /usr/bin/omxplayer.bin ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
    at onErrorNT (internal/child_process.js:407:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
    at onErrorNT (internal/child_process.js:407:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)

homebridge-bluetooth-soundbutton

Hey. Sorry to bother you, there is one question about the homebridge-bluetooth-soundbutton plugin. I honestly didn’t understand a little, because I don’t speak English well, but can I do the following with this plugin: create a series of buttons in the homekit that will include certain bluetooth speakers with a certain audio recording. For example: There is a “Kitchen” button in the homekit, I press it or turn it on using SIRI, and the bluetooth speaker is turned on, which is located in the kitchen and “Kitchen” sounds from it. And so with every room, doors and basic items. I think there will not be many bluetooth speakers, about 10-15. This is necessary for a loved one, lost sight and it is necessary to navigate and adapt to current realities, and for this to happen faster they were advised to put speakers so that the orientation was on them. I just didn’t find any more ready-made solutions and came across your plugin, from the description I realized that theoretically this is possible. Thank!!!

Noob Needs Help

I'm playing around with your plugin and using a RPi3B+ headphone jack as my test output. Is there a particular config option to play the file out on my RPi? Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.