Giter Site home page Giter Site logo

homebridge-airtunes-radio's Introduction

AirTunes Radio

Internet radio player which will work with HomePod, generally with any AirTunes device.

Note: Does not support device discovery so you'll need to specify your HomePod IP address.

Installation

npm install -g homebridge-airtunes-radio

Configuration

...
    "accessories": [
        {
             "accessory": "HomePodRadio",
            "name": "Radio Two",
            "streamUrl": "http://icecast6.play.cz/cro2-128.mp3",
            "host": "10.0.1.146",
            "volume": 15,
            "port": 5000
        }
    ]
...

Feel free to contribute to make code better!

homebridge-airtunes-radio's People

Contributors

mcfisto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-airtunes-radio's Issues

Turn off device at the end of single mp3 file

I would like to use your great plugin for HomePod Voice Notification.
This is working by using just a single mp3 created by myself and placed on a server.
Is there a way to switch the device off at the end of the mp3 automatically?
At the moment it is already working like I would expect and just playing the voice notification.
But I'm worried that there will be a problem if the switch is constantly "on" like it is at the moment.
Thanks again.

https://www.youtube.com/watch?v=hhowPsbh7LQ

not working any more :(

very cool plugin! but will you update this plugin to support latest version of homebridge / node?

thank you!

[Enhancement] m3u Streams support

@mcfisto First of all, thanks for your great work and sharing.
Any chance to see m3u Streams support in the future?
Very looking forward to your ongoing development.
Thanks again.

No playback controls with HomePod, Siri or control center

Thanks for sharing! Just installed 0.2.0 and it's working fine.

But right now, there is no way to start/stop playing the stream with the HomePod itself or via control center on iOS.
Tapping on top of the HomePod or saying "Hey Siri, stop!" has no effect. The stream keeps on playing unless i stop it in the home app.

Any chance to fix this?

Feature Request

Could you build in the option to stream audio from a USB device? I have a digital turn table and am trying to find a way to get it to AirPlay to my HomePod. Their was a project that looks like it should work, but I’ve had a lot of issues getting it to work and have not heard anything yet.

Just a simple USB audio stream to send to the HomePod with control in the Home app would be amazing.

Thanks for the consideration!

Deactivate switch when another one is activated

Hi!
Firsat of all, thanks for the great plugin! FInally I can play my wifes radio stations via Homepod and she is not asking why I don´t buys Alexas :-)
I have four radio stations, but the switch keeps turnd on if I switch directly to another rasio station.
Would it be possible that an activation of a switch would deactivate the others first?

My thanks,
Jo

Node.js 12 not supported

I have updated the Node version on mi Raspberry to Node.js 12. Since upgrading your plugin doesn‘t work and more.
I deleted and tried to reinstall but it also won‘t work.
Would it be possible to fix it?

mcfisto

Hey mcfisto,
fantastic plugin, luckily we have people like you delivering what Apple doesn't want... ;-)
Unfortunately I cannot make it work, I installed the plugin and tried my own config.
The lightbulb shows up, after a few seconds it switches off.
Here is the outcome of the home bridge log... Please note: I erased the IP

Jan 26 16:32:52 hbridge3 homebridge[2212]: [2019-1-26 16:32:52] [Radio Two] Turning Radio Two on Jan 26 16:32:52 hbridge3 homebridge[2212]: Config2: {"accessory":"HomePodRadio","name":"Radio Two","streamUrl":"http://icecast6.play.cz/cro2-128.mp3","host":"XXX.XXX.X.XX","volume":15,"port":5000} Jan 26 16:32:52 hbridge3 homebridge[2212]: Device: [Circular]

I also tried to run it with exactly your config after I received some feedback that it might be due to a stream that doesn't fit at all... Unfortunately the same outcome...

Would be great if you might be able to help.
Do I need to change something with the port?

THX

Support to stream to Apple TV

Hi,

I have tried to stream to Apple TV but I am unable to get it to work.
Is it supported already? No errors are visible in the log, just the information that it has been turned on and the config and device json.

Thank you!

Works this plugin also with Sonos

Hello
I try to us the plugin with my Sonos One but at the moment no success. I try it like this

{
"accessory": "HomePodRadio",
"name": "Test-Wave",
"streamUrl": "http://icecast6.play.cz/cro2-128.mp3",
"host": "192.168.98.74",
"volume": 15,
"port": 5000
}

and the log say

[2019-1-30 18:26:02] [Test-Wave] Turning Test-Wave on
Config2: {"accessory":"HomePodRadio","name":"Test-Wave","streamUrl":"http://icecast6.play.cz/cro2-128.mp3","host":"192.168.98.74","volume":15,"port":5000}
Device: [Circular]

Sonos has also Airplay2 support and so i hope it's running on Sonos.

Greeting

config file

Where can I find the config file? And is it possible to stream to multiple HomePods?

Multiple accessories with same name

Hi, thanks for this great plugin!

I created two accessories and assigned them to two different rooms in Homekit. Both have the same name in Homekit ("Radio"). Unfortunately when i enable one of them then the other stops playing though the accessory in Homekit stays enabled.

If a label them differently (e.g. "Radio 1" and "Radio 2") then everything works fine.

No play issue

Hi there, this plug-in has some real potential. I got very excited the minute I saw it, but I have not been able to make it work just yet.

I installed it via sudo npm install -g —unsafe-perm Homebridge-AirTunes-radio (gave errors without unsafe-perm), then added the device in my config. I double checked the right ip for the HomePod and audio link, but when I activate the device in the Home app, no audio is being played. Also deleted the plug-in in full and reinstalled it.

I added the following to my config:

    {
        "accessory": "HomePodRadio",
        "name": "Radio Two",
        "streamUrl": "http://icecast.omroep.nl/radio2-bb-mp3",
        "host": "192.168.1.115",
        "volume": 15,
        "port": 5000
    },

homebridge log:

[7/12/2019, 5:17:03 PM] [Radio Two] Turning Radio Two on
Config2: {"accessory":"HomePodRadio","name":"Radio Two",�"streamUrl":"http://icecast.omroep.nl/radio2-bb-mp3","ho�st":"192.168.1.115","volume":15,"port":5000}
Device: {"_events":{},"_eventsCount":1,"udpServers":{"_e�vents":{},"_eventsCount":1,"status":1,"control":{"socket�":{"_events":{},"_eventsCount":1,"type":"udp4","fd":null�},"port":null,"name":"control"},"timing":{"socket":{"_ev�ents":{},"_eventsCount":1,"type":"udp4","fd":null},"port�":null,"name":"timing"},"hosts":["192.168.1.115"]},"audi�oOut":{"_events":{},"_eventsCount":1,"lastSeq":0,"hasAir�Tunes":true},"type":"airtunes","host":"192.168.1.115","p�ort":5000,"key":"192.168.1.115:5000","rtsp":{"_events":{�},"_eventsCount":0,"audioOut":{"_events":{},"_eventsCoun�t":1,"lastSeq":0,"hasAirTunes":true},"status":0,"socket"�:null,"cseq":0,"announceId":null,"activeRemote":41864042�1,"dacpId":"603f843ddad1aa93","session":null,"timeout":n�ull,"volume":15,"password":null,"passwordTried":false,"r�equireEncryption":false,"trackInfo":null,"artwork":null,�"artworkContentType":null,"callback":null,"controlPort":�null,"timingPort":null,"heartBeat":null},"audioCallback"�:null,"encoder":{},"audioSocket":{"_events":{},"_eventsC�ount":0,"type":"udp4","fd":null}}
[7/12/2019, 5:17:09 PM] [Radio Two] Turning Radio Two of�f

Speed of the stream

Hey McFisto,
Just closed my last issue, found the problem...
Again thx for this great plugin.
I have new question...
The stream I play sounded quite slow to me, the voices seemed a little bit weird.
I let the stream play for 3 hours and 45 minutes now and it played the news of 11:30.
So there is a delay of roughly 7%...
Any chance to fix this?

All the best

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.