Coder Social home page Coder Social logo

Comments (12)

ant0nwax avatar ant0nwax commented on July 1, 2024

content of linkplay-radio-sources.yaml

          'http://ice.somafm.com/defcon': 'defcon',
          'http://ice.somafm.com/doomed': 'doomed',
          'http://ice.somafm.com/dronezone': 'dronezone',
          'http://ice.somafm.com/folkfwd': 'folkfwd'

from home-assistant-custom-components-linkplay.

ant0nwax avatar ant0nwax commented on July 1, 2024

okay, found the solution:

sorry for documenting my stuff here, instead of my own trello :)

(...)
    - platform: linkplay
      host: 192.168.1.82
      name: linkplay_2
      icecast_metadata: 'StationNameSongTitle'
      multiroom_wifidirect: True
      lastfm_api_key: 'secretkey'
      sources: !include linkplay-radio-sources.yaml
 (...)

content of linkplay-radio-sources.yaml

        {
          'line-in': 'AUX in',
          'TFcard': 'SD card',
          'http://ice.somafm.com/defcon': 'defcon',
          'http://ice.somafm.com/doomed': 'doomed',
          'http://ice.somafm.com/dronezone': 'dronezone',
          'http://ice.somafm.com/folkfwd': 'folkfwd'
        }

from home-assistant-custom-components-linkplay.

ant0nwax avatar ant0nwax commented on July 1, 2024

i just have some A11's and some A31's now and second ones do not have AUX in and no SD card

from home-assistant-custom-components-linkplay.

nagyrobi avatar nagyrobi commented on July 1, 2024

Good idea...

from home-assistant-custom-components-linkplay.

nagyrobi avatar nagyrobi commented on July 1, 2024

Check out new release. Added common_sources optional configuration directive to be able to maintain all the same stream sources for multiple players in a single config file. So you can keep local sources as before in the sources section, and you can include additional common sources with include.

from home-assistant-custom-components-linkplay.

ant0nwax avatar ant0nwax commented on July 1, 2024

thank you, koszonom :)

from home-assistant-custom-components-linkplay.

Travis-HA avatar Travis-HA commented on July 1, 2024

This is a great suggestion @ant0nwax and thanks for the update too @nagyrobi !! I'm having difficulty formatting the list though.

So for each speaker in configuration.yaml I have included an additional line of:

common_sources: !include linkplay-radio-sources.yaml

But, the content of linkplay-radio-sources.yaml is giving an error when I check the configuration in HA. I've tried including the leading {}, excluding them, and various other variations but HA doesn't like it...

could you please post an example of the linkplay-radio-sources.yaml file.

Thanks a lot

from home-assistant-custom-components-linkplay.

nagyrobi avatar nagyrobi commented on July 1, 2024

Post yours first, which causes the error.

from home-assistant-custom-components-linkplay.

Travis-HA avatar Travis-HA commented on July 1, 2024
{
  'http://1.2.3.4:8000/your_radio': 'Your Radio',
  'http://icecast.streamserver.tld/mountpoint.aac': 'Another radio'
  'http://94.199.183.186:8000/jazzy-soul.mp3': 'Jazzy Soul',
  'http://94.199.183.186:8000/jazzy-cool.mp3': 'Jazzy Cool',
}

...this generates the error:
Error loading /config/configuration.yaml: while parsing a flow mapping
in "/config/linkplay-radio-sources.yaml", line 1, column 1
expected ',' or '}', but got ''
in "/config/linkplay-radio-sources.yaml", line 4, column 3

from home-assistant-custom-components-linkplay.

nagyrobi avatar nagyrobi commented on July 1, 2024

The second line is missing an , from the end.
The last line shouldn't have an , at the end.

from home-assistant-custom-components-linkplay.

Travis-HA avatar Travis-HA commented on July 1, 2024

oh for goodness sake!! Thanks a lot - I just spent an hour wondering where I had gone wrong...

from home-assistant-custom-components-linkplay.

ant0nwax avatar ant0nwax commented on July 1, 2024

thanks guys that you like my solution
meanwhile i unluckily updated my homeassistant to dead,
will be back in a while, focusing on different stuff, this whole HA topic was getting a FTE job :)

from home-assistant-custom-components-linkplay.

Related Issues (20)

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.