Giter VIP home page Giter VIP logo

Comments (6)

tobimori avatar tobimori commented on June 12, 2024

Will be included in the refactor, but unfortunately I don't have much time to work on that right now

from streamdeck-homeassistant.

s00500 avatar s00500 commented on June 12, 2024

@tobimori I played with this a little today, seems like using home-assistant-js-websocket is not a good option as it is not possible to use modules in streamdecks SDK, since their internal file loading does not set the mime type correctly for the js engine to accept it.... did you stumble over this already ? any Ideas what to do about it ?

from streamdeck-homeassistant.

tobimori avatar tobimori commented on June 12, 2024

@tobimori I played with this a little today, seems like using home-assistant-js-websocket is not a good option as it is not possible to use modules in streamdecks SDK, since their internal file loading does not set the mime type correctly for the js engine to accept it.... did you stumble over this already ? any Ideas what to do about it ?

You'd need to setup a build process, e.g. using vercel/ncc to compile the js files.

from streamdeck-homeassistant.

s00500 avatar s00500 commented on June 12, 2024

ok, sounds kind of straight forward... I did play with HAs websocket API yesterday, it is actually really straight forward to implement... but I guess using the complete implementation makes sense... thanks

from streamdeck-homeassistant.

s00500 avatar s00500 commented on June 12, 2024

Hm but ncc looks like a tool mainly intended for usage with node.... but streamdeck uses a browser instance... so many things ncc assumes do not work...

from streamdeck-homeassistant.

s00500 avatar s00500 commented on June 12, 2024

did it with webpack therefore ;-)

from streamdeck-homeassistant.

Related Issues (6)

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.