Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MusicCast support #5

Open
NovaGL opened this issue Jul 7, 2017 · 13 comments
Open

MusicCast support #5

NovaGL opened this issue Jul 7, 2017 · 13 comments

Comments

@NovaGL
Copy link

NovaGL commented Jul 7, 2017

Any chance of you getting this to work with MusicCast players that would be great.

It uses a JSON API instead of XML on the older devices.

@krauskopf
Copy link
Owner

Sorry, currently I do not own a MusicCast capable device. Will try my best as soon as I get my hands on one. But can't tell when...

@bbking78
Copy link

just got my hands on a WX-010 for xmas...would be great to control it over node-red. any chance on this?

@samvdb
Copy link

samvdb commented Feb 6, 2018

@krauskopf, newer models use udp broadcasting for their events and they have a new json api.
I think your code is almost compatible though... Take a look at my github repo how i use events on Musiccast devices. https://github.com/samvdb/php-musiccast-api

Would you mind setting up a branch to get me started? Your code setup is pretty clean and i dont want to mess with it.
Also, this github repo seems to have all the functions we need to get musiccast supported.
https://github.com/foxthefox/yamaha-yxc-nodejs

Let me know what you think

@krauskopf
Copy link
Owner

Hi @samvdb,

thanks for your message and your willingness to contribute :-). I really appreciate your support and will try to do my best to support you. Although, I still have no MusicCast cappable device, yet.

I created a new branch and added you as a contributor to the repository. So, happy coding!

Regarding integration of the new API:

  • Would you suggest to extend the current Get and Put node to support the new API, or to create two new nodes specialized for the MusicCast API?
  • As far as I unterstood, for the event node, we only need a new UDP listener which triggers the AVR from time to time. Sounds like this can be added easily.

Let me know how I can help you.

Best Regards,
Sebastian

@samvdb
Copy link

samvdb commented Feb 7, 2018

I will try to make some time in the coming weeks.

I'm guessing for BC reasons it might be best to create 3 new nodes ( GET PUT and Events).
We might call it Yamaha AVR Extended or something (thats what Yamaha calls it).

For the UDP events it's pretty straight forward. Everything is documented quite well in the api specs. All you need to do is a GET request to a certain url to subscribe yourself. This needs to be done every 10 min. An UDP Unicast packet will be sent to the IP that requested the subscription.
Headers are important for this part. I have not experimented with it a lot, but if the header information is not correct you will not receive events.

@uzelac
Copy link

uzelac commented Mar 4, 2019

Hi

Any luck with this ?
I have Node-RED working with my AVR but Musiccast speaker is no go.
Can't help in coding, sorry :)

Regards

@LowLyan
Copy link

LowLyan commented Nov 29, 2019

Hi!

I'm trying to use these nodes with a YSP2700 soundbar (Musiccast). They don' work with PUT GET on port 80 (right?)
Any news about Musiccast support?

Thanks

@sawo69
Copy link

sawo69 commented Jan 24, 2020

Musiccast integration would be great.

Sadly i don't have the skills to help.

@vore
Copy link

vore commented Nov 17, 2020

Hello! Any news on this? I have a Musiccast 20 which we could use for testing. There is some documentation here: http://habitech.s3.amazonaws.com/PDFs/YAM/MusicCast/Yamaha%20MusicCast%20HTTP%20simplified%20API%20for%20ControlSystems.pdf

Would this be hellfull: https://github.com/foxthefox/yamaha-yxc-nodejs

How can I help?

Regards

@krauskopf
Copy link
Owner

Sorry, no update from my side. As I still have no device with MusicCast support I am not able to implement the protocol. And programming the new features without being able to test is no valid option.

Sorry and regards,
Sebastian

@danie1kr
Copy link
Contributor

Hi all,
I created a new package which uses the REST API for the Yamaha MusicCast devices here.
It provides the nodejs API as provided by yamaha-yxc-nodejs.
Maybe you want to give it a try.

Best Regards
Daniel

@Assertor90
Copy link

Hi Daniel,
i have a Yamaha RX V4A and two Musiccast20, but i cant get your Node-red Module to work. Im not very experienced but im eager to learn, could you please post a working Flow so i can compare it and find the (probably obvious) mistakes i made.

Regards
Sascha

@danie1kr
Copy link
Contributor

danie1kr commented Apr 7, 2021

Hi @Assertor90
I added an example here: https://github.com/danie1kr/node-red-contrib-yamaha-yxc
For more questions, please continue there.
Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants