Giter Club home page Giter Club logo

home-assistant-jukebox's People

Contributors

bigwebstas avatar cyberjunky avatar dinges28 avatar jakommo avatar lukx 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  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

home-assistant-jukebox's Issues

unable to save jukebox.js in sub-directory

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:

  • url: /local/custom-lovelace/jukebox.js
    type: module

Also : does this script support adding version info, to avoid caching issues?

resources:

  • url: /local/custom-lovelace/jukebox.js?v=1 ?? Does this work
    type: module

Cheers,

Bram

Hiding volume control option

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,

Song Artist and Title under volume slider

Hello,

I have added code from Pull Request:

#20

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.

disable tab bar

On which place in the code I can disable the head on which I can switch the media players? I have only one so I want to disable it.
1

Install problem

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....

Volume slide

Hi,

Somehow since yesterday the volume slider is gone. Only mute and stop is visable

Power Off button?

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.

image

Can you add this Power button next to the Stop button?

Thank you.

Instances of paper-button need to be replaced with mwc-button

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);

Buttons not displaying in 2021.11

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.

jukebox

This shows no play, pause, stop buttons displayed. Reloading lovelace and restarting HA had no affect.

Request: set media player app_name

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?

Don`t work with sonos one box

Hello,
I put this settings in the cart configurations:
type: custom:jukebox-card
links:

It doesn`t work with sonos one box.

Feature Request: alternative name for speakers

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.

Stop button is greyed out

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?

Long buffering for specific radio stations

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

Guide Outdated

Hello the install guide is outdated can you update it please

Validate configuration

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.
image

Audius.co support

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

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.