Git Product home page Git Product logo

Comments (2)

rgraciano avatar rgraciano commented on May 20, 2024

This wouldn't happen at the Alexa Skill layer, but you could add some code to the Lambda service to read from a list of aliases (simple text file mapping alias name to real name), and then send the real name to node-sonos-http-api when it detects the alias.

from echo-sonos.

kshartman avatar kshartman commented on May 20, 2024

One reason you might want this is because the lambda is not guaranteed to return something that is actually in your presets. For example, half the time when I way play "thunder toads" the lamda sends "Thunder Tones" as the preset value which of course doesn't work. Yes you could put in a function in the lambda which does some kind of lookup and finds the right preset value but its a PITB to edit that list and upload the lamda again. What I do is simply duplicate the preset value in presets.json with the alias name and restart the sonos service. It would be nice if the sonos http api supported aliases because that is where it needs to be, not in the Alexa Skill. I think I'll go write that. The same is true for room names, you can get something that is not actually a room name. But there is no good way to alias those in the sonos http api. You probably would have to do that in the lamdba as suggested.

from echo-sonos.

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.