lukx / home-assistant-jukebox Goto Github PK
View Code? Open in Web Editor NEWHome-Assistant Radio Station and Stream Selector Card
Home-Assistant Radio Station and Stream Selector Card
It would be a good improve if custom icons would be used in place on textual textual labels
I am trying to use this card with USB sound card connected to Raspberry 3B+. I need some help, what I have to type in entities:
?
Hello,
I put this settings in the cart configurations:
type: custom:jukebox-card
links:
It doesn`t work with sonos one box.
Hello,
I have added code from Pull Request:
Now I can see station name and logo on the display. I would prefer to see the song artist and title, but I understand this is not possible to have with casting.
I am now thinking other way around. If we can get the song artist and title from somewhere (scraping, etc...) and passed to HA as input_string entity, can you display it under the volume slider?
Thank you.
Add support for the distributed streaming free service Audius.co and you get a wonderful player.
In fact, you need to add support for several methods of this service and a formatted output of the results.
For example, you can find the user: curl https://audius-disco.dfw-x02.us.supercache.org/v1/users/search?query=A1ex&app_name=EXAMPLEAPP
So see his tracks: curl https://audius-disco.dfw-x02.us.supercache.org/v1/users/MV1E9/tracks?app_name=EXAMPLEAPP
To play a specific track like this: curl https://audius-disco.dfw-x02.us.supercache.org/v1/tracks/y9pAX/stream?app_name=EXAMPLEAPP
You can upload your own compositions to the service or listen to compositions of other users.
Documentation:
https://audiusproject.github.io/api-docs/#stream-track
Best regards
Hello,
For last few hours I am trying to debug long buffering on specific radio stations like this two:
https://scdn.nrjaudio.fm/adwz1/de/33047/mp3_128.mp3
http://live.1chi.si/vrabcek
It can take up to 20 seconds to start. If I press pause and play again as soon as station is selected it will start playing it instantly.
Same works with catt.
I am struggling with modifying function onStationSelect(e) to add some kind of delay or check if stream is in fact playing. If it would not then I would issue only play on it as suggested in pychromecast forums.
Can someone that knows a bit better JS and HA functions, give me/us a little help to solve this?
Thank you and best regards,
Andrej
Hello,
I can stop playback when playing with Stop button. But this does not "power off" Google device. It just goes into "Idle" state. After a while it powers off. When opening media player card, I have "Power Off" button there that will switch it off right away.
Can you add this Power button next to the Stop button?
Thank you.
Paper button was removed from homeassistant in 0.88
--- \Desktop\jukebox.js Sun Feb 24 07:50:33 2019
+++ \Homeassistant Config\www\jukebox.js Fri Feb 22 14:32:51 2019
@@ -171,7 +171,7 @@
}
buildStationSwitch(name, url) {
- const btn = document.createElement('paper-button');
+ const btn = document.createElement('mwc-button');
btn.stationUrl = url;
btn.className = 'juke-toggle';
btn.innerText = name;
@@ -270,7 +270,7 @@
padding: 10px 20px;
}
- paper-button.juke-toggle[raised] {
+ mwc-button.juke-toggle[raised] {
background-color: var(--primary-color);
color: var(--text-primary-color);
}
@@ -288,4 +288,5 @@
return frag;
}
+
customElements.define('jukebox-card', JukeboxCard);
Hi,
It would be interresting (at least for me) to have a setting for hiding volume control...
In my setup I use Jukebox for assigning Urls to players but controlling them with mini-media-player cards...
Thx,
Hi,
Somehow since yesterday the volume slider is gone. Only mute and stop is visable
Please allow to add a name to the player entities. I now have a list of "Living Room Speaker, Office Speaker, ...", which is too long for the header. I'd like to be able to put an alias here (which would not be used in other places in home assistant, so not using the customize functionality.
With my Denon music not work. Show error 'can't call media_player/play_media service'
Hello,
thank you for this wonderful add-on. I have a little problem: The stopbutton is greyed out and has no function. I added a seperate button below to stop playback, so either getting the button to work or being able to remove the button completely would help me just fine.
Is this possible without breaking some other function?
When using this card, my Chromecast audio displays "Default Media Receiver" no matter what station I'm streaming. Would it be possible to set the media player attribute app_name
to the same as the stream name
when a stream is played?
Hi there.
I have a question.
When I put your code in the config fill everything runs fine and I can listen to all radios perfectly.
But when I try to restart my home assistant sever home assistant gives an error that comes from your code.
I will put the error code in this post.
Hopefully you can help me.
Thank you in advance.
Hello the install guide is outdated can you update it please
It would be great it Spotify playlist would be supported
I tried to install your app but got the following error.
Custom element doesn't exist: jukebox-card.
I guess there is a missing file....
I didn't catch the exact version, but somewhere in the 2021.10-2021.11 updates, HA apparently changed the way icons are handled. Many of my custom cards no longer displayed icons. The ones in development issued updates, and the icons returned. Please apply whatever changes are necessary to display the icons. I'm researching the issue and will see if I can find the fix on another project that already updated.
This shows no play, pause, stop buttons displayed. Reloading lovelace and restarting HA had no affect.
Hi,
Great work on this custom-card! Just installed it and it works when I follow your instructions.
However all my custom Lovelace cards are in /www/custom-lovelace/
When I put the jukebox.js in this folder, the card doesn't load.
"custom element doesn't exist: jukebox-card"
resources:
Also : does this script support adding version info, to avoid caching issues?
resources:
Cheers,
Bram
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.