The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

579195 (12) [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 (71) [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 (12) [Avatar] Offline
yes. Thank you.

npm rebuild did the trick.

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