579195 (9) [Avatar] Offline
Trying to run live events on Pi. The Led & PIR work when amended to 'simulate':false .

However the temperature / Humidity doesn't.

I receive below :
return process.dlopen(module,[ath_makeLong(filename));
Error: Module version mismatch. Expected 46, got 57.
at Error (native)
at Object.Module._extensions..node (module.js:434:1smilie
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)....
at connectHardware (/home/pi-wot-pi etc
at Object.exports.start (/home/pi/wot etc
.../DHT22 SensorPlugin.js:14:5
at object.<anonymous> (/home/pi/wot-pi etc 15:11)
at Module._compile (module.js:409:26)

Can you please assist .
domguinard (69) [Avatar] Offline

Sorry you are having troubles with it. I tested here again on the latest Jessie and it does work.

Have you tried re-installing the dependencies?

npm rebuild

in the corresponding folder.

If that does not work, can you post some details:
1. Which version of node do you use?
2. Which version of Raspbian?
3. What type of DHT sensor do you use?


579195 (9) [Avatar] Offline
yes. Thank you.

npm rebuild did the trick.

Also ensure you then type sudo node wot-server.js