hwinfonode
v1.0.7
Published
hwinfo64node read shared memory to json for nodejs in Windows.
Downloads
14
Maintainers
Readme
hwinfo64node
hwinfo64node read shared memory to json for nodejs in Windows.
Descripción
Addon for nodejs, it uses node-addon-api. You need configure HWiNFO64 to acces to shared memory. in npm--> npm i hwinfonode if in your main.js--> add
const hwinfo = require('hwinfonode');
in console returns -->Json
Examples and configures
const hwinfo = require('hwinfonode/build/Release/hwAddon');
console.log("arranco")
setInterval(() => {
try {
const sensores = hwinfo.getSensors();
console.log('Datos de sensores:', sensores);
} catch (error) {
console.error('Error al obtener sensores:', error);
}
}, 2000);
set up your HwInfo Json received Desired Datas
code example index.js
const hwinfo = require('hwinfonode/build/Release/hwAddon');
//console.log("arranco")
try {
const sensores = hwinfo.getSensors();
console.log('Datos de sensores:', sensores);
} catch (error) {
console.error('Error al obtener sensores:', error);
}