This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Comments
Error: Cannot find module 'express'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/drivers/hub/driver.js:5:15)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
Exit code: 1
Exit signal: null
something is missing..
though now i have the feeling there are way more modules then needed after npm installing the express module
And... solved
@caseda, yeah, I have the feeling that a lot of applications are using way to much modules due to all the inclusions and 'dependencies' of other modules, that again depend on other modules etc.
this is the error i see most of the times when i try to add a flow
but never working in a flow.
Tested the Homey flow editor directly after accessing it on my phone ( so it might be awake ) but no go.
also flows with when activity starts do something won't do anything (so no logic used)
thx for building this
Thijs
ciao
Stack trace:
TypeError: Cannot read property 'match' of undefined
at downcode (/node_modules/parameterize/parameterize.js:98:22)
at module.exports (/node_modules/parameterize/parameterize.js:126:9)
at Explorer.<anonymous> (/drivers/hub/driver.js:35:96)
at emitOne (events.js:77:13)
at Explorer.emit (events.js:169:7)
at Explorer.handleResponse (/node_modules/harmonyhubjs-discover/lib/explorer.js:31:8)
at emitOne (events.js:77:13)
at ResponseCollector.emit (events.js:169:7)
at Socket.<anonymous> (/node_modules/harmonyhubjs-discover/lib/responseCollector.js:31:9)
at emitNone (events.js:72:20)
at Socket.emit (events.js:166:7)
Exit code: 1
Exit signal: null
I tried to re-install the App from the App stre, but that resiults in a "Homey not reachable" error.
might have updated the parameterize module too far, i'll try this evening when i'm home to downgrade or see the version that is actually needed for the module where it is being used for. since i have the same crash it will be easy to find out
Thanks!
never mind it crashed again on the match..
at least i did not receive that crash before i fell into this one after turning off all devices with my remote:
the number is the value of "runningActivityList" "activityId" in the device array(s)
thought that maybe re-pairing fixed this since so much changed, but crash still came when switching between 2 activities
I just figured that when running my own repository on my Windows machine that it doesn't work (the folder structure is to deep, so can't load the node_modules). So I have to wait till I have the time to use my Mac again.
ciao
I don't know if what we are trying to achieve with the app is 'possible' in a solid way. I think sending commands to the Harmony hub can be done (just by reconnecting to the hub every time) but trying to read the activity changed events maybe is a step to far. But again, I can't get my head around the Harmony Hub API so don't know if there maybe are solid solutions to fix the issues.
Yeah, great that you had a look at it and tried !
Thanks for the effort!