PiPowerMeter
PiPowerMeter copied to clipboard
Fresh install errors / no readings
Hi there,
Just tried to do a fresh install of the current version of PiPowerMeter but can not get it to work correctly (I'm back to using my old version via a disk img I had created back in 2019 - PiPowerMeter Software timestamp: 018-11-26T02:58:19.000Z
).
The installer seems to complete without any errors, it does hang for a while here and there thou.
Once installed and rebooted the web page is accessible but no power readings can be obtained and the nodejs.err.log has the following error:
Error: Cannot find module '/home/pi/app/node_modules/CS5490/build/Release/CS5490.node'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:364:19)
at Function.Module._findPath (node:internal/modules/cjs/loader:577:18)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:942:27)
at Function.Module._load (node:internal/modules/cjs/loader:804:27)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/home/pi/app/CS5490.js:3:14)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32) {
code: 'MODULE_NOT_FOUND',
path: '/home/pi/app/node_modules/CS5490/package.json',
requestPath: 'CS5490'
}
node:events:491
throw er; // Unhandled 'error' event
^
Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
at new NodeError (node:internal/errors:387:5)
at ChildProcess.target.send (node:internal/child_process:742:16)
at /home/pi/app/driver.js:170:20
at /home/pi/app/database.js:874:37
at Statement.<anonymous> (/home/pi/app/database.js:605:17)
Emitted 'error' event on ChildProcess instance at:
at node:internal/child_process:746:35
at processTicksAndRejections (node:internal/process/task_queues:78:11) {
code: 'ERR_IPC_CHANNEL_CLOSED'
}
node:internal/modules/cjs/loader:372
throw err;
^
Error: Cannot find module '/home/pi/app/node_modules/CS5490/build/Release/CS5490.node'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:364:19)
at Function.Module._findPath (node:internal/modules/cjs/loader:577:18)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:942:27)
at Function.Module._load (node:internal/modules/cjs/loader:804:27)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/home/pi/app/CS5490.js:3:14)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32) {
code: 'MODULE_NOT_FOUND',
path: '/home/pi/app/node_modules/CS5490/package.json',
requestPath: 'CS5490'
}
Fresh install details:
Rpi 3B 1GB
SD card flashed with official image - "2021-03-04-raspios-buster-armhf-lite.img"
Logged on as pi then executed: wget -O - https://raw.githubusercontent.com/crjens/PiPowerMeter/master/setup.sh | bash
Same Problem. Error: Cannot find module '/home/pi/app/node_modules/CS5490/build/Release/CS5490.node Power Meter does not start.. No entries made to powermeter.db. In addition, some of the dependancies should be updated. wiringpi- is no longer current