Coder Social home page Coder Social logo

Comments (10)

louisvangeldrop avatar louisvangeldrop commented on May 27, 2024 1

I am using the matter-bridge in order to connect an ESP32- running moddable javascript temperature/humidity sensor.

from matter.js.

Apollon77 avatar Apollon77 commented on May 27, 2024

Can you please be a bit more specific? Is this a link in the dodcs you mention or what?

from matter.js.

louisvangeldrop avatar louisvangeldrop commented on May 27, 2024

Sorry for the missing information:

npm run matter-bridge -- -type socket -num 2 -on1 "echo on1" -off1 "echo off1" -type2 socket -on2 "echo on2" -off2 "echo off2"

matter-run packages/matter-node.js-examples/src/examples/BridgedDevicesNode.ts -type socket -num 2 -on1 echo on1 -off1 echo off1 -type2 socket -on2 echo on2 -off2 echo off2

node:internal/modules/cjs/loader:1145
throw err;
^

Error: Cannot find module 'C:\Users\louis\projecten\matter.js\packages\matter-node.js-examples\dist\esm\examples\BridgedDevicesNode.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1142:15)
at Module._load (node:internal/modules/cjs/loader:983:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:142:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

from matter.js.

Apollon77 avatar Apollon77 commented on May 27, 2024

Hm ... which version you use?

How you installed it?

from matter.js.

louisvangeldrop avatar louisvangeldrop commented on May 27, 2024

packages\matter-node.js-examples\package.json contains the line:
"matter-bridge": "matter-run src/examples/BridgedDevicesNode.ts",

while the actual filename is: src/examples/BridgedDeviceNode.ts. without an "s"

from matter.js.

louisvangeldrop avatar louisvangeldrop commented on May 27, 2024

Version 0.8.0-alpha.0-20240328-f7f45db5. Installed with the command: npm install

from matter.js.

Apollon77 avatar Apollon77 commented on May 27, 2024

Thank you, I will provide a fix for the next nightly!

from matter.js.

Apollon77 avatar Apollon77 commented on May 27, 2024

I rrenamed the JS file as expected ... there should be a new nightly, please try

from matter.js.

louisvangeldrop avatar louisvangeldrop commented on May 27, 2024

It is working now. THX for the quick response.
My compliments for this great project !!!

from matter.js.

Apollon77 avatar Apollon77 commented on May 27, 2024

Oohhh interesting ... and yes ... moddable project is awesome!

from matter.js.

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.